PCL
pcl::ThresholdedTransformation Class Reference

Thresholded image transformation. More...

#include <ThresholdedTransformation.h>

+ Inheritance diagram for pcl::ThresholdedTransformation:

Public Member Functions

 ThresholdedTransformation (const ThresholdedTransformation &)=default
 
 ThresholdedTransformation (double low=0, double high=0)
 
 ~ThresholdedTransformation () override
 
double HighThreshold () const
 
bool IsThresholded () const
 
double LowThreshold () const
 
void SetHighThreshold (double t)
 
void SetLowThreshold (double t)
 
- Public Member Functions inherited from pcl::ImageTransformation
 ImageTransformation ()=default
 
 ImageTransformation (const ImageTransformation &)=default
 
virtual ~ImageTransformation ()
 
template<class P >
GenericImage< P > & operator>> (GenericImage< P > &image) const
 
ImageVariantoperator>> (ImageVariant &image) const
 

Additional Inherited Members

- Protected Member Functions inherited from pcl::ImageTransformation
virtual void Apply (pcl::ComplexImage &image) const
 
virtual void Apply (pcl::DComplexImage &image) const
 
virtual void Apply (pcl::DImage &image) const
 
virtual void Apply (pcl::Image &image) const
 
virtual void Apply (pcl::UInt16Image &image) const
 
virtual void Apply (pcl::UInt32Image &image) const
 
virtual void Apply (pcl::UInt8Image &image) const
 

Detailed Description

ThresholdedTransformation represents a thresholded image transformation in PCL. A thresholded transformation modifies its effect when applied to pixels within a given range of pixel sample values.

Instead of defining a fixed range of sample values, a thresholded transformation defines two threshold values in PCL. These thresholds are normalized distances measured from a floating reference value that can be specified on a per-pixel basis.

In PCL, convolutions in the spatial domain and morphological transformations have been implemented as thresholded transformations.

Definition at line 82 of file ThresholdedTransformation.h.

Constructor & Destructor Documentation

◆ ThresholdedTransformation() [1/2]

pcl::ThresholdedTransformation::ThresholdedTransformation ( double  low = 0,
double  high = 0 
)
inline

Constructs a ThresholdedTransformation object with the specified low and high threshold values in the normalized real range [0,1].

Definition at line 90 of file ThresholdedTransformation.h.

◆ ThresholdedTransformation() [2/2]

pcl::ThresholdedTransformation::ThresholdedTransformation ( const ThresholdedTransformation )
default

Copy constructor.

◆ ~ThresholdedTransformation()

pcl::ThresholdedTransformation::~ThresholdedTransformation ( )
inlineoverride

Destroys a ThresholdedTransformation object.

Definition at line 104 of file ThresholdedTransformation.h.

Member Function Documentation

◆ HighThreshold()

double pcl::ThresholdedTransformation::HighThreshold ( ) const
inline

Returns the current high threshold in the normalized real range.

Definition at line 140 of file ThresholdedTransformation.h.

◆ IsThresholded()

bool pcl::ThresholdedTransformation::IsThresholded ( ) const
inline

Returns true iff this transformation is currently thresholded.

The transformation is thresholded when either threshold (low or high) is nonzero. When both thresholds are zero, the transformation applies no thresholding at all.

Definition at line 115 of file ThresholdedTransformation.h.

◆ LowThreshold()

double pcl::ThresholdedTransformation::LowThreshold ( ) const
inline

Returns the current low threshold in the normalized real range.

Definition at line 123 of file ThresholdedTransformation.h.

◆ SetHighThreshold()

void pcl::ThresholdedTransformation::SetHighThreshold ( double  t)
inline

Sets the high threshold to the specified sample value t in the normalized real range.

Definition at line 149 of file ThresholdedTransformation.h.

◆ SetLowThreshold()

void pcl::ThresholdedTransformation::SetLowThreshold ( double  t)
inline

Sets the low threshold to the specified sample value t in the normalized real range.

Definition at line 132 of file ThresholdedTransformation.h.


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