Image after saving, changing the orientation!
1 次查看(过去 30 天)
显示 更早的评论
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).
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!