[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: how to see images at original size
From: |
Bill Denney |
Subject: |
Re: how to see images at original size |
Date: |
Mon, 21 Jul 2008 07:56:00 -0400 |
User-agent: |
Thunderbird 2.0.0.14 (Windows/20080421) |
bharat pathak wrote:
Hello all,
I am using octave 3.0.1 with jhandles as the graphics
backend.
a = imread('lena.bmp');
imshow(double (a )/256);
This does not show me the image with original scale.
It shows me with reduced size, maybe 60% of original
size.
How to see the image in octave at the same 100% size.
(without any scaling internally done).
This is because the axis is automatically scaled within the figure
space. This won't take into account the size of your monitor (which
could make the image hard to work with), but something like this should
work (untested, but probably close):
a = imread("lena.bmp");
imshow(double(a)/256);
s = size(a)(1:2);
set(gcf, "position", [50 50 s*1.1])
set(gca, "position", [.05 .05 .9 .9])
You may also need to toss in an "axis image", but I think that imshow
takes care of that.
Hopefully that helps.
Have a good day,
Bill