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
elxMissingStructurePenalty.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 elxMissingStructurePenalty_h
19#define elxMissingStructurePenalty_h
20
21#include "elxIncludes.h"
23
24namespace elastix
25{
26
49
50template <typename TElastix>
51class ITK_TEMPLATE_EXPORT MissingStructurePenalty
52 : public itk::MissingVolumeMeshPenalty<typename MetricBase<TElastix>::FixedPointSetType,
53 typename MetricBase<TElastix>::MovingPointSetType>
54 , public MetricBase<TElastix>
55{
56public:
58
64 using Pointer = itk::SmartPointer<Self>;
65 using ConstPointer = itk::SmartPointer<const Self>;
66
68 itkNewMacro(Self);
69
72
77 elxClassNameMacro("MissingStructurePenalty");
78
80 using typename Superclass1::FixedMeshType;
81 using typename Superclass1::FixedMeshPointer;
82 using typename Superclass1::FixedMeshConstPointer;
83
84 using typename Superclass1::CoordinateRepresentationType;
85 using typename Superclass1::FixedPointSetType;
86 using typename Superclass1::FixedPointSetConstPointer;
87 using typename Superclass1::FixedMeshContainerType;
88 using typename Superclass1::FixedMeshContainerPointer;
89 using typename Superclass1::MappedMeshContainerType;
90 using typename Superclass1::MappedMeshContainerPointer;
91 using typename Superclass1::MovingPointSetType;
92 using typename Superclass1::MovingPointSetConstPointer;
93 using typename Superclass1::CellInterfaceType;
94
95 // using typename Superclass1::FixedImageRegionType;
96 using typename Superclass1::TransformType;
97 using typename Superclass1::TransformPointer;
98 using typename Superclass1::InputPointType;
99 using typename Superclass1::OutputPointType;
100 using typename Superclass1::TransformJacobianType;
101 // using typename Superclass1::RealType;
102 using typename Superclass1::FixedImageMaskType;
103 using typename Superclass1::FixedImageMaskPointer;
104 using typename Superclass1::MovingImageMaskType;
105 using typename Superclass1::MovingImageMaskPointer;
106 using typename Superclass1::MeasureType;
107 using typename Superclass1::DerivativeType;
108 using typename Superclass1::ParametersType;
109
110 using CoordinateType = typename OutputPointType::CoordinateType;
111
112 using typename Superclass1::MeshIdType;
115
117 using typename Superclass2::ElastixType;
118 using typename Superclass2::RegistrationType;
120 using typename Superclass2::FixedImageType;
121 using typename Superclass2::MovingImageType;
122
124 itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
125 itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
126
133
137 void
138 Initialize() override;
139
144 int
145 BeforeAllBase() override;
146
147 void
149
150 void
152
153 void
155
157 unsigned int
158 ReadMesh(const std::string & meshFileName, typename FixedMeshType::Pointer & mesh);
159
160 void
161 WriteResultMesh(const std::string & filename, MeshIdType meshId);
162
163 unsigned int
164 ReadTransformixPoints(const std::string & filename, typename MeshType::Pointer & mesh);
165
167 void
169 {}
170
171protected:
175 ~MissingStructurePenalty() override = default;
176
177private:
179
180 unsigned int m_NumberOfMeshes;
181};
182
183} // end namespace elastix
184
185#ifndef ITK_MANUAL_INSTANTIATION
186# include "elxMissingStructurePenalty.hxx"
187#endif
188
189#endif // end #ifndef elxMissingStructurePenalty_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
itkOverrideGetNameOfClassMacro(MissingStructurePenalty)
unsigned int ReadTransformixPoints(const std::string &filename, typename MeshType::Pointer &mesh)
~MissingStructurePenalty() override=default
typename CombinationTransformType::InitialTransformType InitialTransformType
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
ITK_DISALLOW_COPY_AND_MOVE(MissingStructurePenalty)
typename ElastixType::FixedImageType FixedImageType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
itk::AdvancedCombinationTransform< CoordinateType, Self::FixedImageDimension > CombinationTransformType
elxClassNameMacro("MissingStructurePenalty")
itk::MissingVolumeMeshPenalty< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
typename Superclass2::ITKBaseType ITKBaseType
void WriteResultMesh(const std::string &filename, MeshIdType meshId)
itk::SmartPointer< const Self > ConstPointer
unsigned int ReadMesh(const std::string &meshFileName, typename FixedMeshType::Pointer &mesh)
typename OutputPointType::CoordinateType CoordinateType
This class combines two transforms: an 'initial transform' with a 'current transform'.
Computes the (pseudo) volume of the transformed surface mesh of a structure. .
Mesh< DummyMeshPixelType, FixedPointSetDimension, MeshTraitsType > FixedMeshType


Generated on 1774142652 for elastix by doxygen 1.15.0 elastix logo