Skip to content
Snippets Groups Projects
Commit f84805df authored by felmer's avatar felmer
Browse files

SSDM-802: ImageDebugViewer: Catch exceptions for histogram calculation.

SVN: 32394
parent da5de0cf
No related branches found
No related tags found
No related merge requests found
......@@ -129,9 +129,15 @@ public class ImageDebugViewer
System.out.println("color space: " + colorSpace.getName(i)
+ ": [" + colorSpace.getMinValue(i) + ", " + colorSpace.getMaxValue(i) + "]");
}
ImageHistogram histogram = ImageHistogram.calculateHistogram(image);
System.out.println(histogram);
System.out.println(Arrays.toString(histogram.getRedHistogram()));
try
{
ImageHistogram histogram = ImageHistogram.calculateHistogram(image);
System.out.println(histogram);
System.out.println(Arrays.toString(histogram.getRedHistogram()));
} catch (Exception ex)
{
System.out.println("Couldn't calculate histogram: " + ex);
}
System.out.println("\\_________ " + title);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment