@Test(expected = NullPointerException.class) public void testIsBinaryColourThrowsNPEIfImageNull() { ImagePlusUtil.isBinaryColour(null); }
public static boolean isBinaryColour(final ImagePlus image) { return Arrays.stream(image.getStatistics().histogram).filter(p -> p > 0) .count() <= 2; }
ImagePlusUtil { public static boolean isBinaryColour(final ImagePlus image) { return Arrays.stream(image.getStatistics().histogram).filter(p -> p > 0) .count() <= 2; } }
ImagePlusUtil { public static boolean isBinaryColour(final ImagePlus image) { return Arrays.stream(image.getStatistics().histogram).filter(p -> p > 0) .count() <= 2; } private  ImagePlusUtil(); }
ImagePlusUtil { public static boolean isBinaryColour(final ImagePlus image) { return Arrays.stream(image.getStatistics().histogram).filter(p -> p > 0) .count() <= 2; } private  ImagePlusUtil(); static double anisotropy(final ImagePlus image); static ImagePlus cleanDuplicate(final ImagePlus image); static boolean is3D(final ImagePlus image); static boolean isBinaryColour(final ImagePlus image); }
ImagePlusUtil { public static boolean isBinaryColour(final ImagePlus image) { return Arrays.stream(image.getStatistics().histogram).filter(p -> p > 0) .count() <= 2; } private  ImagePlusUtil(); static double anisotropy(final ImagePlus image); static ImagePlus cleanDuplicate(final ImagePlus image); static boolean is3D(final ImagePlus image); static boolean isBinaryColour(final ImagePlus image);  }