22 #ifndef otbPathListToHistogramGenerator_h
23 #define otbPathListToHistogramGenerator_h
25 #include "itkSampleToHistogramFilter.h"
26 #include "itkHistogram.h"
27 #include "itkListSample.h"
28 #include "itkVector.h"
48 template <
class TPath,
class TFunction>
70 typedef typename TFunction::OutputType
RealType;
79 typedef itk::Statistics::Histogram<MeasurementType, FrequencyContainerType>
HistogramType;
81 typedef itk::Statistics::SampleToHistogramFilter<ListSampleType, HistogramType>
GeneratorType;
86 typedef typename HistogramType::SizeType
SizeType;
98 using Superclass::SetInput;
123 using Superclass::MakeOutput;
125 void PrintSelf(std::ostream& os, itk::Indent indent)
const override;
133 #ifndef OTB_MANUAL_INSTANTIATION
This class is a generic all-purpose wrapping around an std::vector<itk::SmartPointer<ObjectType> >.
This class generates an histogram from a list of path.
void GraftNthOutput(unsigned int idx, itk::DataObject *graft)
void SetHistogramMax(const MeasurementVectorType &histogramMax)
TFunction::OutputType RealType
ListSampleType::Pointer ListSamplePointer
itk::SmartPointer< const Self > ConstPointer
PathListToHistogramGenerator()
PathType::Pointer PathPointer
HistogramType::ConstPointer HistogramConstPointer
const HistogramType * GetOutput() const
void SetAutoMinMax(bool autoMinMax)
itk::SmartPointer< Self > Pointer
void GenerateData() override
itk::Statistics::SampleToHistogramFilter< ListSampleType, HistogramType > GeneratorType
GeneratorPointer m_HistogramGenerator
void SetInput(const PathListType *path)
PathListToHistogramGenerator Self
itk::ProcessObject Superclass
ListSampleType::ConstPointer ListSampleConstPointer
itk::Statistics::DenseFrequencyContainer2 FrequencyContainerType
void SetMarginalScale(double marginalScale)
ObjectList< PathType > PathListType
void PrintSelf(std::ostream &os, itk::Indent indent) const override
GeneratorType::Pointer GeneratorPointer
HistogramType::MeasurementVectorType MeasurementVectorType
const PathListType * GetInput() const
itk::Vector< MeasurementType, 1 > ListSampleVectorType
itk::Statistics::Histogram< MeasurementType, FrequencyContainerType > HistogramType
itk::Statistics::ListSample< ListSampleVectorType > ListSampleType
void GraftOutput(itk::DataObject *graft)
void SetNumberOfBins(const SizeType &size)
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType) override
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
void SetHistogramMin(const MeasurementVectorType &histogramMin)
HistogramType::SizeType SizeType
~PathListToHistogramGenerator() override
Superclass::DataObjectPointer DataObjectPointer
HistogramType::Pointer HistogramPointer
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.