<!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> </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 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> </DIV>
<DIV><FONT face=Arial size=2>good lucky</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>bruno.</FONT></DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>#include
"itkLevelSet.h"<BR>#include "itkVectorContainer.h"</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>#ifdef
CABLE_CONFIGURATION<BR>#include "itkCSwigMacros.h"<BR>namespace _LSN_
{<BR> typedef
itk::LevelSetNode<float , 2
>::LevelSetNode itkLevelSetNodeF2 ;<BR> typedef
itk::LevelSetNode<double , 2
>::LevelSetNode itkLevelSetNodeD2 ;<BR> typedef
itk::LevelSetNode<unsigned char , 2 >::LevelSetNode
itkLevelSetNodeUC2;<BR> typedef itk::LevelSetNode<unsigned
short, 2 >::LevelSetNode itkLevelSetNodeUS2;<BR> typedef
itk::LevelSetNode<unsigned int , 2 >::LevelSetNode
itkLevelSetNodeUI2;<BR> typedef itk::LevelSetNode<signed
char , 2 >::LevelSetNode
itkLevelSetNodeSC2;<BR> typedef itk::LevelSetNode<signed
short , 2 >::LevelSetNode itkLevelSetNodeSS2;<BR>
typedef itk::LevelSetNode<signed int , 2 >::LevelSetNode
itkLevelSetNodeSI2;<BR> typedef
itk::LevelSetNode<float , 3
>::LevelSetNode itkLevelSetNodeF3 ;<BR> typedef
itk::LevelSetNode<double , 3
>::LevelSetNode itkLevelSetNodeD3 ;<BR> typedef
itk::LevelSetNode<unsigned char , 3 >::LevelSetNode
itkLevelSetNodeUC3;<BR> typedef itk::LevelSetNode<unsigned
short, 3 >::LevelSetNode itkLevelSetNodeUS3;<BR> typedef
itk::LevelSetNode<unsigned int , 3 >::LevelSetNode
itkLevelSetNodeUI3;<BR> typedef itk::LevelSetNode<signed
char , 3 >::LevelSetNode
itkLevelSetNodeSC3;<BR> typedef itk::LevelSetNode<signed
short , 3 >::LevelSetNode itkLevelSetNodeSS3;<BR>
typedef itk::LevelSetNode<signed int , 3 >::LevelSetNode
itkLevelSetNodeSI3;<BR>}</FONT></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2>namespace
_cable_<BR>{<BR> const char* const group =
ITK_WRAP_GROUP(itkLevelSet);<BR> namespace wrappers<BR>
{</FONT></FONT></DIV>
<DIV> </DIV><FONT face=Arial size=2><FONT face=Arial size=2>
<DIV><BR> typedef
itk::LevelSetNode<float , 2
>::LevelSetNode itkLevelSetNodeF2 ;<BR> typedef
itk::LevelSetNode<double , 2
>::LevelSetNode itkLevelSetNodeD2 ;<BR> typedef
itk::LevelSetNode<unsigned char , 2 >::LevelSetNode
itkLevelSetNodeUC2;<BR> typedef itk::LevelSetNode<unsigned
short, 2 >::LevelSetNode itkLevelSetNodeUS2;<BR> typedef
itk::LevelSetNode<unsigned int , 2 >::LevelSetNode
itkLevelSetNodeUI2;<BR> typedef itk::LevelSetNode<signed
char , 2 >::LevelSetNode
itkLevelSetNodeSC2;<BR> typedef itk::LevelSetNode<signed
short , 2 >::LevelSetNode itkLevelSetNodeSS2;<BR>
typedef itk::LevelSetNode<signed int , 2 >::LevelSetNode
itkLevelSetNodeSI2;<BR> typedef
itk::LevelSetNode<float , 3
>::LevelSetNode itkLevelSetNodeF3 ;<BR> typedef
itk::LevelSetNode<double , 3
>::LevelSetNode itkLevelSetNodeD3 ;<BR> typedef
itk::LevelSetNode<unsigned char , 3 >::LevelSetNode
itkLevelSetNodeUC3;<BR> typedef itk::LevelSetNode<unsigned
short, 3 >::LevelSetNode itkLevelSetNodeUS3;<BR> typedef
itk::LevelSetNode<unsigned int , 3 >::LevelSetNode
itkLevelSetNodeUI3;<BR> typedef itk::LevelSetNode<signed
char , 3 >::LevelSetNode
itkLevelSetNodeSC3;<BR> typedef itk::LevelSetNode<signed
short , 3 >::LevelSetNode itkLevelSetNodeSS3;<BR>
typedef itk::LevelSetNode<signed int , 3 >::LevelSetNode
itkLevelSetNodeSI3;</DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV> ITK_WRAP_OBJECT2(VectorContainer, unsigned int,
_LSN_::itkLevelSetNodeF2, itkNodeContainerF2);<BR>
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeD2,
itkNodeContainerD2);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeUC2,
itkNodeContainerUC2);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeUS2,
itkNodeContainerUS2);<BR> <BR>
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeUI2,
itkNodeContainerUI2);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeSC2,
itkNodeContainerSC2);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeSS2,
itkNodeContainerSS2);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeSI2,
itkNodeContainerSI2);<BR> <BR>
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeF3,
itkNodeContainerF3);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeD3,
itkNodeContainerD3);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeUC3,
itkNodeContainerUC3);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeUS3,
itkNodeContainerUS3);<BR> <BR>
ITK_WRAP_OBJECT2(VectorContainer, unsigned int, _LSN_::itkLevelSetNodeUI3,
itkNodeContainerUI3);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeSC3,
itkNodeContainerSC3);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeSS3,
itkNodeContainerSS3);<BR> ITK_WRAP_OBJECT2(VectorContainer,
unsigned int, _LSN_::itkLevelSetNodeSI3,
itkNodeContainerSI3); <BR> }<BR>}</DIV>
<DIV> </DIV>
<DIV>#endif<BR></FONT></FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face=Arial size=2></FONT></FONT> </DIV>
<DIV><FONT face=Arial size=2><FONT face="Times New Roman" size=3>>Message:
5<BR>>Date: Fri, 03 Jun 2005 10:47:05 +0200<BR>>From: "yasser.khadra"
<</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>><BR>>Subject: [Insight-users]
itkLevelSetNodeF3 in itk 2.0?<BR>>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>>Message-ID:<BR>><</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>><BR>>Content-Type: text/plain;
charset="iso-8859-1"<BR><FONT face=Arial size=2>></FONT><BR>>Hi,<BR>>I
used itkFastMarchingFilter (itk 1.6) in Python this is part of my
<BR>>program: > ....... ><BR><FONT face=Arial
size=2>></FONT><BR>>SeedPosition=itkIndex3()<BR>>seedValue =0<BR><FONT
face=Arial size=2>></FONT><BR>>node = itkLevelSetNodeF3()<BR><FONT
face=Arial size=2>></FONT><BR>>seeds =
itkNodeContainerF3_New()<BR>>seeds.Initialize()<BR><FONT face=Arial
size=2>></FONT><BR>>def
AddSeed(self,x,y,z,i):<BR>>SeedPosition.SetElement(0,int(x))<BR>>SeedPosition.SetElement(1,int(y))<BR>>SeedPosition.SetElement(2,int(z))<BR>>node.SetValue(0)<BR>>node.SetIndex(SeedPosition)<BR>>seeds.InsertElement(i,node)<BR>><BR>>,but
now in "itk 2.0", I have an error :<BR>><BR>>"module" object has no
attribute "itkLevelSetNodeF3"<BR>><BR>>I don't know how to get
"itkLevelSetNodeF3" in itk 2.0 (in python)<BR>><BR>>thanks in
advance!</FONT><BR><FONT face="Times New Roman"
size=3>></FONT><BR><BR><BR></DIV></FONT></BODY></HTML>