[Insight-users] vtk to itk to vtk

Christophe Odet christophe . odet at libertysurf . fr
Thu, 8 May 2003 19:37:35 +0200


This is a multi-part message in MIME format.

------=_NextPart_000_0005_01C31599.46B62E70
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi all,

I am trying to use an itk pipeline into a vtk pipeline. One example is =
given in:

InsightApplications-1.2.0\Auxiliary\vtk\itkPNGVTKtoITKtoVTK.cxx

It works well with the provided images because they have the same size. =
But if you replace the second png image with a smaller one
the program crashes telling that the update extent is to large.

1) Bypassing the itk part of this example doesn't solve the problem. To =
solve that, You remove the first vtk actor and then create a new one and
display it as usual. With this modification le vtk pipeline works well =
when the second image is smaller.
2) But, with the previous vtk modifications, if I re-activate the itk =
pipeline, the bug re-appears.=20

Is it a pb with the itk pipeline ? or with the vtk/itk importer/exporter =
connections ? it seems that the update extents are not
correctly transmitted through the pipelines connections when an upate is =
requested....

Thanks for answers

Christophe

------=_NextPart_000_0005_01C31599.46B62E70
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.2722.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>Hi all,</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>I am trying to use an itk pipeline into =
a vtk=20
pipeline. One example is given in:</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial=20
size=3D2>InsightApplications-1.2.0\Auxiliary\vtk\itkPNGVTKtoITKtoVTK.cxx<=
/FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>It works well with the provided images =
because they=20
have the same size. But if you replace the second png image with a =
smaller=20
one</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>the program crashes telling that the =
update extent=20
is to large.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>1) Bypassing the itk part of this =
example doesn't=20
solve the problem.&nbsp;To solve that,&nbsp;You remove the first vtk =
actor and=20
then create a new one and</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>display it as usual. With this =
modification le vtk=20
pipeline works well when the second image is smaller.</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>2) But, with the previous vtk =
modifications, if I=20
re-activate the itk pipeline, the bug re-appears. </FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Is it a pb with the itk pipeline ? or =
with the=20
vtk/itk importer/exporter connections ? it seems that the update extents =
are=20
not</FONT></DIV>
<DIV><FONT face=3DArial size=3D2>correctly transmitted through the =
pipelines=20
connections when an upate is requested....</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Thanks for answers</FONT></DIV>
<DIV><FONT face=3DArial size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2>Christophe</FONT></DIV></BODY></HTML>

------=_NextPart_000_0005_01C31599.46B62E70--