Login  Register

Reporting Bug (ParticleAnalyzer.java)

Posted by Nathaniel Ryckman on Jun 30, 2011; 6:39pm
URL: http://imagej.273.s1.nabble.com/Reporting-Bug-ParticleAnalyzer-java-tp3684069.html

Required conditions for bug:

1) !(ip instanceof FloatProcessor) && !(ip instanceof ShortProcessor)
2) ip.getMaxThreshold() == 255
2) ip.getMinThreshold() != ImageProcessor.NO_THRESHOLD

Where error is thrown (line 670 in ParticleAnalyzer.java):

replaceColor = level2+1.0;
int maxColor = imageType==BYTE?255:65535;
if (replaceColor>maxColor || replaceColor==fillColor)
    IJ.error("Particle Analyzer", "Unable to remove edge particles");