Display an imagie in 1:1 scale (pixel-for-pixel)

Whenever I display an image it gets scaled to fit the figure and the image quality get butchered.
Is there a way to make sure that images get displayed "pixel-for-pixel"?
I'm using the image command to display images.

回答(2 个)

The documentation on Displaying Graphics Images explains how to do this.
Alternatively, if you have the Image Processing Toolbox you can simply use the IMSHOW function with Initial Magnification set to 100:
imshow('board.tif','InitialMagnification',100)

类别

在 帮助中心 和 File Exchange 中查找有关 Images 的更多信息

标签

提问:

2011-4-19

Community Treasure Hunt

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

Start Hunting!

Translated by