21 #ifndef otbUnConstrainedLeastSquareImageFilter_hxx
22 #define otbUnConstrainedLeastSquareImageFilter_hxx
31 template <
class TInput,
class TOutput,
class TPrecision>
37 template <
class TInput,
class TOutput,
class TPrecision>
41 m_Inv = m_Svd->inverse();
42 m_OutputSize = m.cols();
45 template <
class TInput,
class TOutput,
class TPrecision>
50 for (
unsigned int i = 0; i < in.GetSize(); ++i)
58 for (
unsigned int i = 0; i < out.GetSize(); ++i)
60 out[i] = outVector[i];
OutputType operator()(const InputType &in) const
vnl_vector< PrecisionType > VectorType
void SetMatrix(const MatrixType &m)
vcl_size_t OutputSize(const std::array< vcl_size_t, 1 > &nbBands) const
vnl_svd< PrecisionType > SVDType
vnl_matrix< PrecisionType > MatrixType
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.