Code covered by the BSD License  

Highlights from
Crop image by removing edges with homogeneous intensity

Be the first to rate this file! 23 Downloads (last 30 days) File Size: 2.04 KB File ID: #42014
image thumbnail

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
image processing
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
03 Jun 2013

Added screenshot and changed input

Contact us