[Insight-users] R: SNAKES in ITK
John Galeotti
jgaleotti at cmu.edu
Sun Apr 25 15:15:25 EDT 2010
Filters with "3D" in their name only run on 3D images.
Occasionally these filters can be "fooled" into operating on a 2D
image by turning the 2D image into a "3D" image with dimensions
(x,y,z=1), but even if this succeeds to compile, run-time performance
is NOT guaranteed (there's a reason the filter was restricted to 3D in
the first place).
-John Galeotti
On Apr 25, 2010, at 12:14 PM, <edoardo.belletti at alice.it> <edoardo.belletti at alice.it
> wrote:
> Can I implement a snake with itkDeformableMesh3DFilter, because I
> tried to use the example: Examples/Segmentation/DeformableModel1.cxx
> to implement a snake with 2D images but I have an error at this line:
>
> deformableModelFilter->SetGradient( gradientMapFilter->GetOutput() );
>
> [100%] Building CXX object CMakeFiles/Lumen.dir/Lumen.cxx.o
> /home/edoardo/ITK/Tesi/02_Lumen_identification/src/Lumen.cxx: In
> function ‘int main(int, char**)’:
> /home/edoardo/ITK/Tesi/02_Lumen_identification/src/Lumen.cxx:668:
> error: no matching function for call to
> ‘itk::DeformableMesh3DFilter<itk::Mesh<double, 2u,
> itk::DefaultStaticMeshTraits<double, 2u, 2u, float, float, double>
> >, itk::Mesh<double, 2u, itk::DefaultStaticMeshTraits<double, 2u,
> 2u, float, float, double> >
> >::SetGradient(itk::Image<itk::CovariantVector<double, 2u>, 2u>*)’
> /usr/local/include/InsightToolkit/Algorithms/
> itkDeformableMesh3DFilter.h:139: note: candidates are: void
> itk::DeformableMesh3DFilter<TInputMesh,
> TOutputMesh>::SetGradient(typename
> itk::Image<itk::CovariantVector<typename TInputMesh::PixelType, 3u>,
> 3u>::Pointer) [with TInputMesh = itk::Mesh<double, 2u,
> itk::DefaultStaticMeshTraits<double, 2u, 2u, float, float, double>
> >, TOutputMesh = itk::Mesh<double, 2u,
> itk::DefaultStaticMeshTraits<double, 2u, 2u, float, float, double> >]
> make[2]: *** [CMakeFiles/Lumen.dir/Lumen.cxx.o] Errore 1
> make[1]: *** [CMakeFiles/Lumen.dir/all] Errore 2
> make: *** [all] Errore 2
>
>
> Is it possible to use this library (itkDeformableMesh3DFilter) with
> 2D images.
>
> Thank you very much for the interest
> sorry form my ignorance
> Edoardo
>
> -----Messaggio originale-----
> Da: John Galeotti [mailto:jgaleotti at cmu.edu]
> Inviato: sab 24/04/2010 17.02
> A: edoardo.belletti at alice.it
> Cc: ITK_forum
> Oggetto: Re: [Insight-users] SNAKES in ITK
>
> People often use level sets to implicitly represent snakes (active
> contours). Level-set segmentation methods are covered in the ITK
> Software Guide.
>
> If, on the other hand, you want to explicitly create and modify a
> snake, you may also be interested in ITK's built-in path
> functionality, which is probably best documented at http://www.insight-journal.org/browse/publication/32
> .
>
> -John Galeotti
>
>
> On Apr 24, 2010, at 7:01 AM, <edoardo.belletti at alice.it> <edoardo.belletti at alice.it
> > wrote:
>
> > Hi
> > I am looking to use ITK to implement a snake to make a deformable
> > model segmentation algorithm.
> > I whant to know how are the snakes that are implemeted in ITK, and
> > where can I find some documentation about that.
> >
> > Please excuse my ignorance.
> > Thank you in advance,
> > Edoardo
> >
> > _____________________________________
> > Powered by www.kitware.com
> >
> > Visit other Kitware open-source projects at
> > http://www.kitware.com/opensource/opensource.html
> >
> > Kitware offers ITK Training Courses, for more information visit:
> > http://www.kitware.com/products/protraining.html
> >
> > Please keep messages on-topic and check the ITK FAQ at:
> > http://www.itk.org/Wiki/ITK_FAQ
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.itk.org/mailman/listinfo/insight-users
>
>
>
More information about the Insight-users
mailing list