On Mon, Jul 27, 2009 at 9:08 AM, Gary Capell<gary.cap...@gmail.com> wrote: > I get this problem (with python2.6, PIL 1.1.6, numpy 1.3.0 ) > >>>> from PIL import Image >>>> import numpy >>>> i = Image.open('chart_bl.tif') >>>> a = numpy.asarray(i) >>>> o.size, a.shape > ((13228, 18710), (18710, 13228)) >>>> o.size, a.shape, a.dtype > ((13228, 18710), (18710, 13228), dtype('bool')) >>>> numpy.histogram(a) > Segmentation fault
Note that PIL has its own histogram method (for a monochrome image, the counts will end up in slot 0 and 255). </F> _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig