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.
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:
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.
November 19, 2012 at 09:43 am - Permalink
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
November 20, 2012 at 12:30 am - Permalink
I found a 64-bit computer which can handle the datasets even in 32bit. So I am fine.
Cheers,
Finn
November 20, 2012 at 01:28 am - Permalink