Reporting Bug (ParticleAnalyzer.java)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Reporting Bug (ParticleAnalyzer.java)

Nathaniel Ryckman
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");