Loading...
Searching...
No Matches
elxStatisticalShapePenalty.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 elxStatisticalShapePenalty_h
#define elxStatisticalShapePenalty_h
#include "elxIncludes.h" // include first to avoid MSVS warning
#include "itkStatisticalShapePointPenalty.h"
#include <vnl/vnl_matrix.h>
#include <vnl/vnl_vector.h>
namespace elastix
{
using namespace itk;
template <class TElastix>
class ITK_TEMPLATE_EXPORT StatisticalShapePenalty
: public StatisticalShapePointPenalty<typename MetricBase<TElastix>::FixedPointSetType,
typename MetricBase<TElastix>::MovingPointSetType>
, public MetricBase<TElastix>
{
public:
ITK_DISALLOW_COPY_AND_MOVE(StatisticalShapePenalty);
using Self = StatisticalShapePenalty;
using Superclass1 = StatisticalShapePointPenalty<typename MetricBase<TElastix>::FixedPointSetType,
typename MetricBase<TElastix>::MovingPointSetType>;
using Superclass2 = MetricBase<TElastix>;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(StatisticalShapePenalty, StatisticalShapePointPenalty);
elxClassNameMacro("StatisticalShapePenalty");
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 CoordRepType = typename OutputPointType::CoordRepType;
using VnlVectorType = vnl_vector<CoordRepType>;
/*typedef itk::AdvancedTransform<
CoordRepType,
itkGetStaticConstMacro( FixedImageDimension ),
itkGetStaticConstMacro( MovingImageDimension ) > ITKBaseType;
*/
using CombinationTransformType = itk::AdvancedCombinationTransform<CoordRepType, Self::FixedImageDimension>;
using InitialTransformType = typename CombinationTransformType::InitialTransformType;
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;
void
BeforeRegistration() override;
void
BeforeEachResolution() override;
unsigned int
ReadLandmarks(const std::string & landmarkFileName,
typename PointSetType::Pointer & pointSet,
const typename ImageType::ConstPointer image);
unsigned int
ReadShape(const std::string & ShapeFileName, typename PointSetType::Pointer & pointSet);
void
SelectNewSamples() override
{}
protected:
StatisticalShapePenalty() = default;
~StatisticalShapePenalty() override = default;
private:
elxOverrideGetSelfMacro;
};
} // end namespace elastix
#ifndef ITK_MANUAL_INSTANTIATION
# include "elxStatisticalShapePenalty.hxx"
#endif
#endif // end #ifndef elxStatisticalShapePenalty_h
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
elastix::StatisticalShapePenalty::itkStaticConstMacro
itkStaticConstMacro(FixedImageDimension, unsigned int, FixedImageType::ImageDimension)
elastix::StatisticalShapePenalty::Pointer
SmartPointer< Self > Pointer
Definition elxStatisticalShapePenalty.h:71
elastix::StatisticalShapePenalty::Superclass1
StatisticalShapePointPenalty< typename MetricBase< TElastix >::FixedPointSetType, typename MetricBase< TElastix >::MovingPointSetType > Superclass1
Definition elxStatisticalShapePenalty.h:68
elastix::StatisticalShapePenalty::PointSetType
FixedPointSetType PointSetType
Definition elxStatisticalShapePenalty.h:137
elastix::StatisticalShapePenalty::BeforeRegistration
void BeforeRegistration() override
elastix::StatisticalShapePenalty::elxClassNameMacro
elxClassNameMacro("StatisticalShapePenalty")
elastix::StatisticalShapePenalty::CoordRepType
typename OutputPointType::CoordRepType CoordRepType
Definition elxStatisticalShapePenalty.h:109
elastix::StatisticalShapePenalty::FixedImageType
typename ElastixType::FixedImageType FixedImageType
Definition elxMetricBase.h:89
elastix::StatisticalShapePenalty::Self
StatisticalShapePenalty Self
Definition elxStatisticalShapePenalty.h:67
elastix::StatisticalShapePenalty::SelectNewSamples
void SelectNewSamples() override
Definition elxStatisticalShapePenalty.h:167
elastix::StatisticalShapePenalty::ITKBaseType
typename Superclass2::ITKBaseType ITKBaseType
Definition elxStatisticalShapePenalty.h:124
elastix::StatisticalShapePenalty::~StatisticalShapePenalty
~StatisticalShapePenalty() override=default
elastix::StatisticalShapePenalty::InitialTransformType
typename CombinationTransformType::InitialTransformType InitialTransformType
Definition elxStatisticalShapePenalty.h:119
elastix::StatisticalShapePenalty::elxOverrideGetSelfMacro
elxOverrideGetSelfMacro
Definition elxStatisticalShapePenalty.h:177
elastix::StatisticalShapePenalty::ImageType
FixedImageType ImageType
Definition elxStatisticalShapePenalty.h:138
elastix::StatisticalShapePenalty::Initialize
void Initialize() override
elastix::StatisticalShapePenalty::itkStaticConstMacro
itkStaticConstMacro(MovingImageDimension, unsigned int, MovingImageType::ImageDimension)
elastix::StatisticalShapePenalty::ConstPointer
SmartPointer< const Self > ConstPointer
Definition elxStatisticalShapePenalty.h:72
elastix::StatisticalShapePenalty::CombinationTransformType
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension > CombinationTransformType
Definition elxStatisticalShapePenalty.h:118
elastix::StatisticalShapePenalty::BeforeEachResolution
void BeforeEachResolution() override
elastix::StatisticalShapePenalty::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(StatisticalShapePenalty)
elastix::StatisticalShapePenalty::ReadLandmarks
unsigned int ReadLandmarks(const std::string &landmarkFileName, typename PointSetType::Pointer &pointSet, const typename ImageType::ConstPointer image)
elastix::StatisticalShapePenalty::VnlVectorType
vnl_vector< CoordRepType > VnlVectorType
Definition elxStatisticalShapePenalty.h:110
elastix::StatisticalShapePenalty::ReadShape
unsigned int ReadShape(const std::string &ShapeFileName, typename PointSetType::Pointer &pointSet)
elastix::StatisticalShapePenalty::StatisticalShapePenalty
StatisticalShapePenalty()=default
elastix::StatisticalShapePenalty::Superclass2
MetricBase< TElastix > Superclass2
Definition elxStatisticalShapePenalty.h:70
itk::AdvancedCombinationTransform
This class combines two transforms: an 'initial transform' with a 'current transform'.
Definition itkAdvancedCombinationTransform.h:57
itk::AdvancedCombinationTransform< CoordRepType, Self::FixedImageDimension >::InitialTransformType
Superclass InitialTransformType
Definition itkAdvancedCombinationTransform.h:110
itk::SingleValuedPointSetToPointSetMetric::FixedImageMaskPointer
typename FixedImageMaskType::Pointer FixedImageMaskPointer
Definition itkSingleValuedPointSetToPointSetMetric.h:102
itk::SingleValuedPointSetToPointSetMetric::MovingImageMaskPointer
typename MovingImageMaskType::Pointer MovingImageMaskPointer
Definition itkSingleValuedPointSetToPointSetMetric.h:105
itk::SingleValuedPointSetToPointSetMetric::MovingImageMaskType
ImageMaskSpatialObject< Self::MovingPointSetDimension > MovingImageMaskType
Definition itkSingleValuedPointSetToPointSetMetric.h:104
itk::SingleValuedPointSetToPointSetMetric::CoordinateRepresentationType
Superclass::ParametersValueType CoordinateRepresentationType
Definition itkSingleValuedPointSetToPointSetMetric.h:73
itk::SingleValuedPointSetToPointSetMetric::FixedImageMaskType
ImageMaskSpatialObject< Self::FixedPointSetDimension > FixedImageMaskType
Definition itkSingleValuedPointSetToPointSetMetric.h:101
itk::StatisticalShapePointPenalty::StatisticalShapePointPenalty
StatisticalShapePointPenalty()
itk::StatisticalShapePointPenalty::InputPointType
typename TransformType::InputPointType InputPointType
Definition itkSingleValuedPointSetToPointSetMetric.h:96
itk::StatisticalShapePointPenalty::TransformPointer
typename TransformType::Pointer TransformPointer
Definition itkSingleValuedPointSetToPointSetMetric.h:95
itk::StatisticalShapePointPenalty::MovingPointSetConstPointer
typename MovingPointSetType::ConstPointer MovingPointSetConstPointer
Definition itkSingleValuedPointSetToPointSetMetric.h:84
itk::StatisticalShapePointPenalty::FixedPointSetConstPointer
typename FixedPointSetType::ConstPointer FixedPointSetConstPointer
Definition itkSingleValuedPointSetToPointSetMetric.h:81
itk::StatisticalShapePointPenalty::MovingPointSetType
TMovingPointSet MovingPointSetType
Definition itkSingleValuedPointSetToPointSetMetric.h:82
itk::StatisticalShapePointPenalty::TransformType
AdvancedTransform< CoordinateRepresentationType, Self::FixedPointSetDimension, Self::MovingPointSetDimension > TransformType
Definition itkSingleValuedPointSetToPointSetMetric.h:93
itk::StatisticalShapePointPenalty::TransformParametersType
typename TransformType::ParametersType TransformParametersType
Definition itkSingleValuedPointSetToPointSetMetric.h:98
itk::StatisticalShapePointPenalty::TransformJacobianType
typename TransformType::JacobianType TransformJacobianType
Definition itkSingleValuedPointSetToPointSetMetric.h:99
itk::StatisticalShapePointPenalty::FixedPointSetType
TFixedPointSet FixedPointSetType
Definition itkSingleValuedPointSetToPointSetMetric.h:79
itk::StatisticalShapePointPenalty::OutputPointType
typename TransformType::OutputPointType OutputPointType
Definition itkSingleValuedPointSetToPointSetMetric.h:97
elxIncludes.h
itkStatisticalShapePointPenalty.h
elastix
Definition elxDefaultConstruct.h:25

Generated on 1768596610 for elastix by 1.15.0 |