For Programmers: Free Programming Magazines  


Home > Archive > Matlab > October 2006 > Problem with imcrop









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Problem with imcrop
Patrick

2006-10-31, 8:02 am

Hello

I have defined axes to display an image:

DispImage = axes('Position',[0.05 0.22 0.90 0.65]);

The image is the size of 640 x 480 pixels. With imcrop i wanna
implement some kind of a zoom function. It works fine but the problem
is that the axes I defined change in size a little bit when I change
the zoom factor.

frame2 = imcrop(frame2,rectangle)
imshow(frame2);

Rectangle is here the part of the image that I wanna see. As i said
it works fine, but the DispImage container is not stable in size.
Could it be that there is some rounding error with the size of the
rectangle?

Cheers
Patick
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com