Here we sea how to crop the image from matlab figure window. Its very simple. Just use imcrop function to crop the image from figure window.This function return the crop area of the Image. code as below
>> input = imread('vivekananda.jpg');
>> figure;imshow(input);
>> crop_area = imcrop; % return the crop position
>> figure;imshow(crop_area);%shows the crop area from Input Image
>> figure;imshow(input);
>> crop_area = imcrop; % return the crop position
>> figure;imshow(crop_area);%shows the crop area from Input Image
output as below
Related Search : Matlab Image Crop Example code,Matlab Image Cropping code,Image crop Matlab examples,image crop from matlab figure window