ITK 6.0.0
Insight Toolkit
 
Loading...
Searching...
No Matches
itkShapePriorMAPCostFunction.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
24namespace itk
25{
46template <typename TFeatureImage, typename TOutputPixel>
47class ITK_TEMPLATE_EXPORT ShapePriorMAPCostFunction : public ShapePriorMAPCostFunctionBase<TFeatureImage, TOutputPixel>
48{
49public:
50 ITK_DISALLOW_COPY_AND_MOVE(ShapePriorMAPCostFunction);
51
57
59 itkNewMacro(Self);
60
62 itkOverrideGetNameOfClassMacro(ShapePriorMAPCostFunction);
63
66 using typename Superclass::ParametersType;
67
69 using typename Superclass::FeatureImageType;
71
73 using typename Superclass::MeasureType;
74
76 static constexpr unsigned int ImageDimension = TFeatureImage::ImageDimension;
77
79 using typename Superclass::PixelType;
80
82 using typename Superclass::NodeType;
83
85 using typename Superclass::NodeContainerType;
86
88 using typename Superclass::ShapeFunctionType;
89
94
96 itkSetMacro(ShapeParameterMeans, ArrayType);
97 itkGetConstMacro(ShapeParameterMeans, ArrayType);
99
101 itkSetMacro(ShapeParameterStandardDeviations, ArrayType);
102 itkGetConstMacro(ShapeParameterStandardDeviations, ArrayType);
104
110 itkSetMacro(Weights, WeightsType);
111 itkGetConstReferenceMacro(Weights, WeightsType);
113
120 ComputeLogInsideTerm(const ParametersType & parameters) const override;
121
128 ComputeLogGradientTerm(const ParametersType & parameters) const override;
129
135 ComputeLogShapePriorTerm(const ParametersType & parameters) const override;
136
141 ComputeLogPosePriorTerm(const ParametersType & parameters) const override;
142
145 void
146 Initialize() override;
147
148protected:
150 ~ShapePriorMAPCostFunction() override = default;
151
152 void
153 PrintSelf(std::ostream & os, Indent indent) const override;
154
155private:
159
161};
162} // end namespace itk
163
164#ifndef ITK_MANUAL_INSTANTIATION
165# include "itkShapePriorMAPCostFunction.hxx"
166#endif
167
168#endif
Array class with size defined at construction time.
Definition itkArray.h:48
Simulate a standard C array with copy semantics.
Control indentation during Print() invocation.
Definition itkIndent.h:50
LevelSetNode< PixelType, Self::ImageDimension > NodeType
ShapeSignedDistanceFunction< double, Self::ImageDimension > ShapeFunctionType
VectorContainer< unsigned int, NodeType > NodeContainerType
typename FeatureImageType::ConstPointer FeatureImagePointer
MeasureType ComputeLogGradientTerm(const ParametersType &parameters) const override
ShapePriorMAPCostFunctionBase< TFeatureImage, TOutputPixel > Superclass
static constexpr unsigned int ImageDimension
~ShapePriorMAPCostFunction() override=default
MeasureType ComputeLogPosePriorTerm(const ParametersType &parameters) const override
MeasureType ComputeLogShapePriorTerm(const ParametersType &parameters) const override
void PrintSelf(std::ostream &os, Indent indent) const override
GaussianKernelFunction< double >::Pointer m_GaussianFunction
MeasureType ComputeLogInsideTerm(const ParametersType &parameters) const override
Implements transparent reference counting.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....