PCL
pcl::SelectionFilter Class Reference

Morphological selection operator. More...

#include <MorphologicalOperator.h>

+ Inheritance diagram for pcl::SelectionFilter:

Public Member Functions

 SelectionFilter ()=default
 
 SelectionFilter (const SelectionFilter &)=default
 
 SelectionFilter (float p)
 
MorphologicalOperatorClone () const override
 
String Description () const override
 
DoublePixelTraits::sample operator() (DoublePixelTraits::sample *f, size_type n) const override
 
FloatPixelTraits::sample operator() (FloatPixelTraits::sample *f, size_type n) const override
 
UInt16PixelTraits::sample operator() (UInt16PixelTraits::sample *f, size_type n) const override
 
UInt32PixelTraits::sample operator() (UInt32PixelTraits::sample *f, size_type n) const override
 
UInt8PixelTraits::sample operator() (UInt8PixelTraits::sample *f, size_type n) const override
 
float SelectionPoint () const
 
void SetSelectionPoint (float _k)
 
- Public Member Functions inherited from pcl::MorphologicalOperator
 MorphologicalOperator ()=default
 
 MorphologicalOperator (const MorphologicalOperator &)=default
 
virtual ~MorphologicalOperator ()
 
virtual ComplexPixelTraits::sample operator() (ComplexPixelTraits::sample *f, size_type n) const
 
virtual DComplexPixelTraits::sample operator() (DComplexPixelTraits::sample *f, size_type n) const
 

Detailed Description

The selection morphological operator (or selection order-statistic filter) computes the value corresponding to a prescribed percentile in the ranked set of values from a pixel neighborhood.

The selection point k of the selection operator defines the working percentile: for k=0, we have an erosion (or minimum) operator; for k=1 we have a dilation (or maximum) operator; k=0.5 defines the median operator. Other values work as a balance between erosion and dilation.

Definition at line 897 of file MorphologicalOperator.h.

Constructor & Destructor Documentation

◆ SelectionFilter() [1/3]

pcl::SelectionFilter::SelectionFilter ( )
default

Default constructor. The default selection point is 0.5, equivalent to a median operator.

◆ SelectionFilter() [2/3]

pcl::SelectionFilter::SelectionFilter ( float  p)
inline

Constructs a SelectionFilter with selection point p.

Definition at line 910 of file MorphologicalOperator.h.

◆ SelectionFilter() [3/3]

pcl::SelectionFilter::SelectionFilter ( const SelectionFilter )
default

Copy constructor.

Member Function Documentation

◆ Clone()

MorphologicalOperator* pcl::SelectionFilter::Clone ( ) const
inlineoverridevirtual

Returns a pointer to a dynamically allocated duplicate of this morphological operator.

Implements pcl::MorphologicalOperator.

Definition at line 924 of file MorphologicalOperator.h.

◆ Description()

String pcl::SelectionFilter::Description ( ) const
inlineoverridevirtual

Returns a human-readable description of this morphological operator.

Reimplemented from pcl::MorphologicalOperator.

Definition at line 948 of file MorphologicalOperator.h.

◆ operator()() [1/5]

DoublePixelTraits::sample pcl::SelectionFilter::operator() ( DoublePixelTraits::sample f,
size_type  n 
) const
inlineoverridevirtual

Applies this morphological operator to a vector f of n 64-bit floating point pixel samples.

Reimplemented from pcl::MorphologicalOperator.

Definition at line 966 of file MorphologicalOperator.h.

◆ operator()() [2/5]

FloatPixelTraits::sample pcl::SelectionFilter::operator() ( FloatPixelTraits::sample f,
size_type  n 
) const
inlineoverridevirtual

Applies this morphological operator to a vector f of n 32-bit floating point pixel samples.

Reimplemented from pcl::MorphologicalOperator.

Definition at line 957 of file MorphologicalOperator.h.

◆ operator()() [3/5]

UInt16PixelTraits::sample pcl::SelectionFilter::operator() ( UInt16PixelTraits::sample f,
size_type  n 
) const
inlineoverridevirtual

Applies this morphological operator to a vector f of n 16-bit unsigned integer pixel samples.

Reimplemented from pcl::MorphologicalOperator.

Definition at line 984 of file MorphologicalOperator.h.

◆ operator()() [4/5]

UInt32PixelTraits::sample pcl::SelectionFilter::operator() ( UInt32PixelTraits::sample f,
size_type  n 
) const
inlineoverridevirtual

Applies this morphological operator to a vector f of n 32-bit unsigned integer pixel samples.

Reimplemented from pcl::MorphologicalOperator.

Definition at line 993 of file MorphologicalOperator.h.

◆ operator()() [5/5]

UInt8PixelTraits::sample pcl::SelectionFilter::operator() ( UInt8PixelTraits::sample f,
size_type  n 
) const
inlineoverridevirtual

Applies this morphological operator to a vector f of n 8-bit unsigned integer pixel samples.

Reimplemented from pcl::MorphologicalOperator.

Definition at line 975 of file MorphologicalOperator.h.

◆ SelectionPoint()

float pcl::SelectionFilter::SelectionPoint ( ) const
inline

Returns the selection point of this morphological selection operator.

Definition at line 932 of file MorphologicalOperator.h.

◆ SetSelectionPoint()

void pcl::SelectionFilter::SetSelectionPoint ( float  _k)
inline

Sets the selection point of this morphological selection operator.

Definition at line 940 of file MorphologicalOperator.h.

References pcl::Range().


The documentation for this class was generated from the following file: