RGB Struct Reference

Squared Euclidean distance in RGB space. More...

#include <VisionX/libraries/PointCloudGraph/edge_weight_computer_terms.h>

Public Types

typedef pcl::traits::has_color< boost::mpl::_1 > is_compatible
 

Static Public Member Functions

template<typename PointT >
static float compute (const PointT &p1, const PointT &p2)
 

Detailed Description

Squared Euclidean distance in RGB space.

\[ d_{xyz}(v_i,v_j) = ||rgb_i-rgb_j||^2 \]

Requires that the point type has rgb or rgba field.

Author
Sergey Alexandrov

Definition at line 124 of file edge_weight_computer_terms.h.

Member Typedef Documentation

◆ is_compatible

typedef pcl::traits::has_color<boost::mpl::_1> is_compatible

Definition at line 126 of file edge_weight_computer_terms.h.

Member Function Documentation

◆ compute()

static float compute ( const PointT &  p1,
const PointT &  p2 
)
inlinestatic

Definition at line 129 of file edge_weight_computer_terms.h.


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