% Crops the Image from a draggable rectangle
% & returns the Cropped Image and its co-ordinates
% I is the Image to be cropped assumed to be in the
% matlab workspace
% w : width (default value : cols/2)
% h : height (default value : rows/2)
% I = imread('circuit.tif');
% [O] = Crop_it(I);
% [O I_crop]=Crop_it(I,0);
% [O I_crop]=Crop_it(I,1,100,100);
Shripad Kondra (2021). Cropping an Image with draggable rectangle (https://www.mathworks.com/matlabcentral/fileexchange/17460-cropping-an-image-with-draggable-rectangle), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Platform CompatibilityWindows macOS Linux
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!