Cropping an Image with resizable and draggable rectangle

Crops the Image from a resizable and draggable rectangle & displays it (after the figure is closed)
2.2K Downloads
Updated 22 Aug 2008

View License

% 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 (2024). Cropping an Image with resizable and draggable rectangle (https://www.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 Linux
Categories
Find more on Read, Write, and Modify Image in Help Center and MATLAB Answers
Acknowledgements

Inspired by: Cropping an Image with draggable rectangle

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes
1.0.0.0