crop whitespace from an image
CROP(FILENAME,APPEND,MARGIN) is the full calling form. APPEND and MARGIN are optional inputs.
CROP('filename.ext') crops the image in the file and saves it using the original filename, overwriting the old image. The extension (ext) can be anything IMREAD supports.
CROP(directory) crops all images in a directory.
If APPEND is 1, CROP saves the cropped image as 'filename_crop.ext' in the same directory as the original.
MARGIN sets the margin width in pixels (default is 10).
Example: crop('C:\MATLAB7\toolbox\matlab\demos\html\cruller_01.png',1)
Requirements: your FIND must allow the 'last' option (version 7+?)
Cita come
Andrew Bliss (2024). crop whitespace from an image (https://www.mathworks.com/matlabcentral/fileexchange/20427-crop-whitespace-from-an-image), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Import, Export, and Conversion > Blocked Images >
Tag
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Scopri Live Editor
Crea script con codice, output e testo formattato in un unico documento eseguibile.