Main Page   Groups   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Concepts

itkQuadEdgeMeshDiscreteMinCurvatureEstimator.h

Go to the documentation of this file.
00001 /*=========================================================================
00002 
00003   Program:   Insight Segmentation & Registration Toolkit
00004   Module:    $RCSfile: itkQuadEdgeMeshDiscreteMinCurvatureEstimator.h,v $
00005   Language:  C++
00006   Date:      $Date: 2008-10-01 22:06:23 $
00007   Version:   $Revision: 1.2 $
00008 
00009   Copyright (c) Insight Software Consortium. All rights reserved.
00010   See ITKCopyright.txt or http://www.itk.org/HTML/Copyright.htm for details.
00011 
00012      This software is distributed WITHOUT ANY WARRANTY; without even
00013      the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
00014      PURPOSE.  See the above copyright notices for more information.
00015 
00016 =========================================================================*/
00017 
00018 #ifndef __itkQuadEdgeMeshDiscreteMinCurvatureEstimator_h
00019 #define __itkQuadEdgeMeshDiscreteMinCurvatureEstimator_h
00020 
00021 #include "itkQuadEdgeMeshDiscretePrincipalCurvaturesEstimator.h"
00022 
00023 namespace itk
00024 {
00031 template< class TInputMesh, class TOutputMesh >
00032 class QuadEdgeMeshDiscreteMinCurvatureEstimator :
00033   public QuadEdgeMeshDiscretePrincipalCurvaturesEstimator< TInputMesh, TOutputMesh >
00034 {
00035 public:
00036   typedef QuadEdgeMeshDiscreteMinCurvatureEstimator              Self;
00037   typedef SmartPointer< Self >                                   Pointer;
00038   typedef SmartPointer< const Self >                             ConstPointer;
00039   typedef QuadEdgeMeshDiscretePrincipalCurvaturesEstimator< 
00040     TInputMesh, TOutputMesh >                                    Superclass;
00041 
00042   typedef typename Superclass::InputMeshType                     InputMeshType;
00043   typedef typename Superclass::InputMeshPointer                  InputMeshPointer;
00044 
00045   typedef typename Superclass::OutputMeshType                    OutputMeshType;
00046   typedef typename Superclass::OutputMeshPointer                 OutputMeshPointer;
00047   typedef typename Superclass::OutputPointsContainerPointer      OutputPointsContainerPointer;
00048   typedef typename Superclass::OutputPointsContainerIterator     OutputPointsContainerIterator;
00049   typedef typename Superclass::OutputPointType                   OutputPointType;
00050   typedef typename Superclass::OutputVectorType                  OutputVectorType;
00051   typedef typename Superclass::OutputCoordType                   OutputCoordType;
00052   typedef typename Superclass::OutputPointIdentifier             OutputPointIdentifier;
00053   typedef typename Superclass::OutputCellIdentifier              OutputCellIdentifier;
00054   typedef typename Superclass::OutputQEType                      OutputQEType;
00055   typedef typename Superclass::OutputMeshTraits                  OutputMeshTraits;
00056   typedef typename Superclass::OutputCurvatureType               OutputCurvatureType;
00057   
00058   typedef typename Superclass::TriangleType                      TriangleType;
00059   
00061   itkTypeMacro( QuadEdgeMeshDiscreteMinCurvatureEstimator, QuadEdgeMeshDiscretePrincipalCurvaturesEstimator );
00062 
00064   itkNewMacro( Self );
00065 
00066 protected:
00067   QuadEdgeMeshDiscreteMinCurvatureEstimator() {}
00068   ~QuadEdgeMeshDiscreteMinCurvatureEstimator() {}
00069 
00070   virtual OutputCurvatureType EstimateCurvature( const OutputPointType& iP )
00071     {
00072     this->ComputeMeanAndGaussianCurvatures( iP );
00073     return this->m_Mean - vcl_sqrt( this->ComputeDelta() );
00074     }
00075     
00076 private:
00077   QuadEdgeMeshDiscreteMinCurvatureEstimator( const Self& ); // purposely not implemented
00078   void operator = ( const Self& ); // purposely not implemented
00079 
00080 };
00081 
00082 }
00083 
00084 #endif
00085 

Generated at Tue Sep 15 04:26:48 2009 for ITK by doxygen 1.5.8 written by Dimitri van Heesch, © 1997-2000