ITK  4.1.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 
00081 protected:
00082   ExpectationBasedPointSetToPointSetMetricv4();
00083   virtual ~ExpectationBasedPointSetToPointSetMetricv4();
00084 
00086   void PrintSelf( std::ostream & os, Indent indent ) const;
00087 
00088 private:
00089   ExpectationBasedPointSetToPointSetMetricv4( const Self & ); //purposely not implemented
00090   void operator=( const Self & );               //purposely not implemented
00091 
00092   typedef typename PointType::VectorType                    VectorType;
00093   typedef typename NeighborsIdentifierType::const_iterator  NeighborsIterator;
00094 
00095   CoordRepType                               m_Sigma;
00096   unsigned int                               m_EvaluationKNeighborhood;
00097 
00098 };
00099 } // end namespace itk
00100 
00101 #ifndef ITK_MANUAL_INSTANTIATION
00102 #include "itkExpectationBasedPointSetToPointSetMetricv4.hxx"
00103 #endif
00104 
00105 #endif
00106