img2 = crop_img(img)
img2 = crop_img(img,border)
- 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
- IMG2: cropped image
>> img = imread('my_pic.png');
>> img2 = crop_img(img,0);
Guilherme Coco Beltramini (2021). Crop image by removing edges with homogeneous intensity (https://www.mathworks.com/matlabcentral/fileexchange/42014-crop-image-by-removing-edges-with-homogeneous-intensity), MATLAB Central File Exchange. Retrieved .
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!