Greetings Lance,

did you try

selectImage("Mock");
roiManager("Select", 0);
Roi.setStrokeWidth(2);
roiManager("Multi Plot");

instead?

Best

Herbie

:::::::::::::::::::::::::::::::::::::::::::::
Am 07.08.25 um 20:13 schrieb Davidson, Lance:
Hi All,

Recent efforts to use plotprofile with different linewidths have given some 
surpising results where the length changes with the linewidth.

We are using free line ROIs automatically generated by segmentation algorithms. 
I've simplified the macro below to do the same thing with a simple two-segment 
polyline.

If the line is 1 pixel wide the reported distance is 685 pixels, if the line is 
2 pixels wide the distance is 705...

Not only is the plotprofile outcome odd, but the polyline gets "splined".

Any help or workaround would be appreciated.

Best,
Lance

Lance Davidson, MSc, PhD
William Kepler Whiteford Professor of Bioengineering
University of Pittsburgh

//---------------------- offending macro -----------------

newImage("Mock", "16-bit black", 850, 850, 1);
makeLine(156,486,392,255,683,459);
roiManager("Add");

selectImage("Mock");
roiManager("Select", 0);
Roi.setStrokeWidth(1);
run("Plot Profile");

selectImage("Mock");
roiManager("Select", 0);
Roi.setStrokeWidth(2);
run("Plot Profile");


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


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

Reply via email to