[Insight-users] Summing over Voxels

Julien Lamy lamy at unistra.fr
Fri Feb 17 12:20:12 EST 2012


Le 17/02/2012 15:36, Vikash Gupta a écrit :
> Hello All, 
> I was wondering, if there is any function in ITK, which will sum all the
> values in the voxels in a region. 

StatisticsImageFilter computes the sum (and more). According to the
documentation, it's multi-threaded, so it should be fast enough.

> If I iterate over the region, it is
> very time consuming. 

I agree with John Drescher : iteration using ITK iterators is pretty
efficient. Unless your data does not fit entirely in RAM, there
shouldn't be performance issues.

-- 
Julien


More information about the Insight-users mailing list