images with NaNs

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

images with NaNs

Malgorzata Swider
Hello everyone,
I have n 32-bit images which contain NaNs at the different locations. I want to produce an average image in a way, that NaN is ignored while I produce the average image.
So, let's say I have five 32-bit images, they are all aligned and just one of them, at (x,y) location, has NaN.
Right now, after making a stack, when I do averaging using 'Image/Stacks/Z Project/Average Intensity', I am getting NaN at this location for my average image and that's not what I have in mind.
I want to exclude NaN from calculating average and use numbers only from four remainig images which are different than NaN.
Does anyone know how to do this?
Thanks,
MS