import numpy as np import matplotlib.image as img; C = 1.0-np.mean(img.imread(\'circle.png\'),axis=2); C /= np.sum(C);
The image has 256 X 256 pixel