Changed preserveAspectRatio(final Size originalMatSize, final Size newSize) to return a scaled up size if originalMatSize is smaller than newSize.
Added javadoc for preserveAspectRatio
Old behavior: preserveAspectRatio returns originalMatSize if original height and width are both less than newSize.
New behavior: preserveAspectRatio returns a scaled up size, matching at least one of the height or width in newSize (whichever requires less scaling)
Changed
preserveAspectRatio(final Size originalMatSize, final Size newSize)
to return a scaled up size iforiginalMatSize
is smaller thannewSize
.Added javadoc for
preserveAspectRatio
Old behavior:
preserveAspectRatio
returnsoriginalMatSize
if original height and width are both less thannewSize
. New behavior:preserveAspectRatio
returns a scaled up size, matching at least one of the height or width innewSize
(whichever requires less scaling)