ITK  4.2.0
Insight Segmentation and Registration Toolkit
itkExpectationBasedPointSetToPointSetMetricv4.h
Go to the documentation of this file.
00001 /*=========================================================================
00002  *
00003  *  Copyright Insight Software Consortium
00004  *
00005  *  Licensed under the Apache License, Version 2.0 (the "License");
00006  *  you may not use this file except in compliance with the License.
00007  *  You may obtain a copy of the License at
00008  *
00009  *         http://www.apache.org/licenses/LICENSE-2.0.txt
00010  *
00011  *  Unless required by applicable law or agreed to in writing, software
00012  *  distributed under the License is distributed on an "AS IS" BASIS,
00013  *  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
00014  *  See the License for the specific language governing permissions and
00015  *  limitations under the License.
00016  *
00017  *=========================================================================*/
00018 #ifndef __itkExpectationBasedPointSetToPointSetMetricv4_h
00019 #define __itkExpectationBasedPointSetToPointSetMetricv4_h
00020 
00021 #include "itkPointSetToPointSetMetricv4.h"
00022 #include "itkPointSet.h"
00023 #include "itkImage.h"
00024 
00025 namespace itk
00026 {
00043 template<class TFixedPointSet, class TMovingPointSet = TFixedPointSet>
00044 class ITK_EXPORT ExpectationBasedPointSetToPointSetMetricv4:
00045   public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet>
00046 {
00047 public:
00048 
00050   typedef ExpectationBasedPointSetToPointSetMetricv4                   Self;
00051   typedef PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet>  Superclass;
00052   typedef SmartPointer<Self>                                           Pointer;
00053   typedef SmartPointer<const Self>                                     ConstPointer;
00054 
00056   itkNewMacro( Self );
00057 
00059   itkTypeMacro( ExpectationBasedPointSetToPointSetMetricv4, PointSetToPointSetMetricv4 );
00060 
00062   typedef typename Superclass::MeasureType              MeasureType;
00063   typedef typename Superclass::DerivativeType           DerivativeType;
00064   typedef typename Superclass::LocalDerivativeType      LocalDerivativeType;
00065   typedef typename Superclass::PointType                PointType;
00066   typedef typename Superclass::CoordRepType             CoordRepType;
00067   typedef typename Superclass::PointIdentifier          PointIdentifier;
00068   typedef typename Superclass::NeighborsIdentifierType  NeighborsIdentifierType;
00069 
00073   virtual MeasureType GetLocalNeighborhoodValue( const PointType & ) const;
00074 
00078   virtual void GetLocalNeighborhoodValueAndDerivative( const PointType &,
00079     MeasureType &, LocalDerivativeType & ) const;
00080 
00086   itkSetMacro( PointSetSigma, CoordRepType );
00087 
00089   itkGetConstMacro( PointSetSigma, CoordRepType );
00090 
00095   itkSetMacro( EvaluationKNeighborhood, unsigned int );
00096 
00101   itkGetConstMacro( EvaluationKNeighborhood, unsigned int );
00102 
00103 protected:
00104   ExpectationBasedPointSetToPointSetMetricv4();
00105   virtual ~ExpectationBasedPointSetToPointSetMetricv4();
00106 
00108   void PrintSelf( std::ostream & os, Indent indent ) const;
00109 
00110 private:
00111   ExpectationBasedPointSetToPointSetMetricv4( const Self & ); //purposely not implemented
00112   void operator=( const Self & );               //purposely not implemented
00113 
00114   typedef typename PointType::VectorType                    VectorType;
00115   typedef typename NeighborsIdentifierType::const_iterator  NeighborsIterator;
00116 
00117   CoordRepType                               m_PointSetSigma;
00118   unsigned int                               m_EvaluationKNeighborhood;
00119 
00120 };
00121 } // end namespace itk
00122 
00123 #ifndef ITK_MANUAL_INSTANTIATION
00124 #include "itkExpectationBasedPointSetToPointSetMetricv4.hxx"
00125 #endif
00126 
00127 #endif
00128