Loading...
Searching...
No Matches
itkTranslationTransformInitializer.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 itkTranslationTransformInitializer_h
#define itkTranslationTransformInitializer_h
// ITK header files:
#include <itkImageMomentsCalculator.h>
#include <itkObject.h>
#include <iostream>
namespace itk
{
template <class TTransform, class TFixedImage, class TMovingImage>
class ITK_TEMPLATE_EXPORT TranslationTransformInitializer : public Object
{
public:
ITK_DISALLOW_COPY_AND_MOVE(TranslationTransformInitializer);
using Self = TranslationTransformInitializer;
using Superclass = Object;
using Pointer = SmartPointer<Self>;
using ConstPointer = SmartPointer<const Self>;
itkNewMacro(Self);
itkTypeMacro(TranslationTransformInitializer, Object);
using TransformType = TTransform;
using TransformPointer = typename TransformType::Pointer;
itkStaticConstMacro(SpaceDimension, unsigned int, TransformType::SpaceDimension);
itkStaticConstMacro(InputSpaceDimension, unsigned int, TransformType::InputSpaceDimension);
itkStaticConstMacro(OutputSpaceDimension, unsigned int, TransformType::OutputSpaceDimension);
using FixedImageType = TFixedImage;
using MovingImageType = TMovingImage;
using FixedImagePointer = typename FixedImageType::ConstPointer;
using MovingImagePointer = typename MovingImageType::ConstPointer;
using FixedMaskType = Image<unsigned char, InputSpaceDimension>;
using MovingMaskType = Image<unsigned char, OutputSpaceDimension>;
using FixedMaskPointer = typename FixedMaskType::ConstPointer;
using MovingMaskPointer = typename MovingMaskType::ConstPointer;
using FixedImageCalculatorType = ImageMomentsCalculator<FixedImageType>;
using MovingImageCalculatorType = ImageMomentsCalculator<MovingImageType>;
using FixedImageCalculatorPointer = typename FixedImageCalculatorType::Pointer;
using MovingImageCalculatorPointer = typename MovingImageCalculatorType::Pointer;
using InputPointType = typename TransformType::InputPointType;
using OutputVectorType = typename TransformType::OutputVectorType;
itkSetObjectMacro(Transform, TransformType);
itkSetConstObjectMacro(FixedImage, FixedImageType);
itkSetConstObjectMacro(MovingImage, MovingImageType);
itkSetConstObjectMacro(FixedMask, FixedMaskType);
itkSetConstObjectMacro(MovingMask, MovingMaskType);
virtual void
InitializeTransform() const;
void
GeometryOn()
{
m_UseMoments = false;
}
void
MomentsOn()
{
m_UseMoments = true;
}
itkGetConstObjectMacro(FixedCalculator, FixedImageCalculatorType);
itkGetConstObjectMacro(MovingCalculator, MovingImageCalculatorType);
protected:
TranslationTransformInitializer();
~TranslationTransformInitializer() override = default;
void
PrintSelf(std::ostream & os, Indent indent) const override;
private:
TransformPointer m_Transform{};
FixedImagePointer m_FixedImage{};
MovingImagePointer m_MovingImage{};
FixedMaskPointer m_FixedMask{};
MovingMaskPointer m_MovingMask{};
bool m_UseMoments{};
FixedImageCalculatorPointer m_FixedCalculator{};
MovingImageCalculatorPointer m_MovingCalculator{};
};
} // namespace itk
#ifndef ITK_MANUAL_INSTANTIATION
# include "itkTranslationTransformInitializer.hxx"
#endif
#endif /* itkTranslationTransformInitializer_h */
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::ConstPointer
SmartPointer< const Self > ConstPointer
Definition itkTranslationTransformInitializer.h:70
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::MovingMaskPointer
typename MovingMaskType::ConstPointer MovingMaskPointer
Definition itkTranslationTransformInitializer.h:95
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_Transform
TransformPointer m_Transform
Definition itkTranslationTransformInitializer.h:154
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_FixedImage
FixedImagePointer m_FixedImage
Definition itkTranslationTransformInitializer.h:155
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_MovingMask
MovingMaskPointer m_MovingMask
Definition itkTranslationTransformInitializer.h:158
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_MovingImage
MovingImagePointer m_MovingImage
Definition itkTranslationTransformInitializer.h:156
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::FixedImageType
FixedImageType FixedImageType
Definition itkTranslationTransformInitializer.h:88
itk::TranslationTransformInitializer::PrintSelf
void PrintSelf(std::ostream &os, Indent indent) const override
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::Self
TranslationTransformInitializer Self
Definition itkTranslationTransformInitializer.h:67
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::MovingImageType
MovingImageType MovingImageType
Definition itkTranslationTransformInitializer.h:89
itk::TranslationTransformInitializer::ITK_DISALLOW_COPY_AND_MOVE
ITK_DISALLOW_COPY_AND_MOVE(TranslationTransformInitializer)
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::OutputVectorType
typename TransformType::OutputVectorType OutputVectorType
Definition itkTranslationTransformInitializer.h:108
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::TransformType
TranslationTransformType TransformType
Definition itkTranslationTransformInitializer.h:79
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::FixedMaskPointer
typename FixedMaskType::ConstPointer FixedMaskPointer
Definition itkTranslationTransformInitializer.h:94
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::FixedImageCalculatorPointer
typename FixedImageCalculatorType::Pointer FixedImageCalculatorPointer
Definition itkTranslationTransformInitializer.h:101
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::MovingMaskType
Image< unsigned char, OutputSpaceDimension > MovingMaskType
Definition itkTranslationTransformInitializer.h:93
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::InputPointType
typename TransformType::InputPointType InputPointType
Definition itkTranslationTransformInitializer.h:105
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::FixedImagePointer
typename FixedImageType::ConstPointer FixedImagePointer
Definition itkTranslationTransformInitializer.h:90
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_UseMoments
bool m_UseMoments
Definition itkTranslationTransformInitializer.h:159
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::MovingImageCalculatorType
ImageMomentsCalculator< MovingImageType > MovingImageCalculatorType
Definition itkTranslationTransformInitializer.h:99
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_FixedMask
FixedMaskPointer m_FixedMask
Definition itkTranslationTransformInitializer.h:157
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_MovingCalculator
MovingImageCalculatorPointer m_MovingCalculator
Definition itkTranslationTransformInitializer.h:162
itk::TranslationTransformInitializer::GeometryOn
void GeometryOn()
Definition itkTranslationTransformInitializer.h:132
itk::TranslationTransformInitializer::InitializeTransform
virtual void InitializeTransform() const
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::TransformPointer
typename TransformType::Pointer TransformPointer
Definition itkTranslationTransformInitializer.h:80
itk::TranslationTransformInitializer::TranslationTransformInitializer
TranslationTransformInitializer()
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::MovingImageCalculatorPointer
typename MovingImageCalculatorType::Pointer MovingImageCalculatorPointer
Definition itkTranslationTransformInitializer.h:102
itk::TranslationTransformInitializer::itkStaticConstMacro
itkStaticConstMacro(SpaceDimension, unsigned int, TransformType::SpaceDimension)
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::m_FixedCalculator
FixedImageCalculatorPointer m_FixedCalculator
Definition itkTranslationTransformInitializer.h:161
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::FixedImageCalculatorType
ImageMomentsCalculator< FixedImageType > FixedImageCalculatorType
Definition itkTranslationTransformInitializer.h:98
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::Superclass
Object Superclass
Definition itkTranslationTransformInitializer.h:68
itk::TranslationTransformInitializer::~TranslationTransformInitializer
~TranslationTransformInitializer() override=default
itk::TranslationTransformInitializer::itkStaticConstMacro
itkStaticConstMacro(InputSpaceDimension, unsigned int, TransformType::InputSpaceDimension)
itk::TranslationTransformInitializer::itkStaticConstMacro
itkStaticConstMacro(OutputSpaceDimension, unsigned int, TransformType::OutputSpaceDimension)
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::Pointer
SmartPointer< Self > Pointer
Definition itkTranslationTransformInitializer.h:69
itk::TranslationTransformInitializer::MomentsOn
void MomentsOn()
Definition itkTranslationTransformInitializer.h:137
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::FixedMaskType
Image< unsigned char, InputSpaceDimension > FixedMaskType
Definition itkTranslationTransformInitializer.h:92
itk::TranslationTransformInitializer< TranslationTransformType, FixedImageType, MovingImageType >::MovingImagePointer
typename MovingImageType::ConstPointer MovingImagePointer
Definition itkTranslationTransformInitializer.h:91
itk
Definition itkAdvancedImageToImageMetric.h:43

Generated on 1768596610 for elastix by 1.15.0 |