Thu, 01/11/2018 - 12:52 pm
I am Giorgia and I am really new in Igor. I would like to analyze a movie (let's say 500 frames). The movie shows particles (which are my ROI) travelling along a channel. I want to create a projection of these particles (so at the end I should obtain one single image), and I would need to threshold and average the signal of the particles (so, I guess of the single frame).
In this case I would need to threshold a 3D wave. But, does the Imagethreshold return a 2D wave?if so, this part of the code is not correct "ImageTransform/R=M_Imagethresh averageImage input3dwaveNup", isn't it?
This the code that I am using:
wave input3DwaveNup, input3DwaveCargo
wave M_Imagethresh, M_AveImage
variable i,j,k, waveMaxNup, WaveMaxCargo, WaveMinNup, WaveMinCargo, ImageNum = dimsize(input3dwaveNup,2)
variable t1=startmstimer, timerRefNum
make/d/o/n=(dimsize(input3dwaveNup,0),dimsize(input3dwaveNup,1), dimsize(input3dwaveNup,2)) dummy3D
make/d/o/n=(dimsize(input3dwaveNup,0),dimsize(input3dwaveNup,1)) outputwaveNup = 0, outputwaveCargo = 0, RatioCargoVsNup=0
ImageTransform/R=M_Imagethresh averageImage input3dwaveNup
outputwaveNup = M_aveimage
ImageTransform/R=M_Imagethresh averageImage input3dwavecargo
outputwavecargo = M_aveimage