When cropping an image , we select a part of the image we want and remove the rest.
You can crop an image using imcrop method in SIVP.
the format is imcrop(image,[x,y,width,height])
(x, y) is the top-left corner of the rectangle. Width and height are the width and height of the subimage.
Let us see what happens when we crops the image z below.
Example
z1=imcrop(z, [95, 20, 440,220]);
imshow(z1);
The result is:
No comments:
Post a Comment