Replace loop over image stack calculations?
Fri, 04/03/2020 - 06:29 pm
What is the best way to do the calculations below without a for loop?
make/N=(100,100,200) imgwave= // ... (filled with some image data)
// how do I handle this part without a for loop?
for (ic = 0;ic<200;ic+=1)
ifrac[ic] = V_sum/(V_npnts*V_max)
For reference, I am computing the fraction of white level in a threshold image going through each plane in a stack.