Re: Overlay plots from plot profile
Posted by Jan Eglinger-5 on Sep 30, 2009; 12:21pm
URL: http://imagej.273.s1.nabble.com/Overlay-plots-from-plot-profile-tp3690968p3690969.html
Hi Gareth,
Gareth Howell wrote:
> Is it possible to overlay plots generated with the Plot Profile tool?
You can set "Edit>Options>Profile Plot Options..." to a fixed y-axis,
then run Plot Profile on each channel and overlay the plots.
The following macro does this on an example image:
// ---------- Start Macro --------------
// Three Color Overlay Plot of a Line
run("Fluorescent Cells (400K)");
run("Profile Plot Options...", "width=450 height=200 minimum=0
maximum=255 fixed interpolate draw");
makeLine(226, 166, 327, 464);
run("Plot Profile");
run("Invert");
rename("red");
selectWindow("FluorescentCells.tif");
setSlice(2);
run("Plot Profile");
run("Invert");
rename("green");
selectWindow("FluorescentCells.tif");
setSlice(3);
run("Plot Profile");
run("Invert");
rename("blue");
run("Merge Channels...", "red=red green=green blue=blue gray=*None*
create keep");
// ---------- End Macro --------------
Hth,
Jan