[Insight-users] Using Java wrapped itkMultiResolutionImageRegistrationMethodF3F3

Luis Ibanez luis.ibanez at kitware.com
Fri Feb 18 02:04:00 EST 2005


Hi Pablo,

You must use "GetPointer()" as in:


    m_Registrator.SetMetric( m_Metric.GetPointer() );


Please follow the Python examples in


         Insight/Examples/Registration




    Regards



       Luis



----------------------------
Pablo D. Burstein wrote:

> Hi,
> 
> I am writing a program which uses 
> itkMultiResolutionImageRegistrationMethodF3F3. The following example code:
> 
> itkMultiResolutionImageRegistrationMethodF3F3 m_Registrator= 
> itkMultiResolutionImageRegistrationMethodF3F3.itkMultiResolutionImageRegistrationMethodF3F3_New().GetPointer(); 
> 
> itkMeanSquaresImageToImageMetricF3F3 
> m_Metric=itkMeanSquaresImageToImageMetricF3F3.itkMeanSquaresImageToImageMetricF3F3_New().GetPointer(); 
> 
> m_Registrator.SetMetric(m_Metric);
> 
> results in an EXCEPTION_ACCESS_VIOLATION (from the native).
> 
> This happens with any Setter function of the Multi or Mono resolution 
> versions of the ImageRegistrationMethodF3F3 classes, and even when using 
> itkMultiResolutionImageRegistrationMethodF3F3_Pointer (instead of 
> itkMultiResolutionImageRegistrationMethodF3F3) as well.
> 
> Any suggestions?
> 
> Thank you,
> Pablo
> 
> _______________________________________________
> Insight-users mailing list
> Insight-users at itk.org
> http://www.itk.org/mailman/listinfo/insight-users
> 
> 





More information about the Insight-users mailing list