Cropping an Image with draggable rectangle
by Shripad Kondra
08 Nov 2007
(Updated 24 Apr 2008)
Crops the Image from a draggable rectangle & displays it (after the figure is closed)
|
Watch this File
|
| File Information |
| Description |
% 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); |
| Acknowledgements |
This submission has inspired the following:
Cropping an Image with resizable and draggable rectangle
|
| Required Products |
Image Processing Toolbox
|
| MATLAB release |
MATLAB 7.2 (R2006a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Comments and Ratings (5) |
| 08 Nov 2007 |
someone someone
|
|
|
| 14 Dec 2007 |
Shripad Kondra
|
|
|
| 14 Dec 2007 |
Shripad Kondra
|
|
|
| 09 Apr 2008 |
Erion H
|
|
|
| 22 Jul 2009 |
hima
|
|
|
| Updates |
| 24 Apr 2008 |
To enable initializing the rectangle by hand. |
|
Contact us at files@mathworks.com