Login  Register

Re: Summarize all pixelvalues inside round ROI

Posted by GuPInt on Oct 17, 2013; 9:10am
URL: http://imagej.273.s1.nabble.com/Summarize-all-pixelvalues-inside-round-ROI-tp5005136p5005218.html

Hi Michael,

your idea works perfectly thank you very much :-)
Still I changed the algorithm a bit. So here is my result in case someone esle has a similar question:


run("Find Maxima...", "noise=10 output=list exclude");

for(i=0;i<nResults;i++) {
  x=getResult("X", i);
  y=getResult("Y", i);
  doWand(x,y,0,"8-connected");
  getRawStatistics(nPixels, mean);
  count=nPixels;
  sum=mean*nPixels;
  IJ.log("object "+i+"   |   counted pixels: "+count+"   |   sum of greyvalues: "+sum);
}

selectWindow("Log");
saveAs("Text", ....);
run("Close");
selectWindow("Testimage.bmp");
run("Close");