21 #ifndef otbVariableLengthVectorConverter_hxx
22 #define otbVariableLengthVectorConverter_hxx
32 template <
class TInternalInputType,
class TPrecisionType>
33 typename VariableLengthVectorConverter<std::vector<std::vector<TInternalInputType>>, TPrecisionType>::OutputType
37 unsigned int count = 0;
38 unsigned int rsltIdx = 0;
44 for (
unsigned int l = 0; l < p; ++l)
46 count += input.at(l).size();
49 result.SetSize(count);
51 for (
unsigned int i = 0; i < p; ++i)
53 q = input.at(i).size();
54 for (
unsigned int j = 0; j < q; ++j)
65 template <
class TInternalInputType,
class TPrecisionType>
70 unsigned int count = 0;
71 unsigned int rsltIdx = 0;
76 for (
unsigned int l = 0; l < p; ++l)
78 count += input.at(l).size();
81 result.SetSize(count * 2);
83 for (
unsigned int i = 0; i < p; ++i)
85 q = input.at(i).size();
86 for (
unsigned int j = 0; j < q; ++j)
98 template <
class TInternalInputType,
unsigned int VArrayDimension,
class TPrecisionType>
102 unsigned int rsltIdx = 0;
105 result.SetSize(VArrayDimension);
107 for (
unsigned int i = 0; i < VArrayDimension; ++i)
116 template <
class TPixel,
class TPrecisionType>
120 unsigned int rsltIdx = 0;
124 nbBins[0] = input->GetSize()[0];
126 result.SetSize(nbBins[0]);
128 for (
unsigned int i = 0; i < nbBins[0]; ++i)
itk::SmartPointer< itk::Statistics::Histogram< TPixel > > InputType
TPrecisionType OutputPrecisionType
itk::VariableLengthVector< OutputPrecisionType > OutputType
std::vector< std::vector< std::complex< TInternalInputType > > > InputType
itk::VariableLengthVector< OutputPrecisionType > OutputType
TPrecisionType OutputPrecisionType
Convert any data container type into a VariableLengthVector.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.