Image after saving, changing the orientation!

2 Ansichten (letzte 30 Tage)
aneps
aneps am 9 Nov. 2014
Bearbeitet: aneps am 9 Nov. 2014
Please have a look at the attached figure. Figure1: Is my real data, the intensity map plot with the function 'colormap'. I want it in the intensity scale of 10. This figure I saved as MyData:
save('E:\MatlabData\MyFolder\Image.dat','MyData','-ascii');
Figure2: After saving, I viewed the image using 'imshow(MyData)'. The image, as you see has changed the orientation! What happened here? It suppose to save exactly in the same orientation as the Figure1! How can I save the data, so that, when I recall the data to view the image later on, I get the original figure with the exact orientation?
Also, is it possible to save the data so with the intensity scale? I mean, if I recall the data (MyData) for further image processing, it should be in the intensity scale of 10 (same scale as the figure1). I would like to save with the intensity scale as the data file. For the further processing, I need to use this datafile (MyData) in the matrix form.
Figure3: I manually changed the intensity scale to 10. There I see the same figure as figure1 with WRONG orientation!.
In short my problem is: I want to save the figure1 (basically a nxn matrix), which is an intensity plot as a data file (.dat) along with the same intensity scale(if possible).

Antworten (0)

Kategorien

Mehr zu Images finden Sie in Help Center und File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by