[Insight-users] Re: GeometryOn

Luis Ibanez luis.ibanez at kitware.com
Tue May 9 15:24:58 EDT 2006


Hi Andrew,

As the error message indicates,

You must call "Update()" in the calculator
before you attempt to call GetPrincipalAxes().


   Regards,


      Luis



=================
Andrew Li wrote:
> Hi, Luis:
> 
> We have some code that is similar to what is described in SW guide:
> 	...
> 	typedef itk::VersorRigid3DTransform< double  > TransformType;
> 	TransformType::Pointer transform = TransformType::New();
> 
> 	...
> 	typedef itk::CenteredVersorTransformInitializer< 
> 		DataImgType_, DataImgType_ > TransformInitializerType_;
> 	typename TransformInitializerType_::Pointer
> m_TransformInitializer;
> 	....
> 
> 
> When we change
> 	m_TransformInitializer->MomentsOn()
> to
> 	m_TransformInitializer->GeometryOn()
> 
> we got the following error messages:        
>         itk::ExceptionObject (0xa7f09088)
>         Location: "typename 
>         itk::ImageMomentsCalculator<TImage>::MatrixType
>         itk::ImageMomentsCalculator<TImage>::GetPrincipalAxes()
>         const [with TImage = SInt16Image3DType]" 
>         File: /auto/pub/andrew/mhome/src/InsightToolkit-2.6.0/
>         	  Code/Algorithms/itkImageMomentsCalculator.txx
>         Line: 300
>         Description: itk::ERROR: ImageMomentsCalculator(0xa7f5f8e8):
>         	GetPrincipalAxes() invoked, but the moments have not
> been 		computed. Call Compute() first.
> 
> (It happens both in ITK 2.4.0 and 2.6.0)
>         
> If you or someone is currently compiling and testing
> Examples/Registration/ImageRegistration8.cxx,
> please help us to make the same 1-line change and verify that there is
> indeed a problem.
> 
> Thank you very much for your help!
> 
> -Andrew
>  
> --------------------------------------------------------
> 
> This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information.Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message. If you are the intended recipient, please be advised that the content of this message is subject to access, review and disclosure by the sender's Email System Administrator.
> --------------------------------------------------------
> 
> 




More information about the Insight-users mailing list