MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / isSmaller

Method isSmaller

ij/src/main/java/ij/ImagePlus.java:2397–2403  ·  view source on GitHub ↗
(Roi r)

Source from the content-addressed store, hash-verified

2395 }
2396
2397 boolean isSmaller(Roi r) {
2398 ImageProcessor mask = r.getMask();
2399 if (mask==null) return false;
2400 mask.setThreshold(255, 255, ImageProcessor.NO_LUT_UPDATE);
2401 ImageStatistics stats = ImageStatistics.getStatistics(mask, MEAN+LIMIT, null);
2402 return stats.area<=width*height;
2403 }
2404
2405 /** Implements the File/Revert command. */
2406 public void revert() {

Callers 1

restoreRoiMethod · 0.95

Calls 3

setThresholdMethod · 0.95
getStatisticsMethod · 0.95
getMaskMethod · 0.45

Tested by

no test coverage detected