Cropping an Image with resizable and draggable rectangle
Version 1.0.0.0 (2.42 KB) by
Shripad Kondra
Crops the Image from a resizable and draggable rectangle & displays it (after the figure is closed)
% Crops the Image from a resizable & draggable rectangle
% & displays it (after the figure is closed)
%
% I is the Image to be cropped, assumed to be in the
% matlab workspace
%
% EXAMPLES
%
% I = imread('liftingbody.png');
% [rect_pos] = Crop_it(I);
%
% RGB = imread('peppers.png');
% [rect_pos] = Crop_it(RGB);
Cite As
Shripad Kondra (2026). Cropping an Image with resizable and draggable rectangle (https://se.mathworks.com/matlabcentral/fileexchange/21178-cropping-an-image-with-resizable-and-draggable-rectangle), MATLAB Central File Exchange. Retrieved .
MATLAB Release Compatibility
Created with
R14
Compatible with any release
Platform Compatibility
Windows macOS LinuxCategories
Find more on Read, Write, and Modify Image in Help Center and MATLAB Answers
Tags
Acknowledgements
Inspired by: Cropping an Image with draggable rectangle
Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
| Version | Published | Release Notes | |
|---|---|---|---|
| 1.0.0.0 |
