Point Cloud Library (PCL)  1.14.1-dev
List of all members | Public Member Functions | Public Attributes
pcl::QuantizedMultiModFeature Struct Reference

Feature that defines a position and quantized value in a specific modality. More...

#include <pcl/recognition/sparse_quantized_multi_mod_template.h>

Public Member Functions

 QuantizedMultiModFeature ()=default
 Constructor. More...
 
bool compareForEquality (const QuantizedMultiModFeature &base) const
 Compares whether two features are the same. More...
 
void serialize (std::ostream &stream) const
 Serializes the object to the specified stream. More...
 
void deserialize (std::istream &stream)
 Deserializes the object from the specified stream. More...
 

Public Attributes

int x {0}
 x-position. More...
 
int y {0}
 y-position. More...
 
std::size_t modality_index {0u}
 the index of the corresponding modality. More...
 
unsigned char quantized_value {0u}
 the quantized value attached to the feature. More...
 

Detailed Description

Feature that defines a position and quantized value in a specific modality.

Author
Stefan Holzer

Definition at line 50 of file sparse_quantized_multi_mod_template.h.

Constructor & Destructor Documentation

◆ QuantizedMultiModFeature()

pcl::QuantizedMultiModFeature::QuantizedMultiModFeature ( )
default

Constructor.

Member Function Documentation

◆ compareForEquality()

bool pcl::QuantizedMultiModFeature::compareForEquality ( const QuantizedMultiModFeature base) const
inline

Compares whether two features are the same.

Parameters
[in]basethe feature to compare to.

Definition at line 68 of file sparse_quantized_multi_mod_template.h.

References modality_index, quantized_value, x, and y.

◆ deserialize()

void pcl::QuantizedMultiModFeature::deserialize ( std::istream &  stream)
inline

Deserializes the object from the specified stream.

Parameters
[in]streamthe stream the object will be deserialized from.

Definition at line 96 of file sparse_quantized_multi_mod_template.h.

References modality_index, quantized_value, pcl::read(), x, and y.

◆ serialize()

void pcl::QuantizedMultiModFeature::serialize ( std::ostream &  stream) const
inline

Serializes the object to the specified stream.

Parameters
[out]streamthe stream the object will be serialized to.

Definition at line 85 of file sparse_quantized_multi_mod_template.h.

References modality_index, quantized_value, pcl::write(), x, and y.

Member Data Documentation

◆ modality_index

std::size_t pcl::QuantizedMultiModFeature::modality_index {0u}

◆ quantized_value

unsigned char pcl::QuantizedMultiModFeature::quantized_value {0u}

◆ x

int pcl::QuantizedMultiModFeature::x {0}

◆ y

int pcl::QuantizedMultiModFeature::y {0}

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