ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkDiscreteMaximumCurvatureQuadEdgeMeshFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef __itkDiscreteMaximumCurvatureQuadEdgeMeshFilter_h
19 #define __itkDiscreteMaximumCurvatureQuadEdgeMeshFilter_h
20 
22 
23 namespace itk
24 {
32 template< class TInputMesh, class TOutputMesh=TInputMesh >
34  public DiscretePrincipalCurvaturesQuadEdgeMeshFilter< TInputMesh, TOutputMesh >
35 {
36 public:
41  TInputMesh, TOutputMesh > Superclass;
42 
43  typedef typename Superclass::InputMeshType InputMeshType;
44  typedef typename Superclass::InputMeshPointer InputMeshPointer;
45 
46  typedef typename Superclass::OutputMeshType OutputMeshType;
47  typedef typename Superclass::OutputMeshPointer OutputMeshPointer;
48  typedef typename Superclass::OutputPointsContainerPointer OutputPointsContainerPointer;
49  typedef typename Superclass::OutputPointsContainerIterator OutputPointsContainerIterator;
50  typedef typename Superclass::OutputPointType OutputPointType;
51  typedef typename Superclass::OutputVectorType OutputVectorType;
52  typedef typename Superclass::OutputCoordType OutputCoordType;
53  typedef typename Superclass::OutputPointIdentifier OutputPointIdentifier;
54  typedef typename Superclass::OutputCellIdentifier OutputCellIdentifier;
55  typedef typename Superclass::OutputQEType OutputQEType;
56  typedef typename Superclass::OutputMeshTraits OutputMeshTraits;
57  typedef typename Superclass::OutputCurvatureType OutputCurvatureType;
58 
59  typedef typename Superclass::TriangleType TriangleType;
60 
63 
65  itkNewMacro(Self);
66 
67 #ifdef ITK_USE_CONCEPT_CHECKING
68 
69  itkConceptMacro( OutputIsFloatingPointCheck,
71 
73 #endif
74 
75 protected:
78 
79  virtual OutputCurvatureType EstimateCurvature(const OutputPointType & iP)
80  {
81  this->ComputeMeanAndGaussianCurvatures(iP);
82  return this->m_Mean + vcl_sqrt( this->ComputeDelta() );
83  }
84 
85 private:
86  DiscreteMaximumCurvatureQuadEdgeMeshFilter(const Self &); // purposely not
87  // implemented
88  void operator=(const Self &); // purposely not
89  // implemented
90 };
91 }
92 
93 #endif
94