You are now following this Submission
- You will see updates in your followed content feed
- You may receive emails, depending on your communication preferences
% 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)
%
% EXAMPLES
%
% I = imread('circuit.tif');
% [O] = Crop_it(I);
%
% [O I_crop]=Crop_it(I,0);
%
% [O I_crop]=Crop_it(I,1,100,100);
Cite As
Shripad Kondra (2026). Cropping an Image with draggable rectangle (https://www.mathworks.com/matlabcentral/fileexchange/17460-cropping-an-image-with-draggable-rectangle), MATLAB Central File Exchange. Retrieved .
Acknowledgements
Inspired: Cropping an Image with resizable and draggable rectangle
General Information
- Version 1.0.0.0 (1.62 KB)
MATLAB Release Compatibility
- Compatible with any release
Platform Compatibility
- Windows
- macOS
- Linux
| Version | Published | Release Notes | Action |
|---|---|---|---|
| 1.0.0.0 | To enable initializing the rectangle by hand. |
