>>> And the relevant portion in imtools.py is: >>> def histeq(im,nbr_bins=256): >>> """ Histogram equalization of a grayscale image. """ >>> >>> #get image histogram >>> imhist,bins = histogram(im.flatten(),nbr_bins,normed=True) >> >> >> This is the call, but where is histogram? If it is in imtools are you sure > >The function histogram is supposed to come from the numpy module; at >least that's the case on my computer (I have numpy 1.6.2 for Python >2.7): > >>>> from numpy import * >>>> histogram ><function histogram at 0x10b0c0ed8> > >Maybe something is wrong with Unaiza's version of numpy. >More likely is that there is no import statement for numpy in imtools.py
Alan G.
_______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor