OTB
9.0.0
Orfeo Toolbox
|
#include <otbKMeansImageClassificationFilter.h>
Public Types | |
typedef std::map< LabelType, SampleType > | CentroidsMapType |
typedef itk::SmartPointer< const Self > | ConstPointer |
typedef itk::Statistics::EuclideanDistanceMetric< SampleType > | DistanceType |
typedef InputImageType::ConstPointer | InputImageConstPointerType |
typedef TInputImage | InputImageType |
typedef itk::Array< double > | KMeansParametersType |
typedef OutputImageType::PixelType | LabelType |
typedef MaskImageType::ConstPointer | MaskImageConstPointerType |
typedef MaskImageType::Pointer | MaskImagePointerType |
typedef TMaskImage | MaskImageType |
typedef OutputImageType::Pointer | OutputImagePointerType |
typedef OutputImageType::RegionType | OutputImageRegionType |
typedef TOutputImage | OutputImageType |
typedef itk::SmartPointer< Self > | Pointer |
typedef itk::FixedArray< ValueType, MaxSampleDimension > | SampleType |
typedef KMeansImageClassificationFilter | Self |
typedef itk::InPlaceImageFilter< TInputImage, TOutputImage > | Superclass |
typedef InputImageType::InternalPixelType | ValueType |
Public Member Functions | |
virtual ::itk::LightObject::Pointer | CreateAnother (void) const |
virtual const char * | GetNameOfClass () const |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static const unsigned int | MaxSampleDimension = VMaxSampleDimension |
KMeansParametersType | m_Centroids |
LabelType | m_DefaultLabel |
CentroidsMapType | m_CentroidsMap |
virtual void | SetCentroids (KMeansParametersType _arg) |
virtual const KMeansParametersType & | GetCentroids () const |
virtual void | SetDefaultLabel (LabelType _arg) |
virtual LabelType | GetDefaultLabel () |
void | SetInputMask (const MaskImageType *mask) |
const MaskImageType * | GetInputMask (void) |
KMeansImageClassificationFilter () | |
~KMeansImageClassificationFilter () override=default | |
void | ThreadedGenerateData (const OutputImageRegionType &outputRegionForThread, itk::ThreadIdType threadId) override |
void | BeforeThreadedGenerateData () override |
void | PrintSelf (std::ostream &os, itk::Indent indent) const override |
KMeansImageClassificationFilter (const Self &)=delete | |
void | operator= (const Self &)=delete |
This filter performs the classification of a VectorImage using a KMeans estimation result.
This filter is streamed and threaded, allowing to classify huge images. Because the internal sample type has to be an itk::FixedArray, one must specify at compilation time the maximum sample dimension. It is up to the user to specify a MaxSampleDimension sufficiently high to integrate all its features. This filter internally use one SVMClassifier per thread.
Definition at line 45 of file otbKMeansImageClassificationFilter.h.
typedef std::map<LabelType, SampleType> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::CentroidsMapType |
Definition at line 81 of file otbKMeansImageClassificationFilter.h.
typedef itk::SmartPointer<const Self> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::ConstPointer |
Definition at line 52 of file otbKMeansImageClassificationFilter.h.
typedef itk::Statistics::EuclideanDistanceMetric<SampleType> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::DistanceType |
Definition at line 82 of file otbKMeansImageClassificationFilter.h.
typedef InputImageType::ConstPointer otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::InputImageConstPointerType |
Definition at line 67 of file otbKMeansImageClassificationFilter.h.
typedef TInputImage otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::InputImageType |
Definition at line 66 of file otbKMeansImageClassificationFilter.h.
typedef itk::Array<double> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::KMeansParametersType |
Definition at line 80 of file otbKMeansImageClassificationFilter.h.
typedef OutputImageType::PixelType otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::LabelType |
Definition at line 77 of file otbKMeansImageClassificationFilter.h.
typedef MaskImageType::ConstPointer otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::MaskImageConstPointerType |
Definition at line 71 of file otbKMeansImageClassificationFilter.h.
typedef MaskImageType::Pointer otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::MaskImagePointerType |
Definition at line 72 of file otbKMeansImageClassificationFilter.h.
typedef TMaskImage otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::MaskImageType |
Definition at line 70 of file otbKMeansImageClassificationFilter.h.
typedef OutputImageType::Pointer otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::OutputImagePointerType |
Definition at line 75 of file otbKMeansImageClassificationFilter.h.
typedef OutputImageType::RegionType otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::OutputImageRegionType |
Definition at line 76 of file otbKMeansImageClassificationFilter.h.
typedef TOutputImage otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::OutputImageType |
Definition at line 74 of file otbKMeansImageClassificationFilter.h.
typedef itk::SmartPointer<Self> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::Pointer |
Definition at line 51 of file otbKMeansImageClassificationFilter.h.
typedef itk::FixedArray<ValueType, MaxSampleDimension> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::SampleType |
Definition at line 79 of file otbKMeansImageClassificationFilter.h.
typedef KMeansImageClassificationFilter otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::Self |
Standard typedefs
Definition at line 49 of file otbKMeansImageClassificationFilter.h.
typedef itk::InPlaceImageFilter<TInputImage, TOutputImage> otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::Superclass |
Definition at line 50 of file otbKMeansImageClassificationFilter.h.
typedef InputImageType::InternalPixelType otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::ValueType |
Definition at line 68 of file otbKMeansImageClassificationFilter.h.
|
protected |
Constructor
|
overrideprotecteddefault |
Destructor
|
privatedelete |
Centroids used for classification
|
overrideprotected |
Before threaded generate data
virtual::itk::LightObject::Pointer otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::CreateAnother | ( | void | ) | const |
|
virtual |
Centroids used for classification
|
virtual |
Centroids used for classification
const MaskImageType* otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::GetInputMask | ( | void | ) |
Get the input mask.
|
virtual |
Creation through object factory macro
|
static |
Type macro
|
privatedelete |
Centroids used for classification
|
overrideprotected |
PrintSelf method
|
virtual |
Set/Get the centroids
|
virtual |
Set/Get the default label
void otb::KMeansImageClassificationFilter< TInputImage, TOutputImage, VMaxSampleDimension, TMaskImage >::SetInputMask | ( | const MaskImageType * | mask | ) |
If set, only pixels within the mask will be classified.
mask | The input mask. |
|
overrideprotected |
Threaded generate data
|
private |
Centroids used for classification
Definition at line 127 of file otbKMeansImageClassificationFilter.h.
|
private |
Centroids - labels map
Definition at line 133 of file otbKMeansImageClassificationFilter.h.
|
private |
Default label for invalid pixels (when using a mask)
Definition at line 130 of file otbKMeansImageClassificationFilter.h.
|
static |
The max dimension of the sample to classify. This filter internally uses itk::FixedArray as input for the classifier, so the max sample size has to be fixed at compilation time.
Definition at line 64 of file otbKMeansImageClassificationFilter.h.