Syntax
I=imresizep(I,maxrc,[defcol])
Input Parameter
I : | | Images |
maxrc : | | maximum number of rows or cols; or [rw nan] or [nan col]; |
defcol : | | color for borders to extend; default is 255 |
Output Parameter
I : | | resized image smaller than [maxrc x maxrc] |
Examples
I=imread('peppers.png'); whos I
imresizep(I,480); pause
imresizep(I,[nan 1080]);pause
imresizep(I,[1080 nan]);
pause; imresizep(I,[700 2000],255);
pause; imresizep(I,[2000 700],100);
Copyright 2018-2025 Tim C. Lueth. All rights reserved. The code is the property of Tim C. Lueth and may not be redistributed or modified without explicit written permission. This software may be used free of charge for academic research and teaching purposes only. Commercial use, redistribution, modification, or reverse engineering is strictly prohibited. Access to source code is restricted and granted only under specific agreements. For licensing inquiries or commercial use, please contact: Tim C. Lueth
Last html export of this page out of FM database by TL: 2025-09-21