Login  Register

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

Posted by SUBSCRIBE IMAGEJ Marie-Laure B on Nov 25, 2014; 1:58pm
URL: http://imagej.273.s1.nabble.com/3D-object-counter-extract-data-from-the-windows-Statistics-tp5010619p5010620.html

This function do the staff, but don't answer to the question :

function ExtractMaxSlices(){

MonMax=0;
for (i=1; i<=nSlices; i++)
                {
        setSlice(i);
          getStatistics(area, mean, min, max, std);
   //      waitForUser( "max   "+max);

                                if(max>MonMax ) {
                                                MonMax = max; //find the value and location of the largest value
               
                     }
             }

             //waitForUser( "MonMax   "+MonMax);
             return MonMax;

}


lemax=ExtractMaxSlices();
waitForUser( "lemax   -> "+lemax);

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