Commit e2896ff1 authored by Floris Berendsen's avatar Floris Berendsen
Browse files

ENH: CompositeTransformComponent provides itkTransformInterface for

connection to resampler
parent 02c11138
......@@ -31,7 +31,7 @@ template< class InternalComputationValueType, int Dimensionality >
class ItkCompositeTransformComponent :
public SuperElastixComponent<
Accepting< >,
Providing< MultiStageTransformInterface< InternalComputationValueType, Dimensionality >>
Providing< MultiStageTransformInterface< InternalComputationValueType, Dimensionality >, itkTransformInterface<InternalComputationValueType, Dimensionality> >
>
{
public:
......@@ -52,6 +52,8 @@ public:
virtual typename TransformType::Pointer GetTransformMovingInitialTransform(int stageIndex) override;
virtual void SetResultTransform(typename TransformType::Pointer resultTransform, int stageIndex) override;
virtual typename TransformType::Pointer GetItkTransform() override;
virtual bool MeetsCriterion( const ComponentBase::CriterionType & criterion ) override;
//static const char * GetName() { return "ItkCompositeTransform"; } ;
......
......@@ -59,6 +59,12 @@ ItkCompositeTransformComponent< InternalComputationValueType, Dimensionality >
{
}
template< class InternalComputationValueType, int Dimensionality >
typename ItkCompositeTransformComponent< InternalComputationValueType, Dimensionality >::TransformType::Pointer
ItkCompositeTransformComponent< InternalComputationValueType, Dimensionality >::GetItkTransform()
{
return (typename TransformType::Pointer)this->m_CompositeTransform;
}
template< class InternalComputationValueType, int Dimensionality >
bool
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment