Hello
If I use the
figure;
imshow(<pic>);
I see that the figure window automatically modifies itself
so that the pictures aspect ratio are preserved and the
image doesnot look stretched out or it does not
necessarily fill the axis created intially by the figure
window. I get the image shown in its true aspect ratio and
resolution.But, if I use the ;
figure;
image(<pic>);
I see that the picture accomodates itself in the figures
axis and the aspect ratio and the original resolution is
lost.
How can we make the image() imitate the imshow()
Thanks
Vihang
In article <fmt41v$pjo$1@fred.mathworks.com>,
Vihang Patil <vihang_patil@yahoo.com> wrote:
>resolution.But, if I use the ;
>figure;
>image(<pic>);
>I see that the picture accomodates itself in the figures
>axis and the aspect ratio and the original resolution is
>lost.
>How can we make the image() imitate the imshow()
axis equal
--
We regret to announce that sub-millibarn resolution bio-hyperdimensional
plasmatic space polyimaging has been delayed until the release
of Windows Vista SP2.
I = imread('t_lenna.jpg');
figure,imshow(I); %displays me the image the same size as
% the original
figure,image(I);
axis equal; %does not show me the actual size of the image.
%Image does not resize the figure window
roberson@ibd.nrc-cnrc.gc.ca (Walter Roberson) wrote in
message <fmta12$d7k$1@canopus.cc.umanitoba.ca>...
> In article <fmt96u$ce4$1@fred.mathworks.com>,
> Vihang Patil <vihang_patil@yahoo.com> wrote:
>
> >> axis equal
>
> >This does not give me the desired results.
>
> >figure,image(I);
> >axis equal; %does not show me the actual size of the image.
> >%Image does not resize the figure window
>
> Ah, try axis image
> --
> "I was very young in those days, but I was also rather
dim."
> -- Christopher Priest
Nope that doesnt work either. I thing I am not able to
propogate my question properly.
Please try the following;
I = imread('t_lenna.jpg');
figure,imshow(I); %displays me the image the same size as
% the original, as can be seen either in MSPAINT or Windows
% Picture and Fax Viewer
figure,image(I);
axis equal;
axis image; %none of these show me the way imshow shows the
%image
%Image does not resize the figure window
Public Submission Policy
NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for
all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content.
Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available
via MATLAB Central. Read the complete Disclaimer prior to use.