stack averaging

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

stack averaging

Jeff Spector-2
I'd like to average the frames in a stack but all I can find are "walking"
averagers where they will average say frames1-4 then 2-5 etc.. what I'd
like to do is take the average of frames 1-4 then 5-8
and so on, so that we can take data that is say at a frame fate of 4 fps
and make it look like it was taken at 1 fps (to reduce the noise in our
images and because we record things at different frame rates). So
essentially if we were doing say 4 frame averaging then a 100 frame stack
would turn in to a 25 frame stack where each slice was the average of 4
consecutive frames.
I could write a plugin to do this, but if one exists, or there is a macro I
could use can some one point me in the right direction ?
thanks..
-Jeff

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: stack averaging

Krs5
Dear Jeff,

Sounds like you might be looking for Grouped Z-Projection; Image > Stacks > Tools > Grouped Z-Projection

Best wishes

Kees


Dr Ir K.R. Straatman
Senior Experimental Officer
Advanced Imaging Facility
Centre for Core Biotechnology Services
University of Leicester
http://www2.le.ac.uk/colleges/medbiopsych/facilities-and-services/cbs/lite/aif

-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Jeff Spector
Sent: 10 December 2014 02:55
To: [hidden email]
Subject: stack averaging

I'd like to average the frames in a stack but all I can find are "walking"
averagers where they will average say frames1-4 then 2-5 etc.. what I'd like to do is take the average of frames 1-4 then 5-8 and so on, so that we can take data that is say at a frame fate of 4 fps and make it look like it was taken at 1 fps (to reduce the noise in our images and because we record things at different frame rates). So essentially if we were doing say 4 frame averaging then a 100 frame stack would turn in to a 25 frame stack where each slice was the average of 4 consecutive frames.
I could write a plugin to do this, but if one exists, or there is a macro I could use can some one point me in the right direction ?
thanks..
-Jeff

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: stack averaging

David Strachan
In reply to this post by Jeff Spector-2
Dear Jeff,

How about using the "Walking Average" plugin you mention, then only use every  4th image.


Regards
David Strachan


-----Original Message-----
From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of Jeff Spector
Sent: 10 December 2014 02:55
To: [hidden email]
Subject: stack averaging

I'd like to average the frames in a stack but all I can find are "walking"
averagers where they will average say frames1-4 then 2-5 etc.. what I'd like to do is take the average of frames 1-4 then 5-8 and so on, so that we can take data that is say at a frame fate of 4 fps and make it look like it was taken at 1 fps (to reduce the noise in our images and because we record things at different frame rates). So essentially if we were doing say 4 frame averaging then a 100 frame stack would turn in to a 25 frame stack where each slice was the average of 4 consecutive frames.
I could write a plugin to do this, but if one exists, or there is a macro I could use can some one point me in the right direction ?
thanks..
-Jeff

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

--
ImageJ mailing list: http://imagej.nih.gov/ij/list.html
Reply | Threaded
Open this post in threaded view
|

Re: stack averaging

Jeff Spector-2
Thanks everyone for the advice. It looks like either a grouped Z projection
or using transform->bin, and then using the z-dimension will both work for
me.
-Jeff

On Wed, Dec 10, 2014 at 5:41 AM, David Strachan <
[hidden email]> wrote:

> Dear Jeff,
>
> How about using the "Walking Average" plugin you mention, then only use
> every  4th image.
>
>
> Regards
> David Strachan
>
>
> -----Original Message-----
> From: ImageJ Interest Group [mailto:[hidden email]] On Behalf Of
> Jeff Spector
> Sent: 10 December 2014 02:55
> To: [hidden email]
> Subject: stack averaging
>
> I'd like to average the frames in a stack but all I can find are "walking"
> averagers where they will average say frames1-4 then 2-5 etc.. what I'd
> like to do is take the average of frames 1-4 then 5-8 and so on, so that we
> can take data that is say at a frame fate of 4 fps and make it look like it
> was taken at 1 fps (to reduce the noise in our images and because we record
> things at different frame rates). So essentially if we were doing say 4
> frame averaging then a 100 frame stack would turn in to a 25 frame stack
> where each slice was the average of 4 consecutive frames.
> I could write a plugin to do this, but if one exists, or there is a macro
> I could use can some one point me in the right direction ?
> thanks..
> -Jeff
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>
> --
> ImageJ mailing list: http://imagej.nih.gov/ij/list.html
>

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