I have an image square.png
as below:-
I imported the image as ImageSquare
, and then applied ImageData
to the image. When I applied Image
to convert the image back, the color is changed:-
ImageSquare = Import@StringJoin[NotebookDirectory[], "square.png"]
ImageSquare2 = Image@ImageData@ImageSquare
Why is that? In fact if I checked the value of the images, I still got True
:
(ImageData@ImageSquare2) == (ImageData@ImageSquare)
Many thanks!!