help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: image from matrix at original size [newbie]


From: marasolc
Subject: Re: image from matrix at original size [newbie]
Date: Mon, 26 Dec 2011 09:01:16 -0800 (PST)

Thank you,

yes, I want to display image with same number of pixels as is the
matrix(1024x256).
The following code adjusts the size quite well, but still the number of
pixels is not exactly the same:

s = size(img)(1:2);
set(gcf, "position", [0 0 1500 300])
set(gca, "position", [0.05 0.05 0.05+1024/1500 0.05+256/300])
imagesc(img,[minv maxv]);
colorbar();
print("image.png","-dpng","-S1500,300")

I just wondered whether there is some simple and safe way how to display the
matrix so that every number corresponds to one pixel (and colorbar
attached).


--
View this message in context: 
http://octave.1599824.n4.nabble.com/image-from-matrix-at-original-size-newbie-tp4234396p4235124.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]