ITK  4.1.0
Insight Segmentation and Registration Toolkit
itkEuclideanDistancePointSetToPointSetMetricv4.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 __itkEuclideanDistancePointSetToPointSetMetricv4_h
00019 #define __itkEuclideanDistancePointSetToPointSetMetricv4_h
00020 
00021 #include "itkPointSetToPointSetMetricv4.h"
00022 
00023 namespace itk
00024 {
00041 template<class TFixedPointSet, class TMovingPointSet = TFixedPointSet>
00042 class ITK_EXPORT EuclideanDistancePointSetToPointSetMetricv4:
00043   public PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet>
00044 {
00045 public:
00046 
00048   typedef EuclideanDistancePointSetToPointSetMetricv4                  Self;
00049   typedef PointSetToPointSetMetricv4<TFixedPointSet, TMovingPointSet>  Superclass;
00050   typedef SmartPointer<Self>                                           Pointer;
00051   typedef SmartPointer<const Self>                                     ConstPointer;
00052 
00054   itkNewMacro( Self );
00055 
00057   itkTypeMacro( EuclideanDistancePointSetToPointSetMetricv4, PointSetToPointSetMetricv4 );
00058 
00060   typedef typename Superclass::MeasureType          MeasureType;
00061   typedef typename Superclass::DerivativeType       DerivativeType;
00062   typedef typename Superclass::LocalDerivativeType  LocalDerivativeType;
00063   typedef typename Superclass::PointType            PointType;
00064   typedef typename Superclass::PointIdentifier      PointIdentifier;
00065 
00069   virtual MeasureType GetLocalNeighborhoodValue( const PointType & ) const;
00070 
00074   virtual LocalDerivativeType GetLocalNeighborhoodDerivative( const PointType & ) const;
00075 
00079   virtual void GetLocalNeighborhoodValueAndDerivative( const PointType &,
00080     MeasureType &, LocalDerivativeType & ) const;
00081 
00082 protected:
00083   EuclideanDistancePointSetToPointSetMetricv4();
00084   virtual ~EuclideanDistancePointSetToPointSetMetricv4();
00085 
00087   void PrintSelf( std::ostream & os, Indent indent ) const;
00088 
00089 
00090 private:
00091   EuclideanDistancePointSetToPointSetMetricv4(const Self &); //purposely not implemented
00092   void operator=(const Self &);               //purposely not implemented
00093 };
00094 } // end namespace itk
00095 
00096 #ifndef ITK_MANUAL_INSTANTIATION
00097 #include "itkEuclideanDistancePointSetToPointSetMetricv4.hxx"
00098 #endif
00099 
00100 #endif
00101