Re: that's enough (corrrection)

Jack Uretsky <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>

"Trust me.  I have a lot of experience at this."
 		General Custer's unremembered message to his men,
 		just before leading them into the Little Big Horn Valley




On Tue, 3 Aug 2010, Jack Uretsky wrote:

> Hi all-
> 	I tried Yuri's matplotlib approach, as follows:
> _______________________________
> (I verified that the imports are giving me directories)
>>>> import Image
>>>> import numpy as np
>>>> import pylab as pyl
>>>> 
>>>> if __name__ == "__main__":
>
> 	img_name = 'a_4.jpg'
> 	img = Image.open(img_name)
>
>    a = np.asarray(img)
>    p = a.copy().transpose((1, 0, 2))
>
>    pyl.imshow(p)
>    pyl.show()
> ___________________________________
> 	But when I hit F5, <nothing happens (Mav OS X Smow Leopard)>
 	I get an invalid syntax error, but nothing is marked on the IDLE 
script.
> 				Regards,
> 					Jack
>
> "Trust me.  I have a lot of experience at this."
> 		General Custer's unremembered message to his men,
> 		just before leading them into the Little Big Horn Valley
>
>
>
>
> On Wed, 14 Jul 2010, Yury V. Zaytsev wrote:
>
>> ... or you can go for matplotlib and use its plot function to display
>> PIL images using the NumPy array interface (see my previous postings on
>> this list):
>> 
>> import Image
>> import numpy as np
>> import pylab as pyl
>> 
>> if __name__ == "__main__":
>>
>>    img_name = 'ch43_roi.tiff'
>>    img = Image.open(img_name)
>>
>>    a = np.asarray(img)
>>    p = a.copy().transpose((1, 0, 2))
>>
>>    pyl.imshow(p)
>>    pyl.show()
>> 
>> -- 
>> Sincerely yours,
>> Yury V. Zaytsev
>> 
>> On Sun, 2010-07-11 at 18:16 -0500, Jack Uretsky wrote:
>>> Hi-
>>>  	The following worked very well:
>>>>>> import Image
>>>>>> d = Image.open("a_1.jpg")
>>>>>> d.show()
>>>>>> 
>>>
>>>  	Now, how do I turn
>>>   it off before showing another image
>>>  	I'm on an Intel Mac, OS X Snow Leopard.
>>>  			Regards,
>>>  				Jack U.
>>> "Trust me.  I have a lot of experience at this."
>>>  		General Custer's unremembered message to his men,
>>>  		just before leading them into the Little Big Horn Valley
>>> 
>>> 
>>> 
>>> _______________________________________________
>>> Image-SIG maillist  -  [email protected]
>>> http://mail.python.org/mailman/listinfo/image-sig
>> 
>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.