OTB
9.0.0
Orfeo Toolbox
|
#include <otbListSampleGenerator.h>
Public Types | |
typedef int | ClassLabelType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::ProcessObject::DataObjectPointerArraySizeType | DataObjectPointerArraySizeType |
typedef ImageType::IndexType | ImageIndexType |
typedef ImageType::Pointer | ImagePointerType |
typedef ImageType::RegionType | ImageRegionType |
typedef TImage | ImageType |
typedef itk::FixedArray< ClassLabelType, 1 > | LabelType |
typedef ListLabelType::Pointer | ListLabelPointerType |
typedef itk::Statistics::ListSample< LabelType > | ListLabelType |
typedef ListSampleType::Pointer | ListSamplePointerType |
typedef itk::Statistics::ListSample< SampleType > | ListSampleType |
typedef itk::SmartPointer< Self > | Pointer |
typedef ImageType::PixelType | SampleType |
typedef ListSampleGenerator | Self |
typedef itk::ProcessObject | Superclass |
typedef VectorDataType::Pointer | VectorDataPointerType |
typedef TVectorData | VectorDataType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
typedef itk::DataObject::Pointer | DataObjectPointer |
typedef std::map< ClassLabelType, int > | SampleNumberType |
typedef VectorDataType::DataNodeType | DataNodeType |
typedef DataNodeType::PolygonType | PolygonType |
typedef DataNodeType::PolygonPointerType | PolygonPointerType |
typedef DataNodeType::PolygonListType | PolygonListType |
typedef DataNodeType::PolygonListPointerType | PolygonListPointerType |
typedef itk::PreOrderTreeIterator< typename VectorDataType::DataTreeType > | TreeIteratorType |
typedef itk::Statistics::MersenneTwisterRandomVariateGenerator | RandomGeneratorType |
long int | m_MaxTrainingSize |
long int | m_MaxValidationSize |
double | m_ValidationTrainingProportion |
bool | m_BoundByMin |
bool | m_PolygonEdgeInclusion |
unsigned short | m_NumberOfClasses |
std::string | m_ClassKey |
double | m_ClassMinSize |
std::map< ClassLabelType, double > | m_ClassesSize |
std::map< ClassLabelType, double > | m_ClassesProbTraining |
std::map< ClassLabelType, double > | m_ClassesProbValidation |
std::map< ClassLabelType, int > | m_ClassesSamplesNumberTraining |
std::map< ClassLabelType, int > | m_ClassesSamplesNumberValidation |
RandomGeneratorType::Pointer | m_RandomGenerator |
void | SetInput (const ImageType *) |
const ImageType * | GetInput () const |
void | SetInputVectorData (const VectorDataType *) |
const VectorDataType * | GetInputVectorData () const |
DataObjectPointer | MakeOutput (DataObjectPointerArraySizeType idx) override |
virtual long int | GetMaxTrainingSize () const |
virtual void | SetMaxTrainingSize (long int _arg) |
virtual bool | GetPolygonEdgeInclusion () const |
virtual void | SetPolygonEdgeInclusion (bool _arg) |
virtual long int | GetMaxValidationSize () const |
virtual void | SetMaxValidationSize (long int _arg) |
virtual double | GetValidationTrainingProportion () const |
virtual void | SetValidationTrainingProportion (double _arg) |
virtual bool | GetBoundByMin () const |
virtual void | SetBoundByMin (bool _arg) |
virtual unsigned short | GetNumberOfClasses () const |
SampleNumberType | GetClassesSamplesNumberTraining (void) const |
SampleNumberType | GetClassesSamplesNumberValidation (void) const |
virtual const char * | GetClassKey () const |
virtual void | SetClassKey (const char *_arg) |
virtual double | GetClassMinSize () const |
ListSampleType * | GetTrainingListSample () |
ListLabelType * | GetTrainingListLabel () |
ListSampleType * | GetValidationListSample () |
ListLabelType * | GetValidationListLabel () |
std::map< ClassLabelType, double > | GetClassesSize () const |
ListSampleGenerator () | |
~ListSampleGenerator () override | |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
void | GenerateData (void) override |
void | GenerateInputRequestedRegion (void) override |
void | GenerateClassStatistics () |
ListSampleGenerator (const Self &)=delete | |
void | operator= (const Self &)=delete |
void | ComputeClassSelectionProbability () |
double | GetPolygonAreaInPixelsUnits (DataNodeType *polygonDataNode, ImageType *image) |
Produces a ListSample from a VectorImage and a VectorData.
This filter produces two ListSample for learning and validation of learning algorithms. The repartition between the learning and validation ListSample can be adjusted using the SetValidationTrainingProportion() method.
The size of the training and validation ListSample can be limited using the SetMaxTrainingSize() and SetMaxValidationSize() methods.
Classes are specified by the VectorData with a metadata identified by a specific key. This key can be provided by the SetClassKey() method (using "Class" as a default key).
The input VectorData is supposed to be fully contained within the image extent
Definition at line 54 of file otbListSampleGenerator.h.
typedef int otb::ListSampleGenerator< TImage, TVectorData >::ClassLabelType |
List to store the corresponding labels
Definition at line 83 of file otbListSampleGenerator.h.
typedef itk::SmartPointer<const Self> otb::ListSampleGenerator< TImage, TVectorData >::ConstPointer |
Definition at line 61 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 175 of file otbListSampleGenerator.h.
typedef itk::DataObject::Pointer otb::ListSampleGenerator< TImage, TVectorData >::DataObjectPointer |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 102 of file otbListSampleGenerator.h.
typedef itk::ProcessObject::DataObjectPointerArraySizeType otb::ListSampleGenerator< TImage, TVectorData >::DataObjectPointerArraySizeType |
Definition at line 75 of file otbListSampleGenerator.h.
typedef ImageType::IndexType otb::ListSampleGenerator< TImage, TVectorData >::ImageIndexType |
Definition at line 71 of file otbListSampleGenerator.h.
typedef ImageType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::ImagePointerType |
Definition at line 70 of file otbListSampleGenerator.h.
typedef ImageType::RegionType otb::ListSampleGenerator< TImage, TVectorData >::ImageRegionType |
Definition at line 72 of file otbListSampleGenerator.h.
typedef TImage otb::ListSampleGenerator< TImage, TVectorData >::ImageType |
Definition at line 67 of file otbListSampleGenerator.h.
typedef itk::FixedArray<ClassLabelType, 1> otb::ListSampleGenerator< TImage, TVectorData >::LabelType |
Definition at line 84 of file otbListSampleGenerator.h.
typedef ListLabelType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::ListLabelPointerType |
Definition at line 86 of file otbListSampleGenerator.h.
typedef itk::Statistics::ListSample<LabelType> otb::ListSampleGenerator< TImage, TVectorData >::ListLabelType |
Definition at line 85 of file otbListSampleGenerator.h.
typedef ListSampleType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::ListSamplePointerType |
Definition at line 80 of file otbListSampleGenerator.h.
typedef itk::Statistics::ListSample<SampleType> otb::ListSampleGenerator< TImage, TVectorData >::ListSampleType |
Definition at line 79 of file otbListSampleGenerator.h.
typedef itk::SmartPointer<Self> otb::ListSampleGenerator< TImage, TVectorData >::Pointer |
Definition at line 60 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 179 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 178 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 177 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 176 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 209 of file otbListSampleGenerator.h.
typedef std::map<ClassLabelType, int> otb::ListSampleGenerator< TImage, TVectorData >::SampleNumberType |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 121 of file otbListSampleGenerator.h.
typedef ImageType::PixelType otb::ListSampleGenerator< TImage, TVectorData >::SampleType |
List to store the pixel values
Definition at line 78 of file otbListSampleGenerator.h.
typedef ListSampleGenerator otb::ListSampleGenerator< TImage, TVectorData >::Self |
Standard class typedefs
Definition at line 58 of file otbListSampleGenerator.h.
typedef itk::ProcessObject otb::ListSampleGenerator< TImage, TVectorData >::Superclass |
Definition at line 59 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 180 of file otbListSampleGenerator.h.
typedef VectorDataType::Pointer otb::ListSampleGenerator< TImage, TVectorData >::VectorDataPointerType |
Definition at line 74 of file otbListSampleGenerator.h.
typedef TVectorData otb::ListSampleGenerator< TImage, TVectorData >::VectorDataType |
Definition at line 73 of file otbListSampleGenerator.h.
|
protected |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 64 of file otbListSampleGenerator.hxx.
References otb::ListSampleGenerator< TImage, TVectorData >::m_RandomGenerator, and otb::ListSampleGenerator< TImage, TVectorData >::MakeOutput().
|
inlineoverrideprotected |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 158 of file otbListSampleGenerator.h.
|
privatedelete |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 327 of file otbListSampleGenerator.hxx.
virtual::itk::LightObject::Pointer otb::ListSampleGenerator< TImage, TVectorData >::CreateAnother | ( | void | ) | const |
|
protected |
Compute the class statistics
Definition at line 305 of file otbListSampleGenerator.hxx.
|
overrideprotected |
Triggers the Computation of the sample list
Definition at line 195 of file otbListSampleGenerator.hxx.
References otb::TransformPhysicalRegionToIndexRegion().
|
overrideprotected |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 175 of file otbListSampleGenerator.hxx.
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
inline |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 124 of file otbListSampleGenerator.h.
|
inline |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 129 of file otbListSampleGenerator.h.
|
inline |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 151 of file otbListSampleGenerator.h.
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
const TImage * otb::ListSampleGenerator< TImage, TVectorData >::GetInput |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 93 of file otbListSampleGenerator.hxx.
const TVectorData * otb::ListSampleGenerator< TImage, TVectorData >::GetInputVectorData |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 112 of file otbListSampleGenerator.hxx.
|
virtual |
Accessors
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
virtual |
Run-time type information (and related methods).
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 395 of file otbListSampleGenerator.hxx.
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
ListSampleGenerator< TImage, TVectorData >::ListLabelType * otb::ListSampleGenerator< TImage, TVectorData >::GetTrainingListLabel |
Returns the Trainingn label ListSample as a data object
Definition at line 154 of file otbListSampleGenerator.hxx.
ListSampleGenerator< TImage, TVectorData >::ListSampleType * otb::ListSampleGenerator< TImage, TVectorData >::GetTrainingListSample |
Returns the Training ListSample as a data object
Definition at line 148 of file otbListSampleGenerator.hxx.
ListSampleGenerator< TImage, TVectorData >::ListLabelType * otb::ListSampleGenerator< TImage, TVectorData >::GetValidationListLabel |
Returns the label sample list as a data object
Definition at line 169 of file otbListSampleGenerator.hxx.
ListSampleGenerator< TImage, TVectorData >::ListSampleType * otb::ListSampleGenerator< TImage, TVectorData >::GetValidationListSample |
Returns the label sample list as a data object
Definition at line 161 of file otbListSampleGenerator.hxx.
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
override |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 123 of file otbListSampleGenerator.hxx.
Referenced by otb::ListSampleGenerator< TImage, TVectorData >::ListSampleGenerator().
|
static |
Method for creation through the object factory.
|
privatedelete |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
overrideprotected |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 414 of file otbListSampleGenerator.hxx.
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
void otb::ListSampleGenerator< TImage, TVectorData >::SetInput | ( | const ImageType * | image | ) |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 87 of file otbListSampleGenerator.hxx.
void otb::ListSampleGenerator< TImage, TVectorData >::SetInputVectorData | ( | const VectorDataType * | vectorData | ) |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 104 of file otbListSampleGenerator.hxx.
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
virtual |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 194 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 203 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 204 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 206 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 207 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 202 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 199 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 200 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 189 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 190 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 198 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 195 of file otbListSampleGenerator.h.
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 210 of file otbListSampleGenerator.h.
Referenced by otb::ListSampleGenerator< TImage, TVectorData >::ListSampleGenerator().
|
private |
Connects the vector data for which the sample list is going to be extracted if this is the only input vector data, both the training and validation samples come from it
Definition at line 191 of file otbListSampleGenerator.h.