<table cellspacing="0" cellpadding="0" border="0" ><tr><td valign="top" style="font: inherit;">I'm sorry. I forgot to send to ITK<BR><BR>--- En date de : <B>Ven 13.3.09, Nour Mestiri <I><nourmestiri@yahoo.fr></I></B> a écrit :<BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>De: Nour Mestiri <nourmestiri@yahoo.fr><BR>Objet: Re: [Insight-users] Apply an ITK filter on a VTK object<BR>À: "Luis Ibanez" <luis.ibanez@kitware.com><BR>Date: Vendredi 13 Mars 2009, 9h33<BR><BR>
<DIV id=yiv1417514849>
<TABLE cellSpacing=0 cellPadding=0 border=0>
<TBODY>
<TR>
<TD vAlign=top>
<DIV>Hi Luis. Thank you for your answer.</DIV>
<DIV>I used the first way you suggest because i'm beginner.</DIV>
<DIV> </DIV>
<DIV>I wrote in my code those lines: </DIV>
<DIV>typedef itk::ImageFileReader<ImageType> ReaderType;<BR>ReaderType::Pointer reader = ReaderType::New();</DIV>
<DIV> </DIV>
<DIV>I don't know what to put as 'ImageType'.</DIV>
<DIV>In fact, i don't find the declaration of ITK objects so evident (like VTK).</DIV>
<DIV>So can you please tell me what to do exactly to declare this object 'reader'?</DIV>
<DIV>Thank you so much<BR></DIV>
<DIV> </DIV>
<DIV><BR>--- En date de : <B>Jeu 12.3.09, Luis Ibanez <I><luis.ibanez@kitware.com></I></B> a écrit :<BR></DIV>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: rgb(16,16,255) 2px solid"><BR>De: Luis Ibanez <luis.ibanez@kitware.com><BR>Objet: Re: [Insight-users] Apply an ITK filter on a VTK object<BR>À: nourmestiri@yahoo.fr<BR>Cc: "ITK" <insight-users@itk.org><BR>Date: Jeudi 12 Mars 2009, 17h25<BR><BR>
<DIV class=plainMail><BR>Hi Nourmestiri,<BR><BR><BR> Welcome to ITK !<BR><BR><BR>There are to options that come to mind as possible solutions to your problem:<BR><BR><BR> A) The easy one: ITK can read images from VTK files.<BR> Simply use the ImageFileReader to read the .vtk image<BR> and then apply ITK filters at will. At the end of your<BR> pipeline you could also write the image back into a VTK<BR> file if you wish to do so.<BR><BR> B) The not-so-easy one: Use the ITK-VTK import/export filters<BR> in order to convert VTK images into ITK images and back<BR><BR> This is explained in the
Tutorials:<BR> <A href="http://www..itk.org/ITK/help/tutorials.html" target=_blank rel=nofollow>http://www..itk.org/ITK/help/tutorials.html</A><BR><BR> in particular in the Session:<BR> "Using ITK and VTK"<BR> <A href="http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf" target=_blank rel=nofollow>http://www.itk.org/CourseWare/Training/GettingStarted-II.pdf</A><BR><BR><BR> You will find the Import/Export classes in the directory<BR><BR> InsightApplications/Auxiliary/vtk<BR><BR> C) The high-level on:<BR> You can use the classes provided in the Insight Journal paper<BR> <A
href="http://www.insight-journal.org/browse/publication/146" target=_blank rel=nofollow>http://www.insight-journal.org/browse/publication/146</A><BR><BR> These classes can also be found in the directory:<BR><BR> InsightApplications/Auxiliary/vtk<BR><BR><BR><BR>Please let us know if you find any problem,<BR><BR><BR> Thanks<BR><BR><BR> Luis<BR><BR><BR>----------------------------<BR><A href="http://fr.mc282.mail.yahoo.com/mc/compose?to=nourmestiri@yahoo.fr" target=_blank rel=nofollow>nourmestiri@yahoo.fr</A> wrote:<BR>> Hi all ITK users.<BR>> I'm beginner in ITK developpment, so please try to help me even if my question is very evident<BR>> I have a 3D skull volume saved as a VTK file. I want to extract the crest lines of this volume and i know that if i segment it with , i cant have those lines.<BR>> My
question is: is it possible to apply an ITK filter on a VTK object?<BR>> If yes, what to do in my case? What can i do tp apply that filter on my object?<BR>> Thank you so much<BR>> <BR>> <BR>> <BR>> ------------------------------------------------------------------------<BR>> <BR>> _____________________________________<BR>> Powered by www.kitware.com<BR>> <BR>> Visit other Kitware open-source projects at<BR>> <A href="http://www.kitware.com/opensource/opensource.html" target=_blank rel=nofollow>http://www.kitware.com/opensource/opensource.html</A><BR>> <BR>> Please keep messages on-topic and check the ITK FAQ at: <A href="http://www.itk.org/Wiki/ITK_FAQ" target=_blank rel=nofollow>http://www.itk.org/Wiki/ITK_FAQ</A><BR>> <BR>> Follow this link to subscribe/unsubscribe:<BR>> <A href="http://www.itk.org/mailman/listinfo/insight-users" target=_blank
rel=nofollow>http://www.itk.org/mailman/listinfo/insight-users</A><BR></DIV></BLOCKQUOTE></TD></TR></TBODY></TABLE><BR></DIV></BLOCKQUOTE></td></tr></table><br>