[Insight-users] About voxel counting for Binary image

Matt McCormick matt at mmmccormick.com
Fri Dec 17 03:28:12 EST 2010


Hi Yang,

>   
> nrOfVoxelsInMask->SetInput(filterBM->GetOutput());
>  
> std::cout<<"Number of Voxel"<<": " << nrOfVoxelsInMask->GetSum()<<std::endl;
>  

It looks like you forgot to call 

  nrOfVoxelsInMask->Update();

here.

Regards,
Matt



More information about the Insight-users mailing list