Bug in ParticleAnalyzer.java

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

Bug in ParticleAnalyzer.java

drix
Hi,

I have found a bug in ParticleAnalyzer.java where the label for the
roi manager is not correct (duplicated label) leading to missing rois
in the hastable. The solution is to use the field rt.getCounter() and
not Analyzer.getCounter() when adding the roi.

See patch against ij142e for detail.

The problem is that Analyzer.getCounter() or analyzer.getCounter()
return the system resultTable and not the one currently updated with
the plugin. I don't know if the solution is general enough, but it
solve my problem.

This bug shows a problem with the RoiManager class that does not check
if the label is unique before adding the roi, which lead to a missing
roi in the hashtable if two labels are the same. But I don't have a
good solution for this problem.

Thanks,
Hendrix

ParticleAnalyzer.txt (160 bytes) Download Attachment