sum every x slice of a stack

Posted by dschones on
URL: http://imagej.273.s1.nabble.com/sum-every-x-slice-of-a-stack-tp5020886.html

Dear All,

I use SEM to take videos of a transistor biased with a triangle voltage (AC)
between emitter and base in order to compare contrast and bias voltage. I
use stacks to manipulate the videos. The video is T periods long. What I
want to do is averaging every x-slice in order to reduce noise.

Lets say I take a video of 3 periods and 360 frames at 10fps. So I want to
average slice 1+121+242, 2+122+243,...120+240+360 and put them together as a
stack of 120 slices.

I thought of first creating substacks to sort the slices like:

for (i=0;i<nSlices;i++) {

run("Make Substack...", "  slices=[i-360-120]");

}

and after combining them using the z-projection tool

run("Z Project...", "start=i stop=i+3 projection=[Average Intensity]");

I'm not so much in programming macros yet. How can I combine them together?

Thanks for helping me.

Best wishes. Jonas



--
Sent from: http://imagej.1557.x6.nabble.com/

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