saveasExact(I,filename,format,dims)
A wrapper function to save matrices/figures as jpg, tiff, png and other formats using exact pixel dimensions and without the white border. Core save as and print functions generally rescale the image and add a white border (e.g. 256x256 becomes 1500x900) which can be inconvenient for quantitative applications such as generating inputs to machine learning. This function is a convenience wrapper based on MatlabCentral and StackOverflow answers about this issue.
Cita come
Bogdan Dzyubak (2024). saveasExact(I,filename,format,dims) (https://www.mathworks.com/matlabcentral/fileexchange/63616-saveasexact-i-filename-format-dims), MATLAB Central File Exchange. Recuperato .
Compatibilità della release di MATLAB
Compatibilità della piattaforma
Windows macOS LinuxCategorie
- Image Processing and Computer Vision > Image Processing Toolbox > Image Filtering and Enhancement > Morphological Operations >
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.
Versione | Pubblicato | Note della release | |
---|---|---|---|
1.0.0.0 | Added set(gca,'position',[0 0 1 1],'units','normalized') to do tight figure fit on Matlab installs not set up to always fit tightly. |