18#ifndef elxPolydataDummyPenalty_h
19#define elxPolydataDummyPenalty_h
26#include "itkMeshFileReader.h"
27#include "itkMeshFileWriter.h"
63template <
class TElastix>
66 typename MetricBase<TElastix>::MovingPointSetType>
120 using typename Superclass1::MeasureType;
121 using typename Superclass1::DerivativeType;
122 using typename Superclass1::ParametersType;
182 ReadMesh(
const std::string & meshFileName,
typename FixedMeshType::Pointer & mesh);
209#ifndef ITK_MANUAL_INSTANTIATION
210# include "elxPolydataDummyPenalty.hxx"
This class is the elastix base class for all Metrics.
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
A dummy metric to generate transformed meshes at each iteration. This metric does not contribute to t...
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
FixedPointSetType PointSetType
void WriteResultMesh(const std::string &filename, MeshIdType meshId)
ITK_DISALLOW_COPY_AND_MOVE(PolydataDummyPenalty)
typename OutputPointType::CoordRepType CoordRepType
unsigned int ReadMesh(const std::string &meshFileName, typename FixedMeshType::Pointer &mesh)
itk::SmartPointer< Self > Pointer
void AfterEachResolution() override
Mesh< PointNormalType, FixedPointSetDimension, MeshTraitsType > FixedMeshType
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.
VectorContainer< MeshIdType, FixedMeshPointer > MappedMeshContainerType
VectorContainer< MeshIdType, FixedMeshConstPointer > FixedMeshContainerType
typename TransformType::InputPointType InputPointType
typename TransformType::Pointer TransformPointer
typename FixedMeshType::Pointer FixedMeshPointer
typename TransformType::ParametersType TransformParametersType
typename TransformType::JacobianType TransformJacobianType
typename FixedMeshType::ConstPointer FixedMeshConstPointer
typename TransformType::OutputPointType OutputPointType
Mesh< PointNormalType, FixedPointSetDimension, MeshTraitsType > FixedMeshType
typename MeshTraitsType::CellType CellInterfaceType
typename MappedMeshContainerType::Pointer MappedMeshContainerPointer
typename FixedMeshContainerType::Pointer FixedMeshContainerPointer
typename FixedImageMaskType::Pointer FixedImageMaskPointer
typename MovingPointSetType::ConstPointer MovingPointSetConstPointer
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
typename MovingImageMaskType::Pointer MovingImageMaskPointer
ImageMaskSpatialObject< Self::MovingPointSetDimension > MovingImageMaskType
TMovingPointSet MovingPointSetType
Superclass::ParametersValueType CoordinateRepresentationType
ImageMaskSpatialObject< Self::FixedPointSetDimension > FixedImageMaskType
TFixedPointSet FixedPointSetType