go home Home | Main Page | Topics | Namespace List | Class Hierarchy | Alphabetical List | Data Structures | File List | Namespace Members | Data Fields | Globals | Related Pages
Loading...
Searching...
No Matches
elxStatisticalShapePenalty.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright UMC Utrecht and contributors
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 elxStatisticalShapePenalty_h
19#define elxStatisticalShapePenalty_h
20
21#include "elxIncludes.h" // include first to avoid MSVS warning
23
24#include <vnl/vnl_matrix.h>
25#include <vnl/vnl_vector.h>
26
27namespace elastix
28{
29using namespace itk;
30
56
57template <typename TElastix>
58class ITK_TEMPLATE_EXPORT StatisticalShapePenalty
59 : public StatisticalShapePointPenalty<typename MetricBase<TElastix>::FixedPointSetType,
60 typename MetricBase<TElastix>::MovingPointSetType>
61 , public MetricBase<TElastix>
62{
63public:
65
71 using Pointer = SmartPointer<Self>;
72 using ConstPointer = SmartPointer<const Self>;
73
75 itkNewMacro(Self);
76
79
84 elxClassNameMacro("StatisticalShapePenalty");
85
88 using typename Superclass1::FixedPointSetType;
92
93 // using typename Superclass1::FixedImageRegionType;
94 using typename Superclass1::TransformType;
95 using typename Superclass1::TransformPointer;
96 using typename Superclass1::InputPointType;
97 using typename Superclass1::OutputPointType;
99 // using typename Superclass1::RealType;
100 using typename Superclass1::FixedImageMaskType;
104 using typename Superclass1::MeasureType;
105 using typename Superclass1::DerivativeType;
106 using typename Superclass1::ParametersType;
107
108 using CoordinateType = typename OutputPointType::CoordinateType;
109 using VnlVectorType = vnl_vector<CoordinateType>;
110
112 /*typedef itk::AdvancedTransform<
113 CoordinateType,
114 itkGetStaticConstMacro( FixedImageDimension ),
115 itkGetStaticConstMacro( MovingImageDimension ) > ITKBaseType;
116 */
119
121 using typename Superclass2::ElastixType;
122 using typename Superclass2::RegistrationType;
124 using typename Superclass2::FixedImageType;
125 using typename Superclass2::MovingImageType;
126
128 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
129
131 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
132
138
142 void
143 Initialize() override;
144
149 void
151
152 void
154
155 unsigned int
156 ReadShape(const std::string & ShapeFileName, typename PointSetType::Pointer & pointSet);
157
159 void
161 {}
162
163protected:
167 ~StatisticalShapePenalty() override = default;
168
169private:
171};
172
173} // end namespace elastix
174
175#ifndef ITK_MANUAL_INSTANTIATION
176# include "elxStatisticalShapePenalty.hxx"
177#endif
178
179#endif // end #ifndef elxStatisticalShapePenalty_h
itk::PointSet< CoordinateRepresentationType, MovingImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, MovingImageDimension, MovingImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > MovingPointSetType
itk::PointSet< CoordinateRepresentationType, FixedImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, FixedImageDimension, FixedImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > FixedPointSetType
itk::SingleValuedCostFunction ITKBaseType
typename ElastixType::FixedImageType FixedImageType
typename ElastixType::MovingImageType MovingImageType
typename ElastixType::RegistrationBaseType RegistrationType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
StatisticalShapePointPenalty< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
vnl_vector< CoordinateType > VnlVectorType
elxClassNameMacro("StatisticalShapePenalty")
typename ElastixType::FixedImageType FixedImageType
itk::AdvancedCombinationTransform< CoordinateType, Self::FixedImageDimension > CombinationTransformType
typename Superclass2::ITKBaseType ITKBaseType
~StatisticalShapePenalty() override=default
typename OutputPointType::CoordinateType CoordinateType
itkOverrideGetNameOfClassMacro(StatisticalShapePenalty)
typename CombinationTransformType::InitialTransformType InitialTransformType
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
void BeforeEachResolution() override
ITK_DISALLOW_COPY_AND_MOVE(StatisticalShapePenalty)
unsigned int ReadShape(const std::string &ShapeFileName, typename PointSetType::Pointer &pointSet)
This class combines two transforms: an 'initial transform' with a 'current transform'.
ImageMaskSpatialObject< Self::MovingPointSetDimension > MovingImageMaskType
ImageMaskSpatialObject< Self::FixedPointSetDimension > FixedImageMaskType
typename TransformType::InputPointType InputPointType
typename MovingPointSetType::ConstPointer MovingPointSetConstPointer
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
AdvancedTransform< CoordinateRepresentationType, Self::FixedPointSetDimension, Self::MovingPointSetDimension > TransformType
typename TransformType::JacobianType TransformJacobianType
typename TransformType::OutputPointType OutputPointType


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo