Re: Reversed X an Y when convering PIL images to NumPy arrays
"Yury V. Zaytsev" <[email protected]>
| Newsgroups | gmane.comp.python.image |
|---|---|
| Message-ID | <1271753991.7089.21.camel@mypride> |
On Mon, 2010-04-19 at 10:00 -0700, Christopher Barker wrote: > you can just use (y,x) , or you can transpose the array: > > > p = a.T.copy() FYI, this will not work for anything that is not grayscale arrays. You need to use p = a.copy().transpose((1, 0, 2)). Thanks again, -- Sincerely yours, Yury V. Zaytsev _______________________________________________ Image-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/image-sig