ITK  4.6.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();
92 
95  DerivativeType & derivative) const;
96 
102  MeasureType GetValue(const TransformParametersType & parameters) const;
103 
106  void GetValueAndDerivative(const TransformParametersType & parameters,
107  MeasureType & Value, DerivativeType & Derivative) const;
108 
111  itkSetMacro(ForegroundValue, RealType);
112  itkGetConstMacro(ForegroundValue, RealType);
114 
119  itkSetMacro(Complement, bool);
120  itkBooleanMacro(Complement);
121  itkGetConstMacro(Complement, bool);
123 
124 protected:
127  void PrintSelf(std::ostream & os, Indent indent) const;
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 GetDerivative(const TransformParametersType &, DerivativeType &derivative) const
TransformType::InputPointType InputPointType
TransformType::Pointer TransformPointer
NumericTraits< MovingImagePixelType >::RealType RealType
Superclass::DerivativeType DerivativeType
MovingImageType::ConstPointer MovingImageConstPointer
Computes similarity between two binary objects to be registered.
Superclass::MovingImageConstPointer MovingImageConstPointer
void PrintSelf(std::ostream &os, Indent indent) const
void GetValueAndDerivative(const TransformParametersType &parameters, MeasureType &Value, DerivativeType &Derivative) const
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.
MeasureType GetValue(const TransformParametersType &parameters) const
ImageToImageMetric< TFixedImage, TMovingImage > Superclass
TransformType::ParametersType TransformParametersType
FixedImageType::RegionType FixedImageRegionType