ITK  4.9.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 ) ITK_OVERRIDE;
95 
100  virtual MeasureType GetLocalNeighborhoodValue( const PointType &, const LabelType & ) const ITK_OVERRIDE;
101 
106  virtual void GetLocalNeighborhoodValueAndDerivative( const PointType &,
107  MeasureType &, LocalDerivativeType &, const LabelType & ) const ITK_OVERRIDE;
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 ITK_OVERRIDE;
128 
129 private:
130  LabeledPointSetToPointSetMetricv4(const Self &) ITK_DELETE_FUNCTION;
131  void operator=(const Self &) ITK_DELETE_FUNCTION;
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
virtual void GetLocalNeighborhoodValueAndDerivative(const PointType &, MeasureType &, LocalDerivativeType &, const LabelType &) const override
Light weight base class for most itk classes.
PointsContainer::ElementIdentifier PointIdentifier
virtual MeasureType GetLocalNeighborhoodValue(const PointType &, const LabelType &) const override
std::vector< PointSetMetricPointer > m_PointSetMetricClones
Computes similarity between two point sets.
void PrintSelf(std::ostream &os, Indent indent) const override
FixedArray< DerivativeValueType, itkGetStaticConstMacro(PointDimension)> LocalDerivativeType
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)
virtual void Initialize(void) override
MovingPointSetPointer GetLabeledMovingPointSet(const LabelType) const