Skip to content

Commit

Permalink
Removed PupilAndIrisDetector debugging code
Browse files Browse the repository at this point in the history
  • Loading branch information
jeisfeld committed Feb 26, 2016
1 parent b515d9e commit 7b3059c
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -514,12 +514,16 @@ else if (metadata != null && metadata.hasOverlayPosition() && overlayType != nul
*
* @param baseImage The original image.
* @param targetSize The target size.
* @param allowGrowing flag indicating if the image is allowed to grow.
* @return the resized image.
*/
public static Image resizeImage(final Image baseImage, final int targetSize) {
public static Image resizeImage(final Image baseImage, final int targetSize, final boolean allowGrowing) {
if (baseImage == null || baseImage.getWidth() == 0 || baseImage.getHeight() == 0) {
return baseImage;
}
if (baseImage.getWidth() <= targetSize && baseImage.getHeight() <= targetSize && !allowGrowing) {
return baseImage;
}
int targetWidth;
int targetHeight;
if (baseImage.getWidth() > baseImage.getHeight()) {
Expand Down

0 comments on commit 7b3059c

Please sign in to comment.