Wavestats for defined Roi in a 3D wave

Hey,

is it possible to calculate the mean value and standard deviation for all voxels within a defined roi of a 3D wave?

Thank you,

Finn
Hello Finn,

If your ROI can be expressed as a contiguous range of rows, cols and layers then use the syntax: WaveStats /R=[][][].

If you have an ROI that can't be expressed as the above and your roiWave is set to 1 for included voxels and 0 otherwise, then a simple solution is:

MatrixOP/O dataWave=(roiWave/roiWave)*srcWave
WaveStats dataWave


If your roiWave does not consist of 0's and 1's as above you can convert it via MatrixOP equal().

I hope this helps,

A.G.
WaveMetrics, Inc.
Thank you for your answer!
I have an amorph roi, so the /R flag does not help me. The problem with the second solution is that setting out-of-roi voxels to NaN automatically converts the wave into 32-bit. Since I have large data waves I have to keep the data in the 8-bit format. Unfortunately NaN is defined as 255 here and therefore not excluded when executing the WaveStat function.

Cheers,
Finn
Hey,
I found a 64-bit computer which can handle the datasets even in 32bit. So I am fine.
Cheers,
Finn