Margincrop

Version 1.0.0.0 (1,58 ko) par Jurgen
Simple way of cropping images by specifying the amount of pixels to be cut away from the edges.
302 téléchargements
Mise à jour 14 jan. 2013

Afficher la licence

Simple way of cropping images by specifying the amount of pixels to be cut away from the image edges.

Of course imcrop exists, but I'm not a fan of using the rectangle syntax.
So why this?
- Fast
- Practical syntax (for me at least)
- Can handle higher dimensions
- Couldn't find anything similar on FEX with expected tags

Crops along the first 2 dimensions, e.g.:

I = imread('peppers.png'); %rgb image
J = margincrop(I,[10 20],[100 100]);
subplot(1,2,1);imshow(I);
subplot(1,2,2);imshow(J);

Feedback is welcome.

Citation pour cette source

Jurgen (2025). Margincrop (https://fr.mathworks.com/matlabcentral/fileexchange/39849-margincrop), MATLAB Central File Exchange. Extrait(e) le .

Compatibilité avec les versions de MATLAB
Créé avec R2008a
Compatible avec toutes les versions
Plateformes compatibles
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Publié le Notes de version
1.0.0.0