How to calculate Average Intensity (Z) Projection of a time laps image sequence?

9 visualizaciones (últimos 30 días)
Marko Usaj
Marko Usaj el 10 de Dic. de 2018
Respondida: Akshat el 5 de Nov. de 2024 a las 6:01
Hej!
I wonder if here exits any function to convenely calculate Average Intensity Projection (e.g. ImageJ Z Project function with average intensity as projection type) of a time laps image sequence, similar to Matlab funciton for maximal projection MIP=max(image,[],dim).
Thank you for any info!

Respuestas (1)

Akshat
Akshat el 5 de Nov. de 2024 a las 6:01
The function you are using for maximal projection is "max", this function is generally used to find a maximum element. By specifying the "dim" that is the dimension along which you want to find the maximum element.
Similar to this "max" function, we have "mean" function which calculates the average along a dimension. More information about this function can be found here:
This boilerplate code can be used to find the Average Intensity Projection:
imageSequence = rand(256, 256, 50); % 50 frames of 256x256 images
AIP = mean(imageSequence, 3);
imshow(AIP, []);
title('Average Intensity Projection');
Hope this helps you out to find out the Average Intensity Projection.

Productos


Versión

R2018b

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by