Login  Register

Re: polygon plot profile

Posted by Herbie on Feb 21, 2017; 7:28pm
URL: http://imagej.273.s1.nabble.com/polygon-plot-profile-tp5018156p5018164.html

Well Nir,

a little macro will do...

It depends from where you start.
Let's assume you've made the selection on an 8bit image, then start the
following code:

// begin
requires("1.51j")
origImg = getImageID();
run("Make Inverse");
run("Duplicate...", "title=Temp");
tempImg = getImageID();
run("32-bit");
run("Set...", "value=NaN");
run("Select All");
run("Plot Profile");
selectImage(tempImg);
close();
selectImage(origImg);
run("Make Inverse");
// end

(Paste the code to an empty Macro.txt window (Plugins > New > Macro) and
start it with Command-R or Control-R.)

The Recorder-feature may help you with creating macros. Try it!

Regards

Herbie

::::::::::::::::::::::::::::::::::::
Am 21.02.17 um 19:58 schrieb Nirbio:

> Hi Herbie,
>
> This is a good solution. Is there an easy way to set the clear outside tool
> to NAN? I can can create NAN from the 0 values (by dividing and multiplying
> options in image calculator) but I am wondering if there is a more straight
> forward way.
>
> Thank you so much!
>
> Nir
>
>
>
> --
> View this message in context: http://imagej.1557.x6.nabble.com/polygon-plot-profile-tp5018156p5018163.html
> Sent from the ImageJ mailing list archive at Nabble.com.
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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