ITK  4.13.0
Insight Segmentation and Registration Toolkit
itkShapePriorMAPCostFunction.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 itkShapePriorMAPCostFunction_h
19 #define itkShapePriorMAPCostFunction_h
20 
23 
24 namespace itk
25 {
49 template< typename TFeatureImage, typename TOutputPixel >
50 class ITK_TEMPLATE_EXPORT ShapePriorMAPCostFunction:
51  public ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >
52 {
53 public:
59 
61  itkNewMacro(Self);
62 
65 
68  typedef typename Superclass::ParametersType ParametersType;
69 
71  typedef typename Superclass::FeatureImageType FeatureImageType;
72  typedef typename Superclass::FeatureImagePointer FeatureImagePointer;
73 
75  typedef typename Superclass::MeasureType MeasureType;
76 
78  itkStaticConstMacro(ImageDimension, unsigned int, TFeatureImage::ImageDimension);
79 
81  typedef typename Superclass::PixelType PixelType;
82 
84  typedef typename Superclass::NodeType NodeType;
85 
87  typedef typename Superclass::NodeContainerType NodeContainerType;
88 
90  typedef typename Superclass::ShapeFunctionType ShapeFunctionType;
91 
96 
98  itkSetMacro(ShapeParameterMeans, ArrayType);
99  itkGetConstMacro(ShapeParameterMeans, ArrayType);
101 
103  itkSetMacro(ShapeParameterStandardDeviations, ArrayType);
104  itkGetConstMacro(ShapeParameterStandardDeviations, ArrayType);
106 
112  itkSetMacro(Weights, WeightsType);
113  itkGetConstReferenceMacro(Weights, WeightsType);
115 
121  virtual MeasureType ComputeLogInsideTerm(const ParametersType & parameters) const ITK_OVERRIDE;
122 
128  virtual MeasureType ComputeLogGradientTerm(const ParametersType & parameters) const ITK_OVERRIDE;
129 
134  virtual MeasureType ComputeLogShapePriorTerm(const ParametersType & parameters) const ITK_OVERRIDE;
135 
139  virtual MeasureType ComputeLogPosePriorTerm(const ParametersType & parameters) const ITK_OVERRIDE;
140 
143  virtual void Initialize() ITK_OVERRIDE;
144 
145 protected:
147  virtual ~ShapePriorMAPCostFunction() ITK_OVERRIDE {}
148 
149  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
150 
151 private:
152  ITK_DISALLOW_COPY_AND_ASSIGN(ShapePriorMAPCostFunction);
153 
157 
159 };
160 } // end namespace itk
161 
162 #ifndef ITK_MANUAL_INSTANTIATION
163 #include "itkShapePriorMAPCostFunction.hxx"
164 #endif
165 
166 #endif
Superclass::NodeContainerType NodeContainerType
Light weight base class for most itk classes.
ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel > Superclass
Superclass::FeatureImageType FeatureImageType
GaussianKernelFunction< double >::Pointer m_GaussianFunction
Represents the maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetImageFilter to e...
Superclass::FeatureImagePointer FeatureImagePointer
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
Superclass::ShapeFunctionType ShapeFunctionType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
Gaussian kernel used for density estimation and nonparameteric regression.
Superclass::ParametersType ParametersType