ITK  4.8.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 >
55  public ImageToImageMetric< TFixedImage, TMovingImage >
56 {
57 public:
58 
64 
66  itkNewMacro(Self);
67 
70 
72  typedef typename Superclass::RealType RealType;
81 
89 
91  void ComputeGradient() ITK_OVERRIDE;
92 
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() {}
127  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
128 
129 private:
130  KappaStatisticImageToImageMetric(const Self &); //purposely not implemented
131  void operator=(const Self &); //purposely not implemented
132 
135 };
136 } // end namespace itk
137 
138 #ifndef ITK_MANUAL_INSTANTIATION
139 #include "itkKappaStatisticImageToImageMetric.hxx"
140 #endif
141 
142 #endif
Array class with size defined at construction time.
Definition: itkArray.h:50
TransformType::OutputPointType OutputPointType
Light weight base class for most itk classes.
void PrintSelf(std::ostream &os, Indent indent) const override
TransformType::InputPointType InputPointType
TransformType::Pointer TransformPointer
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const override
NumericTraits< MovingImagePixelType >::RealType RealType
Superclass::DerivativeType DerivativeType
MovingImageType::ConstPointer MovingImageConstPointer
Computes similarity between two binary objects to be registered.
Superclass::MovingImageConstPointer MovingImageConstPointer
Class to hold and manage different parameter types used during optimization.
void GetDerivative(const TransformParametersType &, DerivativeType &derivative) const override
Image< GradientPixelType, itkGetStaticConstMacro(MovingImageDimension) > GradientImageType
TransformType::JacobianType TransformJacobianType
Superclass::TransformJacobianType TransformJacobianType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
FixedImageType::ConstPointer FixedImageConstPointer
Superclass::TransformParametersType TransformParametersType
Superclass::FixedImageConstPointer FixedImageConstPointer
Superclass::MeasureType MeasureType
CovariantVector< RealType, itkGetStaticConstMacro(MovingImageDimension) > GradientPixelType
Transform< CoordinateRepresentationType, itkGetStaticConstMacro(MovingImageDimension), itkGetStaticConstMacro(FixedImageDimension) > TransformType
Computes similarity between regions of two images.
ImageToImageMetric< TFixedImage, TMovingImage > Superclass
TransformType::ParametersType TransformParametersType
FixedImageType::RegionType FixedImageRegionType
MeasureType GetValue(const TransformParametersType &parameters) const override