18#ifndef elxPolydataDummyPenalty_h
19#define elxPolydataDummyPenalty_h
26#include "itkMeshFileReader.h"
27#include "itkMeshFileWriter.h"
63template <
class TElastix>
66 typename MetricBase<TElastix>::MovingPointSetType>
93 using typename Superclass1::FixedMeshType;
94 using typename Superclass1::FixedMeshPointer;
95 using typename Superclass1::FixedMeshConstPointer;
97 using typename Superclass1::CoordinateRepresentationType;
98 using typename Superclass1::FixedPointSetType;
99 using typename Superclass1::FixedPointSetConstPointer;
100 using typename Superclass1::FixedMeshContainerType;
101 using typename Superclass1::FixedMeshContainerPointer;
102 using typename Superclass1::MappedMeshContainerType;
103 using typename Superclass1::MappedMeshContainerPointer;
104 using typename Superclass1::MovingPointSetType;
105 using typename Superclass1::MovingPointSetConstPointer;
106 using typename Superclass1::CellInterfaceType;
109 using typename Superclass1::TransformType;
110 using typename Superclass1::TransformPointer;
111 using typename Superclass1::InputPointType;
112 using typename Superclass1::OutputPointType;
113 using typename Superclass1::TransformParametersType;
114 using typename Superclass1::TransformJacobianType;
116 using typename Superclass1::FixedImageMaskType;
117 using typename Superclass1::FixedImageMaskPointer;
118 using typename Superclass1::MovingImageMaskType;
119 using typename Superclass1::MovingImageMaskPointer;
120 using typename Superclass1::MeasureType;
121 using typename Superclass1::DerivativeType;
122 using typename Superclass1::ParametersType;
126 using typename Superclass1::MeshIdType;
182 ReadMesh(
const std::string & meshFileName,
typename FixedMeshType::Pointer & mesh);
209#ifndef ITK_MANUAL_INSTANTIATION
210# include "elxPolydataDummyPenalty.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 m_NumberOfMeshes
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
void SelectNewSamples() override
void Initialize() override
void AfterEachIteration() override
elxClassNameMacro("PolydataDummyPenalty")
typename ElastixType::FixedImageType FixedImageType
void BeforeRegistration() override
int BeforeAllBase() override
typename Superclass2::ITKBaseType ITKBaseType
~PolydataDummyPenalty() override=default
MetricBase< TElastix > Superclass2
FixedPointSetType PointSetType
PolydataDummyPenalty Self
void WriteResultMesh(const std::string &filename, MeshIdType meshId)
ITK_DISALLOW_COPY_AND_MOVE(PolydataDummyPenalty)
typename OutputPointType::CoordRepType CoordRepType
itk::MeshPenalty< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
unsigned int ReadMesh(const std::string &meshFileName, typename FixedMeshType::Pointer &mesh)
itk::SmartPointer< Self > Pointer
void AfterEachResolution() override
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
itk::SmartPointer< const Self > ConstPointer
unsigned int ReadTransformixPoints(const std::string &filename, typename MeshType::Pointer &mesh)
typename CombinationTransformType::InitialTransformType InitialTransformType
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
A dummy metric to generate transformed meshes each iteration.
Mesh< PointNormalType, FixedPointSetDimension, MeshTraitsType > FixedMeshType