21 #ifndef otbSarForwardTransform_hxx
22 #define otbSarForwardTransform_hxx
28 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
32 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
39 sensorPoint[0] =
static_cast<double>(point[0]) - 0.5;
40 sensorPoint[1] =
static_cast<double>(point[1]) - 0.5;
41 if (NInputDimensions > 2)
42 this->m_Transformer->LineSampleHeightToWorld(sensorPoint,
static_cast<double>(point[2]), worldPoint);
44 this->m_Transformer->LineSampleToWorld(sensorPoint, worldPoint);
47 pOut[0] =
static_cast<TScalarType
>(worldPoint[0]);
48 pOut[1] =
static_cast<TScalarType
>(worldPoint[1]);
49 if (NOutputDimensions > 2)
50 pOut[2] =
static_cast<TScalarType
>(worldPoint[2]);
57 template <
class TScalarType,
unsigned int NInputDimensions,
unsigned int NOutputDimensions>
60 Superclass::PrintSelf(os, indent);
61 os << indent <<
"Transformation direction: Forward" << std::endl;