Login  Register

Re: 3D object counter : extract data from the windows Statistics ...

Posted by Krs5 on Nov 25, 2014; 5:40pm
URL: http://imagej.273.s1.nabble.com/3D-object-counter-extract-data-from-the-windows-Statistics-tp5010619p5010625.html

Dear Marie,

There is no selection in your image, so you get the stats from the whole image.

To get an idea, something like below should work. However I have to duplicate the second ("Analyze Particles...","add slice"); for this to work. Looks like a bug.

run("Bat Cochlea Volume (19K)");

setAutoThreshold("Default dark");
//run("Threshold...");
//setThreshold(129, 255);
setOption("BlackBackground", false);
run("Convert to Mask", "stack");
run("Analyze Particles...", "stack");

//open(dirRes+img);
setSlice(1);
run("Analyze Particles...","add slice");
roiManager("select", 0);
getStatistics(area, mean, min, max);
waitForUser("area -> "+area);


setSlice(100);
run("Analyze Particles...","add slice");

run("Analyze Particles...","add slice"); // BUG

roiManager("select", 1);
getStatistics(area, mean, min, max);
waitForUser("area -> "+area);

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of SUBSCRIBE IMAGEJ Marie-Laure B
Sent: 25 November 2014 16:43
To: [hidden email]
Subject: Re: 3D object counter : extract data from the windows Statistics ...

Thank you for your help,

For stacks : 3D image, it doesn't work

run("Bat Cochlea Volume (19K)");

//open(dirRes+img);
setSlice(1);
getStatistics(area, mean, min, max);
waitForUser("area -> "+area);

setSlice(100);
getStatistics(area, mean, min, max);
waitForUser("area -> "+area);

Do I miss something ?

Marie Laure

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html