MATLAB: Problem with alternative way to do imcrop

cropcroppingguiimcrop

i have a problem executing this set of statements. it sort of hangs when i execute it. is there any other alternative ways i could do it by manually assign a standard size to the images to crop all automatically?
[I1c rect] = imcrop(handles.axes2);
rect
axes(handles.axes2);
imshow(I1c);
guidata(hObject, handles);
I2c = imcrop(I2, rect);
axes(handles.axes3);
imshow(I2c);
guidata(hObject, handles);

Best Answer

Select the pixels you want say for image I a cropped region will be I = I(1:x,1:y)
Related Question