crop whitespace from an image
by Andrew Bliss
24 Jun 2008
(Updated 25 Jun 2008)
CROP gets rid of whitespace around an image
|
Watch this File
|
| File Information |
| Description |
CROP('filename.ext') crops the image in the file and saves it using
the original filename (overwrites the old image). The extension (ext)
can be anything IMREAD supports.
CROP('filename.ext',1) saves the cropped image as filenamecropped.ext
in the same directory as the original.
Changes since version 1:
1. Now accepts directories as input.
2. Just prior to saving version 1, I added the 'filenamecropped' option.
Example:
crop('C:\MATLAB7\toolbox\matlab\demos\html\cruller_01.png',1)
See also: IMREAD, IMWRITE
Requirements: your FIND must allow the 'last' option (version 7+?)
Copyright Andy Bliss Sept 8th, 2006 |
| MATLAB release |
MATLAB 7.0.1 (R14SP1)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
|
Contact us at files@mathworks.com