[Insight-users] Problem with the FastMarchingImageFilter

Luis Ibanez luis.ibanez at kitware.com
Fri Dec 10 00:13:28 EST 2004


Hi Evert,


Please try the following:


     fastMarching.SetTrialPoints( seeds.GetPointer()  );


and let us know what you find,


   Thanks


      Luis


-------------------------
Evert van Velsen wrote:

> Hi there,
> 
> I've got a problem when compiling my java code of the itkFastMarchingFilter.
> The following error occured:
> SetTrialPoints(InsightToolkit.itkNodeContainerF2) in
> InsightToolkit.itkFastMarchingImageFilterF2F2_Pointer cannot be applied to
> (InsightToolkit.itkNodeContainerF2_Pointer)
>                         fastMarching.SetTrialPoints( seeds  );
> 
> I've tried to solve the problem, but I can't deal with it.
> Any suggestions?
> 
> Thanks,
> 
> Evert
> 
> ------------------------------------------
> I'm using ITK 1.8.1, java 1.4.2_05 and the following code:
> 
> itkFastMarchingImageFilterF2F2_Pointer fastMarching =
> itkFastMarchingImageFilterF2F2.itkFastMarchingImageFilterF2F2_New();
> 
> itkNodeContainerF2_Pointer seeds =
> itkNodeContainerF2.itkNodeContainerF2_New();
> 
> itkIndex2 seedPosition = new itkIndex2();
> seedPosition.SetElement(0,2);
> seedPosition.SetElement(1,4);
> 
> itkLevelSetNodeF2 node = new itkLevelSetNodeF2();
> float seedValue = 0f;
> node.SetValue( seedValue );
> node.SetIndex( seedPosition );
> seeds.Initialize();
> seeds.InsertElement( 0, node );
> 
> fastMarching.SetTrialPoints( seeds  );  //<------ error
> ------------------------------------------
> _______________________________________________
> 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