ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkKappaStatisticImageToImageMetric.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 itkKappaStatisticImageToImageMetric_h
19 #define itkKappaStatisticImageToImageMetric_h
20 
21 #include "itkImageToImageMetric.h"
22 
23 namespace itk
24 {
53 template< typename TFixedImage, typename TMovingImage >
54 class ITK_TEMPLATE_EXPORT KappaStatisticImageToImageMetric:
55  public ImageToImageMetric< TFixedImage, TMovingImage >
56 {
57 public:
58 
64 
66  itkNewMacro(Self);
67 
70 
72  typedef typename Superclass::RealType RealType;
73  typedef typename Superclass::TransformType TransformType;
74  typedef typename Superclass::TransformPointer TransformPointer;
75  typedef typename Superclass::TransformParametersType TransformParametersType;
76  typedef typename Superclass::TransformJacobianType TransformJacobianType;
77  typedef typename Superclass::GradientImageType GradientImageType;
78  typedef typename Superclass::GradientPixelType GradientPixelType;
79  typedef typename Superclass::InputPointType InputPointType;
80  typedef typename Superclass::OutputPointType OutputPointType;
81 
82  typedef typename Superclass::MeasureType MeasureType;
83  typedef typename Superclass::DerivativeType DerivativeType;
84  typedef typename Superclass::FixedImageType FixedImageType;
85  typedef typename Superclass::MovingImageType MovingImageType;
86  typedef typename Superclass::FixedImageConstPointer FixedImageConstPointer;
87  typedef typename Superclass::MovingImageConstPointer MovingImageConstPointer;
88  typedef typename Superclass::FixedImageRegionType FixedImageRegionType;
89 
91  void ComputeGradient() ITK_OVERRIDE;
92 
94  void GetDerivative(const TransformParametersType &,
95  DerivativeType & derivative) const ITK_OVERRIDE;
96 
102  MeasureType GetValue(const TransformParametersType & parameters) const ITK_OVERRIDE;
103 
106  void GetValueAndDerivative(const TransformParametersType & parameters,
107  MeasureType & Value, DerivativeType & Derivative) const ITK_OVERRIDE;
108 
111  itkSetMacro(ForegroundValue, RealType);
112  itkGetConstMacro(ForegroundValue, RealType);
114 
119  itkSetMacro(Complement, bool);
120  itkBooleanMacro(Complement);
121  itkGetConstMacro(Complement, bool);
123 
124 protected:
126  virtual ~KappaStatisticImageToImageMetric() ITK_OVERRIDE {}
127  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
128 
129 private:
130  ITK_DISALLOW_COPY_AND_ASSIGN(KappaStatisticImageToImageMetric);
131 
134 };
135 } // end namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkKappaStatisticImageToImageMetric.hxx"
139 #endif
140 
141 #endif
Array class with size defined at construction time.
Definition: itkArray.h:50
Light weight base class for most itk classes.
NumericTraits< MovingImagePixelType >::RealType RealType
Computes similarity between two binary objects to be registered.
Superclass::MovingImageConstPointer MovingImageConstPointer
Superclass::TransformJacobianType TransformJacobianType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Superclass::TransformParametersType TransformParametersType
Superclass::FixedImageConstPointer FixedImageConstPointer
Computes similarity between regions of two images.
ImageToImageMetric< TFixedImage, TMovingImage > Superclass
TransformType::ParametersType TransformParametersType