[Insight-users] Help - ImageMomentsCalculator Error
    Fauze Polpeta 
    fauze.polpeta at gmail.com
       
    Sun Jan 30 23:18:36 EST 2011
    
    
  
Hi;
What leads the ImageMomentsCalculator to output the following error:
Compute(): Total Mass of the image was zero. Aborting here to prevent
division by zero later on.
This function is called when I try to initialize a
itk::VersorRigid3DTransform as follows:
=====
typedef itk::CenteredVersorTransformInitializer< ImageType, ImageType>
TransformInitializerType;
TransformInitializerType::Pointer transformInitializer =
TransformInitializerType::New();
transformInitializer->SetTransform(self->transform);
transformInitializer->SetFixedImage(volume1);
transformInitializer->SetMovingImage(volume2);
transformInitializer->InitializeTransform();
Then console outputs:
itk::ERROR: ImageMomentsCalculator(0x1e0af580): Compute(): Total Mass
of the image was zero. Aborting here to prevent division by zero later
on.
=====
Regards
Fauze
    
    
More information about the Insight-users
mailing list