I am reading the image from the disk and I am converting it to a numpy array
im=Image.open(infile)
imdata = scipy.misc.fromimage(im)
but the image is mirrored like it is stored on the disk.
How to read it in a correct order.
Thanks a lot.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
If it is upside down:
If it is swapped left to right:
And if it is transposed (flipped at the diagonal):
If you have more dimensions more (color, alpha, …) flipping can be done by
or
“…” is not a placeholder for something I do not know, but an implemented feature in numpy.