Posted by
CARL Philippe (LBP) on
Sep 12, 2019; 1:06pm
URL: http://imagej.273.s1.nabble.com/Back-and-forth-updates-within-the-Particle-Analyzer-tp5022441.html
Dear all (probably mostly Michael and Wayne),
Within the version 1.52k and the following correction:
Thanks to Johannes Wibisana, fixed a bug in the Particle Analyzer that caused ROIs added to overlays and the ROI Manager to not exclude interior holes.
when analyzing the following picture:
[
http://punias.free.fr/ImageJ/The_Ring.tif ] [
http://punias.free.fr/ImageJ/The_Ring.tif |
http://punias.free.fr/ImageJ/The_Ring.tif ]
the Analyze> Analyze _ Particle... method was nicely identifying a ring ROI.
But in the next update (i.e. 1.52l) with the following correction:
Thanks to Gilles Carpentier, fixed a 1.52k regression that caused the particle analyzer to unexpectedly create composite ROIs.
these lines have been erased from the addToRoiManager and drawOutline methods within the ParticleAnalyzer.java file:
if (floodFill && mask!=null) {
mask.setThreshold(255, 255, ImageProcessor.NO_LUT_UPDATE);
roi2 = new ThresholdToSelection().convert(mask);
if (roi2!=null && (roi2 instanceof ShapeRoi)) {
roi2.setLocation(roi.getXBase(), roi.getYBase());
((ShapeRoi)roi2).setPaPerim(roi.getLength());
} else
roi2 = (Roi)roi.clone();
} else
roi2 = (Roi)roi.clone();
which make The_Ring.tif picture to be only recognized as a circular ROI.
Thus would it be possible to make a compilation of this, i.e. having the Analyze> Analyze _ Particle... method correctly recognize The_Ring example picture as a ring ROI, while not generating the bug reported by Johannes Wibisana?
I thank you very much in advance for your help on this issue.
My best regards,
Philippe
Philippe CARL
Laboratoire de Bioimagerie et Pathologies
UMR 7021 CNRS - Université de Strasbourg
Faculté de Pharmacie
74 route du Rhin
67401 ILLKIRCH
Tel : +33(0)3 68 85 41 84
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html