![]() |
OTB
9.1.1
Orfeo Toolbox
|
#include <otbSamplingRateCalculatorList.h>
Inheritance diagram for otb::SamplingRateCalculatorList:
Collaboration diagram for otb::SamplingRateCalculatorList:Public Types | |
| typedef SamplingRateCalculator::ClassCountMapType | ClassCountMapType |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef SamplingRateCalculator::MapRateType | MapRateType |
| enum | PartitionType { PROPORTIONAL, EQUAL, CUSTOM } |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef SamplingRateCalculatorList | Self |
| typedef ObjectList< SamplingRateCalculator > | Superclass |
Public Types inherited from otb::ObjectList< SamplingRateCalculator > | |
| typedef itk::SmartPointer< const Self > | ConstPointer |
| typedef InternalContainerType::size_type | InternalContainerSizeType |
| typedef std::vector< ObjectPointerType > | InternalContainerType |
| typedef itk::SmartPointer< ObjectType > | ObjectPointerType |
| typedef SamplingRateCalculator | ObjectType |
| typedef itk::SmartPointer< Self > | Pointer |
| typedef ObjectList | Self |
| typedef itk::DataObject | Superclass |
Static Public Member Functions | |
| static Pointer | New () |
Static Public Member Functions inherited from otb::ObjectList< SamplingRateCalculator > | |
| static Pointer | New () |
Protected Member Functions | |
| SamplingRateCalculatorList () | |
| ~SamplingRateCalculatorList () override | |
Protected Member Functions inherited from otb::ObjectList< SamplingRateCalculator > | |
| ObjectList () | |
| ~ObjectList () override | |
| void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
Protected Member Functions inherited from otb::DataObjectListInterface | |
| DataObjectListInterface ()=default | |
| virtual | ~DataObjectListInterface ()=default |
Private Member Functions | |
| void | operator= (const Self &)=delete |
| SamplingRateCalculatorList (const Self &)=delete | |
| void | UpdateGlobalCounts () |
Private Attributes | |
| ClassCountMapType | m_GlobalCountMap |
This class is a list of sampling rate calculators.
It computes sampling rates for each image and each class, given input statistics on available samples, and a sampling strategy. The sampling strategies are made from the combination of :
Definition at line 41 of file otbSamplingRateCalculatorList.h.
| typedef SamplingRateCalculator::ClassCountMapType otb::SamplingRateCalculatorList::ClassCountMapType |
Definition at line 50 of file otbSamplingRateCalculatorList.h.
| typedef itk::SmartPointer<const Self> otb::SamplingRateCalculatorList::ConstPointer |
Definition at line 48 of file otbSamplingRateCalculatorList.h.
Definition at line 51 of file otbSamplingRateCalculatorList.h.
| typedef itk::SmartPointer<Self> otb::SamplingRateCalculatorList::Pointer |
Definition at line 47 of file otbSamplingRateCalculatorList.h.
Standard typedefs
Definition at line 45 of file otbSamplingRateCalculatorList.h.
Definition at line 46 of file otbSamplingRateCalculatorList.h.
| Enumerator | |
|---|---|
| PROPORTIONAL | |
| EQUAL | |
| CUSTOM | |
Definition at line 53 of file otbSamplingRateCalculatorList.h.
|
inlineprotected |
Constructor
Definition at line 98 of file otbSamplingRateCalculatorList.h.
|
inlineoverrideprotected |
Destructor
Definition at line 103 of file otbSamplingRateCalculatorList.h.
|
privatedelete |
| void otb::SamplingRateCalculatorList::ClearRates | ( | void | ) |
Clear internal data
| virtual::itk::LightObject::Pointer otb::SamplingRateCalculatorList::CreateAnother | ( | void | ) | const |
|
virtual |
Creation through object factory macro
| const MapRateType& otb::SamplingRateCalculatorList::GetRatesByClass | ( | unsigned int | index | ) |
Get the sampling rates computed for input 'index'
|
static |
Type macro
|
privatedelete |
| void otb::SamplingRateCalculatorList::SetAllSamples | ( | PartitionType | t | ) |
Method to select all available samples
| void otb::SamplingRateCalculatorList::SetMinimumNbOfSamplesByClass | ( | PartitionType | t | ) |
Method to choose a sampling strategy based on the smallest class. The number of samples in each class is set to this minimum size
| void otb::SamplingRateCalculatorList::SetNbOfSamplesAllClasses | ( | std::vector< unsigned long > & | nb, |
| PartitionType | t | ||
| ) |
Method to set the same number of required samples in each class
| void otb::SamplingRateCalculatorList::SetNbOfSamplesByClass | ( | const std::vector< ClassCountMapType > & | required, |
| PartitionType | t | ||
| ) |
Method to manually set the number of samples required in each class
| void otb::SamplingRateCalculatorList::SetNthClassCount | ( | unsigned int | index, |
| const ClassCountMapType & | map | ||
| ) |
Set the class counts for input 'index'
| void otb::SamplingRateCalculatorList::SetPercentageOfSamples | ( | std::vector< double > & | p, |
| PartitionType | t | ||
| ) |
Method to use a percentage of the samples available in each class
| void otb::SamplingRateCalculatorList::SetTotalNumberOfSamples | ( | std::vector< unsigned long > & | tot, |
| PartitionType | t | ||
| ) |
Method to set the total number of samples and use classes proportions
|
private |
|
private |
Definition at line 113 of file otbSamplingRateCalculatorList.h.
1.8.17