Loading...
Searching...
No Matches
elxCorrespondingPointsEuclideanDistanceMetric.h
Go to the documentation of this file.
/*=========================================================================
*
* Copyright UMC Utrecht and contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0.txt
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*=========================================================================*/
#ifndef elxCorrespondingPointsEuclideanDistanceMetric_h
#define elxCorrespondingPointsEuclideanDistanceMetric_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkCorrespondingPointsEuclideanDistancePointMetric.h"
namespace elastix
{
template <class TElastix>
class ITK_TEMPLATE_EXPORT CorrespondingPointsEuclideanDistanceMetric
: public itk::CorrespondingPointsEuclideanDistancePointMetric<typename MetricBase<TElastix>::FixedPointSetType,
typename MetricBase<TElastix>::MovingPointSetType>
, public MetricBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(CorrespondingPointsEuclideanDistanceMetric);
using Self = CorrespondingPointsEuclideanDistanceMetric;
using Superclass1 =
itk::CorrespondingPointsEuclideanDistancePointMetric<typename MetricBase<TElastix>::FixedPointSetType,
typename MetricBase<TElastix>::MovingPointSetType>;
using Superclass2 = MetricBase<TElastix>;
using Pointer = itk::SmartPointer<Self>;
using ConstPointer = itk::SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(CorrespondingPointsEuclideanDistanceMetric, itk::CorrespondingPointsEuclideanDistancePointMetric);
elxClassNameMacro("CorrespondingPointsEuclideanDistanceMetric");
using typename Superclass1::CoordinateRepresentationType;
using typename Superclass1::FixedPointSetType;
using typename Superclass1::FixedPointSetConstPointer;
using typename Superclass1::MovingPointSetType;
using typename Superclass1::MovingPointSetConstPointer;
// using typename Superclass1::FixedImageRegionType;
using typename Superclass1::TransformType;
using typename Superclass1::TransformPointer;
using typename Superclass1::InputPointType;
using typename Superclass1::OutputPointType;
using typename Superclass1::TransformParametersType;
using typename Superclass1::TransformJacobianType;
// using typename Superclass1::RealType;
using typename Superclass1::FixedImageMaskType;
using typename Superclass1::FixedImageMaskPointer;
using typename Superclass1::MovingImageMaskType;
using typename Superclass1::MovingImageMaskPointer;
using typename Superclass1::MeasureType;
using typename Superclass1::DerivativeType;
using typename Superclass1::ParametersType;
using typename Superclass2::ElastixType;
using typename Superclass2::RegistrationType;
using ITKBaseType = typename Superclass2::ITKBaseType;
using typename Superclass2::FixedImageType;
using typename Superclass2::MovingImageType;
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension);
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension);
using PointSetType = FixedPointSetType;
using ImageType = FixedImageType;
void
Initialize() override;
int
BeforeAllBase() override;
void
BeforeRegistration() override;
unsigned int
ReadLandmarks(const std::string & landmarkFileName,
typename PointSetType::Pointer & pointSet,
const typename ImageType::ConstPointer image);
void
SelectNewSamples() override
{}
protected:
CorrespondingPointsEuclideanDistanceMetric() = default;
~CorrespondingPointsEuclideanDistanceMetric() override = default;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxCorrespondingPointsEuclideanDistanceMetric.hxx"
#endif
#endif // end #ifndef elxCorrespondingPointsEuclideanDistanceMetric_h
elastix::CorrespondingPointsEuclideanDistanceMetric::SelectNewSamples
void SelectNewSamples() override
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:140
elastix::CorrespondingPointsEuclideanDistanceMetric::Self
CorrespondingPointsEuclideanDistanceMetric Self
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:49
elastix::CorrespondingPointsEuclideanDistanceMetric::ReadLandmarks
unsigned int ReadLandmarks(const std::string &landmarkFileName, typename PointSetType::Pointer &pointSet, const typename ImageType::ConstPointer image)
elastix::CorrespondingPointsEuclideanDistanceMetric::Pointer
itk::SmartPointer< Self > Pointer
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:54
elastix::CorrespondingPointsEuclideanDistanceMetric::Superclass1
itk::CorrespondingPointsEuclideanDistancePointMetric< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:50
elastix::CorrespondingPointsEuclideanDistanceMetric::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:150
elastix::CorrespondingPointsEuclideanDistanceMetric::itkStaticConstMacro
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
elastix::CorrespondingPointsEuclideanDistanceMetric::CorrespondingPointsEuclideanDistanceMetric
CorrespondingPointsEuclideanDistanceMetric()=default
elastix::CorrespondingPointsEuclideanDistanceMetric::Initialize
void Initialize() override
elastix::CorrespondingPointsEuclideanDistanceMetric::BeforeAllBase
int BeforeAllBase() override
elastix::CorrespondingPointsEuclideanDistanceMetric::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:55
elastix::CorrespondingPointsEuclideanDistanceMetric::FixedImageType
typename ElastixType::FixedImageType FixedImageType
Definition elxMetricBase.h:89
elastix::CorrespondingPointsEuclideanDistanceMetric::ImageType
FixedImageType ImageType
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:109
elastix::CorrespondingPointsEuclideanDistanceMetric::Superclass2
MetricBase< TElastix > Superclass2
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:53
elastix::CorrespondingPointsEuclideanDistanceMetric::~CorrespondingPointsEuclideanDistanceMetric
~CorrespondingPointsEuclideanDistanceMetric() override=default
elastix::CorrespondingPointsEuclideanDistanceMetric::BeforeRegistration
void BeforeRegistration() override
elastix::CorrespondingPointsEuclideanDistanceMetric::itkStaticConstMacro
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elastix::CorrespondingPointsEuclideanDistanceMetric::PointSetType
FixedPointSetType PointSetType
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:108
elastix::CorrespondingPointsEuclideanDistanceMetric::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(CorrespondingPointsEuclideanDistanceMetric)
elastix::CorrespondingPointsEuclideanDistanceMetric::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxCorrespondingPointsEuclideanDistanceMetric.h:95
elastix::CorrespondingPointsEuclideanDistanceMetric::elxClassNameMacro
elxClassNameMacro("CorrespondingPointsEuclideanDistanceMetric")
elastix::MetricBase::MovingPointSetType
itk::PointSet< CoordinateRepresentationType, MovingImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, MovingImageDimension, MovingImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > MovingPointSetType
Definition elxMetricBase.h:116
elastix::MetricBase::FixedPointSetType
itk::PointSet< CoordinateRepresentationType, FixedImageDimension, itk::DefaultStaticMeshTraits< CoordinateRepresentationType, FixedImageDimension, FixedImageDimension, CoordinateRepresentationType, CoordinateRepresentationType, CoordinateRepresentationType > > FixedPointSetType
Definition elxMetricBase.h:108
elastix::MetricBase::MetricBase
MetricBase()=default
elastix::MetricBase::ITKBaseType
itk::SingleValuedCostFunction ITKBaseType
Definition elxMetricBase.h:97
elastix::MetricBase::FixedImageType
typename ElastixType::FixedImageType FixedImageType
Definition elxMetricBase.h:89
elastix::MetricBase::MovingImageType
typename ElastixType::MovingImageType MovingImageType
Definition elxMetricBase.h:92
elastix::MetricBase::RegistrationType
typename ElastixType::RegistrationBaseType RegistrationType
Definition elxBaseComponentSE.h:62
elastix::MetricBase::ElastixType
TElastix ElastixType
Definition elxBaseComponentSE.h:57
itk::CorrespondingPointsEuclideanDistancePointMetric
Computes the Euclidean distance between a moving point-set and a fixed point-set. Correspondence is n...
Definition itkCorrespondingPointsEuclideanDistancePointMetric.h:41
elxIncludes.h
itkCorrespondingPointsEuclideanDistancePointMetric.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |