[Insight-users] Problem with ConnectVTKITK

Rodrigo Trujillo Rodrigo Trujillo" <rodrigo.trujillo at cenpra.gov.br
Tue, 17 Feb 2004 09:07:00 -0300


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C3F535.66EE2220
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi,

I=B4ve just updated Insight and InsightApplications to 1.6, with
wrapping to Python. But my codes don't work when I try to pass
images from VTK to ITK, or  ITK to VTK.

This stretch of code generates following error:

"
vtkExporter =3D vtk.vtkImageExport()

itkImporter =3D itk.itkVTKImageImportF3_New()

vtkitk.ConnectVTKToITKF3(vtkExporter, itkImporter.GetPointer())
"

Traceback (most recent call last):
  File "C:\Documents and =
Settings\ailton\Desktop\Testes\RecursiveGaussian.py", line 46, in ?
    vtkitk.ConnectVTKToITKF3(vtkExporter, itkImporter.GetPointer())
TypeError: Type error. Expected =
_p_itk__VTKImageImportTitk__ImageTfloat_3_t_vtkFloatingPointType_t


I didn't  find this type required !!
Somebody that also is programming in Python can help me?
What do i need to pass to function !!!

Thanks,

Rodrigo Trujillo
------=_NextPart_000_0005_01C3F535.66EE2220
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I=B4ve just updated Insight and =
InsightApplications=20
to 1.6, with<BR>wrapping to Python. But my codes don't work when I try =
to=20
pass<BR>images from VTK to ITK, or&nbsp; ITK to VTK.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>This stretch of code generates =
following=20
error:</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>"<BR>vtkExporter =3D=20
vtk.vtkImageExport()</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>itkImporter =3D=20
itk.itkVTKImageImportF3_New()</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>vtkitk.ConnectVTKToITKF3(vtkExporter,=20
itkImporter.GetPointer())<BR>"</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Traceback (most recent call =
last):<BR>&nbsp; File=20
"C:\Documents and Settings\ailton\Desktop\Testes\RecursiveGaussian.py", =
line 46,=20
in ?<BR>&nbsp;&nbsp;&nbsp; vtkitk.ConnectVTKToITKF3(vtkExporter,=20
itkImporter.GetPointer())<BR>TypeError: Type error. Expected=20
_p_itk__VTKImageImportTitk__ImageTfloat_3_t_vtkFloatingPointType_t</FONT>=
</DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I didn't&nbsp; find this type required=20
!!<BR>Somebody that also&nbsp;is programming in Python can help =
me?</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>What do i need to pass to function =
!!!</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Rodrigo =
Trujillo</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C3F535.66EE2220--