ITK  4.6.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;
122 
128  virtual MeasureType ComputeLogGradientTerm(const ParametersType & parameters) const;
129 
134  virtual MeasureType ComputeLogShapePriorTerm(const ParametersType & parameters) const;
135 
139  virtual MeasureType ComputeLogPosePriorTerm(const ParametersType & parameters) const;
140 
143  virtual void Initialize(void)
144  throw ( ExceptionObject );
145 
146 protected:
148  virtual ~ShapePriorMAPCostFunction() {}
149 
150  void PrintSelf(std::ostream & os, Indent indent) const;
151 
152 private:
153  ShapePriorMAPCostFunction(const Self &); //purposely not implemented
154  void operator=(const Self &); //purposely not implemented
155 
159 
161 };
162 } // end namespace itk
163 
164 #ifndef ITK_MANUAL_INSTANTIATION
165 #include "itkShapePriorMAPCostFunction.hxx"
166 #endif
167 
168 #endif
Superclass::NodeContainerType NodeContainerType
Light weight base class for most itk classes.
VectorContainer< unsigned int, NodeType > NodeContainerType
virtual MeasureType ComputeLogPosePriorTerm(const ParametersType &parameters) const
virtual MeasureType ComputeLogInsideTerm(const ParametersType &parameters) const
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.
Superclass::FeatureImagePointer FeatureImagePointer
Represents the base class of maximum aprior (MAP) cost function used ShapePriorSegmentationLevelSetIm...
void PrintSelf(std::ostream &os, Indent indent) const
virtual MeasureType ComputeLogGradientTerm(const ParametersType &parameters) const
FeatureImageType::ConstPointer FeatureImagePointer
void operator=(const Self &)
Superclass::ShapeFunctionType ShapeFunctionType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual MeasureType ComputeLogShapePriorTerm(const ParametersType &parameters) const
virtual void Initialize(void)
LevelSetNode< PixelType, itkGetStaticConstMacro(ImageDimension) > NodeType
Gaussian kernel used for density estimation and nonparameteric regression.
Superclass::ParametersType ParametersType
ShapeSignedDistanceFunction< double, itkGetStaticConstMacro(ImageDimension) > ShapeFunctionType