[Insight-users] FastMarching problem in Python wrapping

Charl P. Botha c.p.botha at ewi.tudelft.nl
04 Mar 2004 11:06:30 +0100


--=-ec9ax19p2tiTVDQnyGOS
Content-Type: text/plain
Content-Transfer-Encoding: 7bit

On Wed, 2004-03-03 at 20:21, Rodrigo Trujillo wrote:
> I'm studing FastMarchingImageFilter and trying to run the example in
> ITK Software Guide (August 21,2003) with Python.
>  
> I need to set Seeds (  fastMarching->SetTrialPoints(seeds)  ).
> This function requires 
> a type 
> " _p_itk__VectorContainerTunsigned_int_itk__LevelSetNodeTfloat_3_t_t
> ", 
> but i didn't find it in python wrapping. I didn't find "NodeContainer"
> and "NodeType".
>  
>  
> What  i need to do ? Can someone help me ?

It was a wrapping bug.  I fixed it in ITK CVS on 2004-02-26.  If you're
running a stable release, apply the two attached patches in the
directory Insight/Wrapping/CSwig/Common and rebuild.

-- 
charl p. botha http://cpbotha.net/ http://visualisation.tudelft.nl/


--=-ec9ax19p2tiTVDQnyGOS
Content-Disposition: attachment; filename=wrap_ITKCommon.cxx.diff
Content-Type: text/x-patch; name=wrap_ITKCommon.cxx.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Index: wrap_ITKCommon.cxx
===================================================================
RCS file: /cvsroot/Insight/Insight/Wrapping/CSwig/Common/wrap_ITKCommon.cxx,v
retrieving revision 1.14
retrieving revision 1.15
diff -u -r1.14 -r1.15
--- wrap_ITKCommon.cxx	18 Feb 2004 14:47:41 -0000	1.14
+++ wrap_ITKCommon.cxx	26 Feb 2004 15:59:55 -0000	1.15
 at  at  -43,6 +43,7  at  at 
     ITK_WRAP_GROUP(itkImageSource),
     ITK_WRAP_GROUP(itkImageToImageFilter),
     ITK_WRAP_GROUP(itkIndex),
+    ITK_WRAP_GROUP(itkLevelSet),
     ITK_WRAP_GROUP(itkPoint),
     ITK_WRAP_GROUP(itkSize),
     ITK_WRAP_GROUP(itkScaleTransform),

--=-ec9ax19p2tiTVDQnyGOS
Content-Disposition: attachment; filename=wrap_itkLevelSet.cxx.diff
Content-Type: text/x-patch; name=wrap_itkLevelSet.cxx.diff; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Index: wrap_itkLevelSet.cxx
===================================================================
RCS file: /cvsroot/Insight/Insight/Wrapping/CSwig/Common/wrap_itkLevelSet.cxx,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- wrap_itkLevelSet.cxx	24 Nov 2003 03:35:13 -0000	1.1
+++ wrap_itkLevelSet.cxx	26 Feb 2004 15:59:55 -0000	1.2
 at  at  -41,22 +41,25  at  at 
     typedef itk::LevelSetNode<signed short  , 3 >::LevelSetNode itkLevelSetNodeSS3;
     typedef itk::LevelSetNode<signed int    , 3 >::LevelSetNode itkLevelSetNodeSI3;
 
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeF2  >::VectorContainer itkNodeContainerF2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeD2  >::VectorContainer itkNodeContainerD2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeUC2 >::VectorContainer itkNodeContainerUC2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeUS2 >::VectorContainer itkNodeContainerUS2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeUI2 >::VectorContainer itkNodeContainerUI2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeSC2 >::VectorContainer itkNodeContainerSC2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeSS2 >::VectorContainer itkNodeContainerSS2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeSI2 >::VectorContainer itkNodeContainerSI2;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeF3  >::VectorContainer itkNodeContainerF3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeD3  >::VectorContainer itkNodeContainerD3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeUC3 >::VectorContainer itkNodeContainerUC3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeUS3 >::VectorContainer itkNodeContainerUS3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeUI3 >::VectorContainer itkNodeContainerUI3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeSC3 >::VectorContainer itkNodeContainerSC3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeSS3 >::VectorContainer itkNodeContainerSS3;
-    typedef itk::VectorContainer<unsigned int, itkLevelSetNodeSI3 >::VectorContainer itkNodeContainerSI3;
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeF2, itkNodeContainerF2);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeD2, itkNodeContainerD2);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeUC2, itkNodeContainerUC2);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeUS2, itkNodeContainerUS2);
+     
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeUI2, itkNodeContainerUI2);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeSC2, itkNodeContainerSC2);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeSS2, itkNodeContainerSS2);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeSI2, itkNodeContainerSI2);
+     
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeF3, itkNodeContainerF3);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeD3, itkNodeContainerD3);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeUC3, itkNodeContainerUC3);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeUS3, itkNodeContainerUS3);
+     
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeUI3, itkNodeContainerUI3);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeSC3, itkNodeContainerSC3);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeSS3, itkNodeContainerSS3);
+    ITK_WRAP_OBJECT2(VectorContainer, unsigned int, itkLevelSetNodeSI3, itkNodeContainerSI3);     
   }
 }
 

--=-ec9ax19p2tiTVDQnyGOS--