ITK  4.6.0
Insight Segmentation and Registration Toolkit
itkExpectationBasedPointSetToPointSetMetricv4.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 __itkExpectationBasedPointSetToPointSetMetricv4_h
19 #define __itkExpectationBasedPointSetToPointSetMetricv4_h
20 
22 #include "itkPointSet.h"
23 #include "itkImage.h"
24 
25 namespace itk
26 {
43 template<typename TFixedPointSet, typename TMovingPointSet = TFixedPointSet,
44  class TInternalComputationValueType = double>
46  public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet, TInternalComputationValueType>
47 {
48 public:
49 
52  typedef PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet,
53  TInternalComputationValueType> Superclass;
56 
58  itkSimpleNewMacro( Self );
59 
62 
64  typedef typename Superclass::MeasureType MeasureType;
67  typedef typename Superclass::PointType PointType;
68  typedef typename Superclass::PixelType PixelType;
72 
76  virtual MeasureType GetLocalNeighborhoodValue( const PointType &, const PixelType & pixel = 0 ) const;
77 
82  MeasureType &, LocalDerivativeType &, const PixelType & pixel = 0 ) const;
83 
89  itkSetMacro( PointSetSigma, CoordRepType );
90 
92  itkGetConstMacro( PointSetSigma, CoordRepType );
93 
98  itkSetMacro( EvaluationKNeighborhood, unsigned int );
99 
104  itkGetConstMacro( EvaluationKNeighborhood, unsigned int );
105 
106  void Initialize( void ) throw ( ExceptionObject );
107 
110  virtual typename LightObject::Pointer InternalClone() const;
111 
112 protected:
114  virtual ~ExpectationBasedPointSetToPointSetMetricv4();
115 
117  void PrintSelf( std::ostream & os, Indent indent ) const;
118 
119 private:
120  ExpectationBasedPointSetToPointSetMetricv4( const Self & ); //purposely not implemented
121  void operator=( const Self & ); //purposely not implemented
122 
123  typedef typename PointType::VectorType VectorType;
124  typedef typename NeighborsIdentifierType::const_iterator NeighborsIterator;
125 
130 
131 };
132 } // end namespace itk
133 
134 #ifndef ITK_MANUAL_INSTANTIATION
135 #include "itkExpectationBasedPointSetToPointSetMetricv4.hxx"
136 #endif
137 
138 #endif
virtual void GetLocalNeighborhoodValueAndDerivative(const PointType &, MeasureType &, LocalDerivativeType &, const PixelType &pixel=0) const
Light weight base class for most itk classes.
PointsContainer::ElementIdentifier PointIdentifier
PointsLocatorType::NeighborsIdentifierType NeighborsIdentifierType
virtual MeasureType GetLocalNeighborhoodValue(const PointType &, const PixelType &pixel=0) const
Computes similarity between two point sets.
void PrintSelf(std::ostream &os, Indent indent) const
FixedArray< DerivativeValueType, itkGetStaticConstMacro(PointDimension)> LocalDerivativeType
Computes an expectation-based metric between two point sets.
Standard exception handling object.
PointSetToPointSetMetricv4< TFixedPointSet, TMovingPointSet, TInternalComputationValueType > Superclass
virtual LightObject::Pointer InternalClone() const
Control indentation during Print() invocation.
Definition: itkIndent.h:49