[Insight-users] Question about Hybrid Methods
Gavin Baker
gavinb+xtk at cs.mu.OZ.AU
Mon Aug 1 23:56:20 EDT 2005
Hello Bruno,
On Mon, Aug 01, 2005 at 04:14:42PM -0300, Bruno Cassaro Dal'Ava wrote:
> I was trying to reproduce the Hybrid Methods present in the session 9.4.4
> from ITK guide. I gave special attention to the Deformable Model.
>
> While testing itkDeformableMesh3Dfilter I couldn't find the method
> SetInput (looking in the .h), with which I would import the deformable
> triangular model (mesh, mentioned in (1)). Is the method missing or am I
> doing something wrong?
This is defined in the parent class, itk::MeshToMeshFilter. Other common
methods may be defined by itk::ProcessObject, further up the inheritance
hierarchy.
> Despite this, I also couldn't find the following methods, which should be
> found in the class itkBinaryMesh3DFilter: GetOutput() and
> SetBinaryImage(). Again, is there a problem here?
GetOutput() is defined in itk::MeshSource, the parent of
itk::MeshToMeshFilter.
Perhaps you mean itk::BinaryMask3DFilter? It just uses SetInput() now; it
originally used SetBinaryImage(), but it was changed in Rev 1.10 late last
year to derive from ImageToMeshFilter and use the pipeline mechanism. This
is a common base for any class that takes an image and produces a mesh.
> Could someone tell me if there is a more recent version in which this
> things are working or even if there is another way to use this classes
> without using such methods.
Being from CVS, your code is fine, I think you just need the latest version
of the ITK Software Guide in which the examples have been updated to reflect
changes in the toolkit. The 2nd edition is about to be released:
http://prdownloads.sourceforge.net/itk/ItkSoftwareGuide-2.0.0.pdf?download
regards,
:: Gavin
--
Gavin Baker Complex Systems Group
http://www.cs.mu.oz.au/~gavinb The University of Melbourne
More information about the Insight-users
mailing list