21 #ifndef otbTransformFactory_h
22 #define otbTransformFactory_h
52 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
59 if(transform->getDirection() != direction)
61 transform->SetMetadata(imd);
62 return DynamicCast<typename otb::SensorTransformBase<double, NInputDimensions, NOutputDimensions>>(transform);
71 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
78 if(transform->getDirection() != direction)
80 transform->SetMetadata(imd);
81 return DynamicCast<typename otb::SensorTransformBase<double, NInputDimensions, NOutputDimensions>>(transform);
90 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
97 if(transform->getDirection() != direction)
99 transform->SetMetadata(imd);
100 return DynamicCast<typename otb::SensorTransformBase<double, NInputDimensions, NOutputDimensions>>(transform);
109 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
116 if(transform->getDirection() != direction)
118 transform->SetMetadata(imd);
119 return DynamicCast<typename otb::SensorTransformBase<double, NInputDimensions, NOutputDimensions>>(transform);