wolffd@0: function img = imresizeAspect(img, maxSize) wolffd@0: % function img = imresizeAspect(img, maxSize) wolffd@0: % If image is larger than max size, reduce size, preserving aspect ratio of input. wolffd@0: % wolffd@0: % If size(input) = [y x] and maxSize = [yy xx], wolffd@0: % then size(output) is given by the following (where a=y/x) wolffd@0: % if y