Crop image by removing edges with homogeneous intensity
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')
Citar como
Guilherme Coco Beltramini (2024). 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. Recuperado .
Compatibilidad con la versión de MATLAB
Compatibilidad con las plataformas
Windows macOS LinuxCategorías
Etiquetas
Agradecimientos
Inspiración para: Save figure to file, choose the dimensions and crop figure
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Descubra Live Editor
Cree scripts con código, salida y texto formateado en un documento ejecutable.