21 #ifndef otbProjectiveProjectionImageFilter_hxx
22 #define otbProjectiveProjectionImageFilter_hxx
31 template <
class TInput,
class TOutput,
class TPrecision>
37 template <
class TInput,
class TOutput,
class TPrecision>
41 return m_ProjectionDirection;
44 template <
class TInput,
class TOutput,
class TPrecision>
47 m_ProjectionDirection = p;
48 m_OutputSize = m_ProjectionDirection.Size();
51 template <
class TInput,
class TOutput,
class TPrecision>
56 for (
unsigned int i = 0; i < in.Size(); ++i)
58 dotProduct += in[i] * m_ProjectionDirection[i];
62 for (
unsigned int j = 0; j < in.Size(); ++j)
64 projected[j] = in[j] / dotProduct;