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