Crop image by removing edges with homogeneous intensity
by Guilherme Coco Beltramini
30 May 2013
(Updated 03 Jun 2013)
Crop image by removing edges with homogeneous intensity and leaving a specified width
|
Watch this File
|
| File Information |
| Description |
USAGE
img2 = crop_img(img)
img2 = crop_img(img,border)
INPUT
- IMG: MxNxC matrix, where MxN is the size of the image and C is the number of color layers
- BORDER: maximum number of pixels at the borders
OUPUT
- IMG2: cropped image
EXAMPLE
>> img = imread('my_pic.png');
>> img2 = crop_img(img,0);
>> imwrite(img2,'my_cropped_pic.png') |
| Acknowledgements |
This file inspired
Save Figure To File, Choose The Dimensions And Crop Figure.
|
| Required Products |
MATLAB
|
| MATLAB release |
MATLAB 7.10 (R2010a)
|
|
Tags for This File
|
| Everyone's Tags |
|
| Tags I've Applied |
|
| Add New Tags |
Please login to tag files.
|
| Updates |
| 03 Jun 2013 |
Added screenshot and changed input |
|
Contact us