From: Michael on
This time I want to write an image I need to display with "axis xy" instead of "axis ij" to disk using "imwrite" - without having it flipped or mirrored in any way.

I certainly do know that MATLAB follows a quite comfortable convention of having an image's origin in the upper left corner, but in my case I have a georeferenced image, which means the rows are associated with northing coordinates (getting larger from bottom to top), while the columns are associated with easting coordinates (getting larger from left to right).

If I use imwrite to the image matrix, the image is not only flipped upside down, but also mirrored - which makes it completely useless for me.

So, how can I write that image into, e.g., a tiff-file without loosing its proper orientation? And is there any way to keep the axes markings showing the coordinates?

Ah, and let me add one more bonus question: Is there a way to change the axes markings from scientific (5.7 x 10^6) to regular format (5700000)?
From: us on
"Michael " <michael.schmittNOSPAM(a)bv.tum.de> wrote in message <hohpv6$gnf$1(a)fred.mathworks.com>...
> This time I want to write an image I need to display with "axis xy" instead of "axis ij" to disk using "imwrite" - without having it flipped or mirrored in any way.
>
> I certainly do know that MATLAB follows a quite comfortable convention of having an image's origin in the upper left corner, but in my case I have a georeferenced image, which means the rows are associated with northing coordinates (getting larger from bottom to top), while the columns are associated with easting coordinates (getting larger from left to right).
>
> If I use imwrite to the image matrix, the image is not only flipped upside down, but also mirrored - which makes it completely useless for me.
>
> So, how can I write that image into, e.g., a tiff-file without loosing its proper orientation? And is there any way to keep the axes markings showing the coordinates?
>
> Ah, and let me add one more bonus question: Is there a way to change the axes markings from scientific (5.7 x 10^6) to regular format (5700000)?

just a thought
why do you not use

print -dtiff -rxxx fig.tiff

us
From: David Young on
Use flipud and/or fliplr before imwrite?