ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkLabeledPointSetToPointSetMetricv4.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 __itkLabeledPointSetToPointSetMetricv4_h
19 #define __itkLabeledPointSetToPointSetMetricv4_h
20 
22 
23 #include <vector>
24 
25 namespace itk
26 {
52 template<typename TFixedPointSet, typename TMovingPointSet = TFixedPointSet,
53  class TInternalComputationValueType = double>
55  public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet, TInternalComputationValueType>
56 {
57 public:
58 
61  typedef PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet,
62  TInternalComputationValueType> Superclass;
65 
67  itkNewMacro( Self );
68 
71 
72  typedef TFixedPointSet FixedPointSetType;
73  typedef typename FixedPointSetType::Pointer FixedPointSetPointer;
74  typedef TMovingPointSet MovingPointSetType;
75  typedef typename MovingPointSetType::Pointer MovingPointSetPointer;
76 
81  typedef typename Superclass::PointType PointType;
83 
84  typedef typename Superclass::PixelType LabelType;
85  typedef std::vector<LabelType> LabelSetType;
86 
89 
94  virtual void Initialize( void ) throw ( ExceptionObject );
95 
100  virtual MeasureType GetLocalNeighborhoodValue( const PointType &, const LabelType & ) const;
101 
106  virtual void GetLocalNeighborhoodValueAndDerivative( const PointType &,
107  MeasureType &, LocalDerivativeType &, const LabelType & ) const;
108 
113  itkSetObjectMacro( PointSetMetric, PointSetMetricType );
114  itkGetModifiableObjectMacro(PointSetMetric, PointSetMetricType );
116 
120  itkConceptMacro( LabelTypeIsInteger, ( Concept::IsInteger<LabelType> ) );
121 
122 protected:
124  virtual ~LabeledPointSetToPointSetMetricv4();
125 
127  void PrintSelf( std::ostream & os, Indent indent ) const;
128 
129 private:
130  LabeledPointSetToPointSetMetricv4(const Self &); //purposely not implemented
131  void operator=(const Self &); //purposely not implemented
132 
138 
143  FixedPointSetPointer GetLabeledFixedPointSet( const LabelType ) const;
144 
149  MovingPointSetPointer GetLabeledMovingPointSet( const LabelType ) const;
150 
153 
157 
158 };
159 } // end namespace itk
160 
161 #ifndef ITK_MANUAL_INSTANTIATION
162 #include "itkLabeledPointSetToPointSetMetricv4.hxx"
163 #endif
164 
165 #endif
Light weight base class for most itk classes.
PointsContainer::ElementIdentifier PointIdentifier
std::vector< PointSetMetricPointer > m_PointSetMetricClones
void PrintSelf(std::ostream &os, Indent indent) const
Computes similarity between two point sets.
virtual MeasureType GetLocalNeighborhoodValue(const PointType &, const LabelType &) const
FixedArray< DerivativeValueType, itkGetStaticConstMacro(PointDimension)> LocalDerivativeType
virtual void GetLocalNeighborhoodValueAndDerivative(const PointType &, MeasureType &, LocalDerivativeType &, const LabelType &) const
FixedPointSetPointer GetLabeledFixedPointSet(const LabelType) const
Standard exception handling object.
Computes the distance metric and gradient between two labeled point sets.
PointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType > Superclass
Control indentation during Print() invocation.
Definition: itkIndent.h:49
#define itkConceptMacro(name, concept)
MovingPointSetPointer GetLabeledMovingPointSet(const LabelType) const