Posted by
Herbie on
Apr 09, 2019; 9:51am
URL: http://imagej.273.s1.nabble.com/How-can-I-plot-line-intensity-profile-over-time-in-imageJ-tp5022017p5022026.html
Good day,
actually I don't really understand what you like to obtain.
The live-mode gives you a temporal view of the line profile, when the
stack is animated.
If you like to get all profile plots in parallel, i.e. not as a temporal
sequence, you need to write a little macro that gives you as many
profile plots as you have slices in your stack.
What do you mean by "the line is 10 pixels"?
10 pixels long or wide?
"matrix in one file"
Does that mean you don't want plots but the gray values along the
selection line?
If the latter is what you want, then here is an ImageJ-macro that shows
how to do that. (It uses a demo stack of 27 slices.)
///////////////////////////////////////////////////////
x=96; // selection x-start
y=100; // selection y-position
len=50; // selection length
run("MRI Stack (528K)"); // demo image
setBatchMode(true);
img=getImageID();
makeRectangle(x, y, len, 1);
n=nSlices;
newImage("Result", "8-bit black", len, n, 1);
rslt=getImageID();
for ( i=0; i<n; i++ ) {
selectImage(img);
setSlice(i+1);
run("Copy");
selectImage(rslt);
makeRectangle(0, i, len, 1);
run("Paste");
}
run("Select None");
selectImage(img);
setSlice(1);
selectImage(rslt);
setBatchMode(false);
run("Set... ", "zoom=1600 x=25 y=0 width=50 height=1");
exit();
///////////////////////////////////////////////////////
Paste the above macro code to an empty macro window (Plugins >> New >>
Macro) and run it.
(You need an open internet connection to load the demo stack.)
HTH
Herbie
::::::::::::::::::::::::::::::::::::::::
Am 09.04.19 um 02:00 schrieb anran591223:
> Thank you for the reply Herbie. That is actually exactly part of what I
> wanted - to have all the data (say the line is 10 pixels and video has 20
> frames), i.e., a 20 x 10 (# of frame x pixel) matrix in one file... the
> 'live' mode will allow to generate 1, i.e., 1x10 so I'm just wondering if
> there is a easy way to put them together.
>
> Thanks
--
ImageJ mailing list:
http://imagej.nih.gov/ij/list.html