Login  Register

Re: Averaging intensity along an outline

Posted by Jan Schier on Jan 24, 2014; 12:15pm
URL: http://imagej.273.s1.nabble.com/Averaging-intensity-along-an-outline-tp5006251p5006255.html

> roiManager("reset");
> setBatchMode(true);
> selectWindow(binary);
> run("Select None");
> run("Analyze Particles...", "size=" + Area + " circularity="+Circularity+" show=" + Output + ExcludeEdges + ClearResults + IncludeHoles + Summarize + " record" + AddToManager);
> n = roiManager("count");
> roiManager("Show None");
> selectWindow(original);
> run("Select None");
> for(i=0; i<n; i++) {
> roiManager("select", i);
> run("Make Band...", "band=1");
> roiManager("Update");
> run("Measure");
> }
> setBatchMode(false);

Dear Jan,

thank you very much for the idea and for the very detailed script! That
should indeed do the trick.

In between, I have myself probably found another solution - the
Roi.getInterpolatedPolynom() gives points along polynom with 1 pixel
spacing, which is what I want.

Best regards,

Jan

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