Miladi,<br><br>If your data is 3D, I would use vtkDiscreteMarchingCues which is desigend to work with segmented data. Once created, it can be smoothed with vtkWindowedSincPolyDataFilter.<br><br>Bill<br><br><br><div><span class="gmail_quote">
On 4/5/07, <b class="gmail_sendername">Luis Ibanez</b> <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi Miladi,<br><br>Please read the ITK Software Guide:<br><br> <a href="http://www.itk.org/ItkSoftwareGuide.pdf">http://www.itk.org/ItkSoftwareGuide.pdf</a><br><br>You will find examples on how to read multiple 2D<br>
slice files into a single 3D image in section 7.11.1<br>"Reading Image Series" in pdf-page 319.<br><br>The source code example can be found in<br><br> Insight/Examples/IO/ImageSeriesReadWrite.cxx<br><br><br><br>
For an example on how to use the VTK marching<br>cubes on an ITK image, please look at:<br><br><br> InsightApplications/Auxiliary/vtk/<br> itkReadITKImage3DSegmentShowVTK.cxx<br><br>It shows how to convert an ITK image into vtkImageData
<br>and then pass it to the vtkContour filter.<br><br><br> Regards,<br><br><br> Luis<br><br><br><br>-------------------------<br>Miladi Med Amine wrote:<br>> Hi,<br>> thanks you for help.<br>> can you let me how get the 3d binary image from slices.
<br>> Now i m thinking about marching cube marching cube algorithme using<br>> vtkImageMarchingCubes,so can you if you knew ho to use this filter and<br>> can it get segmented slices as my exemple.<br>> thanks
<br>><br>> */Luis Ibanez <<a href="mailto:luis.ibanez@kitware.com">luis.ibanez@kitware.com</a>>/* a écrit :<br>><br>><br>> Hi Miladi,<br>><br>> Thanks for sending your example images.<br>
><br>> Given that you already have segmentations for<br>> each slice, the easy way to generate a contour<br>> is to take the 3D binary image that you have<br>> and to pass it to the filter:<br>
><br>> <a href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryMask3DMeshSource.html">http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryMask3DMeshSource.html</a><br>><br>> This filter will produce an itkMesh that is the
<br>> contour of the segmentation.<br>><br>> This is interesting if you plan to do something<br>> like Deformable Models.<br>><br>><br>> Note that if your purpose is to do visualization
<br>> of the contour, then you will find more useful<br>> to convert the ITK image of the segmentation into<br>> a VTK image, and then pass it to the vtkContour filter.<br>><br>> You will find examples on how to do this in the
<br>> directory:<br>><br>> InsightApplications/Auxiliary/vtk/<br>> itkReadITKImage3DSegmentShowVTK.cxx<br>><br>><br>><br>> Regards,<br>><br>><br>> Luis<br>><br>><br>
><br>> -------------------------<br>> Miladi Med Amine wrote:<br>> > Hi Luis;<br>> > my question is what is the way to create a mesh of endocade for<br>> > exemple.i have a series of image as the exemple sended to you
<br>> > representing the object.<br>> > and i would like to get some point the contour for each image,and<br>> create<br>> > the mesh.<br>> > There's a way in itk to do that.
<br>> ><br>> > Thanks<br>> > MILADI<br>> ><br>> > ----- Message d'origine ----<br>> > De : Luis Ibanez<br>> > À : Miladi Med Amine<br>> > Envoyé le : Mardi, 27 Mars 2007, 16h30mn 16s
<br>> > Objet : Re: Re : [Insight-users] mesh creation from segmented image<br>> ><br>> > Hi Miladi,<br>> ><br>> ><br>> > What is your question ?<br>> >
<br>> ><br>> > Thanks<br>> ><br>> ><br>> > Luis<br>> ><br>> ><br>> > ------------------------<br>> > Miladi Med Amine wrote:
<br>> > ><br>> > > hi;<br>> > > I would like to help me more.<br>> > > So i have a series of segmented image of endocade,and my<br>> objectif is to<br>> > > create a mesh to modelise the endocade using itk.
<br>> > > thanks<br>> > > ----- Message d'origine ----<br>> > > De : Luis Ibanez<br>> > > À : medamine<br>> > > Cc : <a href="mailto:insight-users@itk.org">
insight-users@itk.org</a><br>> > > Envoyé le : Lundi, 26 Mars 2007, 0h45mn 37s<br>> > > Objet : Re: [Insight-users] mesh creation from segmented image<br>> > ><br>> > > Hi Medamine,
<br>> > ><br>> > > You may want to look at this filter:<br>> > ><br>> > ><br>> ><br>> <a href="http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryMask3DMeshSource.html">
http://www.itk.org/Insight/Doxygen/html/classitk_1_1BinaryMask3DMeshSource.html</a><br>> > ><br>> > ><br>> > > Regards,<br>> > ><br>> > ><br>> > > Luis
<br>> > ><br>> > ><br>> > ><br>> > > --------------------<br>> > > medamine wrote:<br>> > > > hi .<br>> > > > i would like to create a mesh from a segmented
<br>> image(endocade),and i m<br>> > > > thinking about using snake to get cordonates of "contour".<br>> > > > my question there's a methode to do that using itk?<br>
> > > > thanks for all.<br>> > ><br>> > ><br>> > ><br>> ------------------------------------------------------------------------<br>> > > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
<br>> > > questions ! Profitez des connaissances, des opinions et des<br>> expériences<br>> > > des internautes sur Yahoo! Questions/Réponses<br>> > > .<br>> ><br>
> ><br>> ><br>> ------------------------------------------------------------------------<br>> > Découvrez une nouvelle façon d'obtenir des réponses à toutes vos<br>> > questions ! Profitez des connaissances, des opinions et des
<br>> expériences<br>> > des internautes sur Yahoo! Questions/Réponses<br>> > .<br>><br>><br>> ------------------------------------------------------------------------<br>> Découvrez une nouvelle façon d'obtenir des réponses à toutes vos
<br>> questions ! Profitez des connaissances, des opinions et des expériences<br>> des internautes sur Yahoo! Questions/Réponses<br>> <<a href="http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com">http://fr.rd.yahoo.com/evt=42054/*http://fr.answers.yahoo.com
</a>>.<br>_______________________________________________<br>Insight-users mailing list<br><a href="mailto:Insight-users@itk.org">Insight-users@itk.org</a><br><a href="http://www.itk.org/mailman/listinfo/insight-users">
http://www.itk.org/mailman/listinfo/insight-users</a><br></blockquote></div><br>