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')
Zitieren als
Guilherme Coco Beltramini (2026). Crop image by removing edges with homogeneous intensity (https://de.mathworks.com/matlabcentral/fileexchange/42014-crop-image-by-removing-edges-with-homogeneous-intensity), MATLAB Central File Exchange. Abgerufen.
Kompatibilität der MATLAB-Version
Plattform-Kompatibilität
Windows macOS LinuxTags
Quellenangaben
Inspiriert: Save figure to file, choose the dimensions and crop figure
Live Editor erkunden
Erstellen Sie Skripte mit Code, Ausgabe und formatiertem Text in einem einzigen ausführbaren Dokument.
| Version | Veröffentlicht | Versionshinweise | |
|---|---|---|---|
| 1.1.0.0 | Added screenshot and changed input |
||
| 1.0.0.0 |
