how to expang an image

5 views (last 30 days)
Pat
Pat on 12 Sep 2011
i am working on "Center Point Determination & Cropping",wen i divide the image into blocks of 8*8,the image appears too small on screen,how to enlarge it,can anyone help me please
  4 Comments
Walter Roberson
Walter Roberson on 13 Sep 2011
See Sean's answer, or switch to using image() instead of imshow and then read my answer.
Walter Roberson
Walter Roberson on 13 Sep 2011
By the way, your line
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*(i-1)+bs),(bs*(j-1)+1:bs*(j-1)+bs));
can be written more efficiently as
Block(:,:,kk+j)=I((bs*(i-1)+1:bs*i),(bs*(j-1)+1:bs*j));
There are additional efficiencies that can be used as well.

Sign in to comment.

Answers (2)

Walter Roberson
Walter Roberson on 12 Sep 2011
Changing the axes limits via xlim() and ylim() will make the image appear larger or smaller.

Sean de Wolski
Sean de Wolski on 12 Sep 2011
Look at the 'InitialMagnification' option in both imshow and imtool

Categories

Find more on Image Processing Toolbox in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!