18#ifndef elxMissingStructurePenalty_h
19#define elxMissingStructurePenalty_h
24#include "itkMeshFileReader.h"
25#include "itkMeshFileWriter.h"
53template <
class TElastix>
56 typename MetricBase<TElastix>::MovingPointSetType>
83 using typename Superclass1::FixedMeshType;
84 using typename Superclass1::FixedMeshPointer;
85 using typename Superclass1::FixedMeshConstPointer;
87 using typename Superclass1::CoordinateRepresentationType;
88 using typename Superclass1::FixedPointSetType;
89 using typename Superclass1::FixedPointSetConstPointer;
90 using typename Superclass1::FixedMeshContainerType;
91 using typename Superclass1::FixedMeshContainerPointer;
92 using typename Superclass1::MappedMeshContainerType;
93 using typename Superclass1::MappedMeshContainerPointer;
94 using typename Superclass1::MovingPointSetType;
95 using typename Superclass1::MovingPointSetConstPointer;
96 using typename Superclass1::CellInterfaceType;
99 using typename Superclass1::TransformType;
100 using typename Superclass1::TransformPointer;
101 using typename Superclass1::InputPointType;
102 using typename Superclass1::OutputPointType;
103 using typename Superclass1::TransformParametersType;
104 using typename Superclass1::TransformJacobianType;
106 using typename Superclass1::FixedImageMaskType;
107 using typename Superclass1::FixedImageMaskPointer;
108 using typename Superclass1::MovingImageMaskType;
109 using typename Superclass1::MovingImageMaskPointer;
110 using typename Superclass1::MeasureType;
111 using typename Superclass1::DerivativeType;
112 using typename Superclass1::ParametersType;
116 using typename Superclass1::MeshIdType;
162 ReadMesh(
const std::string & meshFileName,
typename FixedMeshType::Pointer & mesh);
189#ifndef ITK_MANUAL_INSTANTIATION
190# include "elxMissingStructurePenalty.hxx"
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
unsigned int ReadTransformixPoints(const std::string &filename, typename MeshType::Pointer &mesh)
void SelectNewSamples() override
MetricBase< TElastix > Superclass2
~MissingStructurePenalty() override=default
typename CombinationTransformType::InitialTransformType InitialTransformType
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
void Initialize() override
ITK_DISALLOW_COPY_AND_MOVE(MissingStructurePenalty)
typename ElastixType::FixedImageType FixedImageType
itk::SmartPointer< Self > Pointer
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
typename OutputPointType::CoordRepType CoordRepType
void AfterEachResolution() override
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
void AfterEachIteration() override
FixedPointSetType PointSetType
elxClassNameMacro("MissingStructurePenalty")
itk::MissingVolumeMeshPenalty< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
void BeforeRegistration() override
MissingStructurePenalty Self
int BeforeAllBase() override
MissingStructurePenalty()
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)
unsigned int m_NumberOfMeshes
Computes the (pseudo) volume of the transformed surface mesh of a structure. .
Mesh< DummyMeshPixelType, FixedPointSetDimension, MeshTraitsType > FixedMeshType