ITK  4.8.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 >
51  public ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel >
52 {
53 public:
59 
61  itkNewMacro(Self);
62 
65 
69 
73 
76 
78  itkStaticConstMacro(ImageDimension, unsigned int, TFeatureImage::ImageDimension);
79 
81  typedef typename Superclass::PixelType PixelType;
82 
84  typedef typename Superclass::NodeType NodeType;
85 
88 
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() throw ( ExceptionObject ) ITK_OVERRIDE;
144 
145 protected:
147  virtual ~ShapePriorMAPCostFunction() {}
148 
149  void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
150 
151 private:
152  ShapePriorMAPCostFunction(const Self &); //purposely not implemented
153  void operator=(const Self &); //purposely not implemented
154 
158 
160 };
161 } // end namespace itk
162 
163 #ifndef ITK_MANUAL_INSTANTIATION
164 #include "itkShapePriorMAPCostFunction.hxx"
165 #endif
166 
167 #endif
virtual MeasureType ComputeLogShapePriorTerm(const ParametersType &parameters) const override
Superclass::NodeContainerType NodeContainerType
Light weight base class for most itk classes.
VectorContainer< unsigned int, NodeType > NodeContainerType
virtual MeasureType ComputeLogInsideTerm(const ParametersType &parameters) const override
virtual void Initialize() override
virtual MeasureType ComputeLogGradientTerm(const ParametersType &parameters) const override
ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel > Superclass
Superclass::FeatureImageType FeatureImageType
GaussianKernelFunction< double >::Pointer m_GaussianFunction
Represents the maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetImageFilter to e...
Standard exception handling object.
virtual MeasureType ComputeLogPosePriorTerm(const ParametersType &parameters) const override
Superclass::FeatureImagePointer FeatureImagePointer
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
FeatureImageType::ConstPointer FeatureImagePointer
void operator=(const Self &)
Superclass::ShapeFunctionType ShapeFunctionType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
void PrintSelf(std::ostream &os, Indent indent) const override
LevelSetNode< PixelType, itkGetStaticConstMacro(ImageDimension) > NodeType
Gaussian kernel used for density estimation and nonparameteric regression.
Superclass::ParametersType ParametersType
ShapeSignedDistanceFunction< double, itkGetStaticConstMacro(ImageDimension) > ShapeFunctionType