<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2180" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>Hi 
khadra,</FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>I have had the same problem. ITK 2.0 and MAIN tag 
don't have python wrap for itkLevelSetNode and another several classes of ITK. I 
don't&nbsp;know why this happening, to each upgrade we have little number of 
classes in python. By the way solution in this particular case is to substitute 
the code of wrap_itkLevelSet.cxx in </FONT><FONT face=Arial 
size=2>Insight\Wrapping\CSwig\CommonA. Put this one in our place and the project 
again. Any problem with it you can mail me. it so dificult to develop in python 
because the little numbers of devolper in insight-users. We con exchange some 
codes in python !!!</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>good lucky</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2>bruno.</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>#include 
"itkLevelSet.h"<BR>#include "itkVectorContainer.h"</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>#ifdef 
CABLE_CONFIGURATION<BR>#include "itkCSwigMacros.h"<BR>namespace _LSN_ 
{<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 2 
&gt;::LevelSetNode itkLevelSetNodeF2 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 2 
&gt;::LevelSetNode itkLevelSetNodeD2 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned char , 2 &gt;::LevelSetNode 
itkLevelSetNodeUC2;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;unsigned 
short, 2 &gt;::LevelSetNode itkLevelSetNodeUS2;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned int&nbsp; , 2 &gt;::LevelSetNode 
itkLevelSetNodeUI2;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
char&nbsp;&nbsp; , 2 &gt;::LevelSetNode 
itkLevelSetNodeSC2;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
short&nbsp; , 2 &gt;::LevelSetNode itkLevelSetNodeSS2;<BR>&nbsp;&nbsp;&nbsp; 
typedef itk::LevelSetNode&lt;signed int&nbsp;&nbsp;&nbsp; , 2 &gt;::LevelSetNode 
itkLevelSetNodeSI2;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 3 
&gt;::LevelSetNode itkLevelSetNodeF3 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 3 
&gt;::LevelSetNode itkLevelSetNodeD3 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned char , 3 &gt;::LevelSetNode 
itkLevelSetNodeUC3;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;unsigned 
short, 3 &gt;::LevelSetNode itkLevelSetNodeUS3;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned int&nbsp; , 3 &gt;::LevelSetNode 
itkLevelSetNodeUI3;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
char&nbsp;&nbsp; , 3 &gt;::LevelSetNode 
itkLevelSetNodeSC3;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
short&nbsp; , 3 &gt;::LevelSetNode itkLevelSetNodeSS3;<BR>&nbsp;&nbsp;&nbsp; 
typedef itk::LevelSetNode&lt;signed int&nbsp;&nbsp;&nbsp; , 3 &gt;::LevelSetNode 
itkLevelSetNodeSI3;<BR>}</FONT></FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>namespace 
_cable_<BR>{<BR>&nbsp; const char* const group = 
ITK_WRAP_GROUP(itkLevelSet);<BR>&nbsp; namespace wrappers<BR>&nbsp; 
{</FONT></FONT></DIV>
<DIV>&nbsp;</DIV><FONT face=Arial size=2><FONT face=Arial size=2>
<DIV><BR>&nbsp;typedef 
itk::LevelSetNode&lt;float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 2 
&gt;::LevelSetNode itkLevelSetNodeF2 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 2 
&gt;::LevelSetNode itkLevelSetNodeD2 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned char , 2 &gt;::LevelSetNode 
itkLevelSetNodeUC2;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;unsigned 
short, 2 &gt;::LevelSetNode itkLevelSetNodeUS2;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned int&nbsp; , 2 &gt;::LevelSetNode 
itkLevelSetNodeUI2;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
char&nbsp;&nbsp; , 2 &gt;::LevelSetNode 
itkLevelSetNodeSC2;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
short&nbsp; , 2 &gt;::LevelSetNode itkLevelSetNodeSS2;<BR>&nbsp;&nbsp;&nbsp; 
typedef itk::LevelSetNode&lt;signed int&nbsp;&nbsp;&nbsp; , 2 &gt;::LevelSetNode 
itkLevelSetNodeSI2;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;float&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 3 
&gt;::LevelSetNode itkLevelSetNodeF3 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;double&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; , 3 
&gt;::LevelSetNode itkLevelSetNodeD3 ;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned char , 3 &gt;::LevelSetNode 
itkLevelSetNodeUC3;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;unsigned 
short, 3 &gt;::LevelSetNode itkLevelSetNodeUS3;<BR>&nbsp;&nbsp;&nbsp; typedef 
itk::LevelSetNode&lt;unsigned int&nbsp; , 3 &gt;::LevelSetNode 
itkLevelSetNodeUI3;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
char&nbsp;&nbsp; , 3 &gt;::LevelSetNode 
itkLevelSetNodeSC3;<BR>&nbsp;&nbsp;&nbsp; typedef itk::LevelSetNode&lt;signed 
short&nbsp; , 3 &gt;::LevelSetNode itkLevelSetNodeSS3;<BR>&nbsp;&nbsp;&nbsp; 
typedef itk::LevelSetNode&lt;signed int&nbsp;&nbsp;&nbsp; , 3 &gt;::LevelSetNode 
itkLevelSetNodeSI3;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;</DIV>
<DIV>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, unsigned int, 
_LSN_::itkLevelSetNodeF2, itkNodeContainerF2);<BR>&nbsp;&nbsp;&nbsp; 
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeD2, 
itkNodeContainerD2);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeUC2, 
itkNodeContainerUC2);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeUS2, 
itkNodeContainerUS2);<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeUI2, 
itkNodeContainerUI2);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeSC2, 
itkNodeContainerSC2);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeSS2, 
itkNodeContainerSS2);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeSI2, 
itkNodeContainerSI2);<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeF3, 
itkNodeContainerF3);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeD3, 
itkNodeContainerD3);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeUC3, 
itkNodeContainerUC3);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeUS3, 
itkNodeContainerUS3);<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp; 
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeUI3, 
itkNodeContainerUI3);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeSC3, 
itkNodeContainerSC3);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeSS3, 
itkNodeContainerSS3);<BR>&nbsp;&nbsp;&nbsp; ITK_WRAP_OBJECT2(VectorContainer, 
unsigned int, _LSN_::itkLevelSetNodeSI3, 
itkNodeContainerSI3);&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp; }<BR>}</DIV>
<DIV>&nbsp;</DIV>
<DIV>#endif<BR></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT>&nbsp;</DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>&gt;Message: 
5<BR>&gt;Date: Fri, 03 Jun 2005 10:47:05 +0200<BR>&gt;From: "yasser.khadra" 
&lt;</FONT><A href="mailto:yasser.khadra@creatis.insa-lyon.fr"><FONT 
face="Times New Roman" size=3>yasser.khadra@creatis.insa-lyon.fr</FONT></A><FONT 
face="Times New Roman" size=3>&gt;<BR>&gt;Subject: [Insight-users] 
itkLevelSetNodeF3 in itk 2.0?<BR>&gt;To: </FONT><A 
href="mailto:insight-users@itk.org"><FONT face="Times New Roman" 
size=3>insight-users@itk.org</FONT></A><BR><FONT face="Times New Roman" 
size=3>&gt;Message-ID:<BR>&gt;&lt;</FONT><A 
href="mailto:5.0.2.1.2.20050603104548.00b02a48@pop3.creatis.insa-lyon.fr"><FONT 
face="Times New Roman" 
size=3>5.0.2.1.2.20050603104548.00b02a48@pop3.creatis.insa-lyon.fr</FONT></A><FONT 
face="Times New Roman" size=3>&gt;<BR>&gt;Content-Type: text/plain; 
charset="iso-8859-1"<BR><FONT face=Arial size=2>&gt;</FONT><BR>&gt;Hi,<BR>&gt;I 
used itkFastMarchingFilter (itk 1.6) in Python this is part of my 
<BR>&gt;program: &gt; ....... &gt;<BR><FONT face=Arial 
size=2>&gt;</FONT><BR>&gt;SeedPosition=itkIndex3()<BR>&gt;seedValue =0<BR><FONT 
face=Arial size=2>&gt;</FONT><BR>&gt;node = itkLevelSetNodeF3()<BR><FONT 
face=Arial size=2>&gt;</FONT><BR>&gt;seeds = 
itkNodeContainerF3_New()<BR>&gt;seeds.Initialize()<BR><FONT face=Arial 
size=2>&gt;</FONT><BR>&gt;def 
AddSeed(self,x,y,z,i):<BR>&gt;SeedPosition.SetElement(0,int(x))<BR>&gt;SeedPosition.SetElement(1,int(y))<BR>&gt;SeedPosition.SetElement(2,int(z))<BR>&gt;node.SetValue(0)<BR>&gt;node.SetIndex(SeedPosition)<BR>&gt;seeds.InsertElement(i,node)<BR>&gt;<BR>&gt;,but 
now in "itk 2.0", I have an error :<BR>&gt;<BR>&gt;"module" object has no 
attribute "itkLevelSetNodeF3"<BR>&gt;<BR>&gt;I don't know how to get 
"itkLevelSetNodeF3" in itk 2.0 (in python)<BR>&gt;<BR>&gt;thanks in 
advance!</FONT><BR><FONT face="Times New Roman" 
size=3>&gt;</FONT><BR><BR><BR></DIV></FONT></BODY></HTML>