ATTPCROOT  0.3.0-alpha
A ROOT-based framework for analyzing data from active target detectors
Classes | Typedefs | Functions
mst Namespace Reference

Classes

struct  edge
 
struct  state
 

Typedefs

typedef float(* MstMetric) (pcl::PointXYZI const &, pcl::PointXYZI const &, size_t, size_t, pcl::PointCloud< pcl::PointXYZI >::ConstPtr)
 
typedef bool(* MstFilter) (pcl::PointCloud< pcl::PointXYZI >::ConstPtr, edge const &, std::vector< edge > const &, std::vector< size_t > const &)
 

Functions

std::vector< edgecalculateSquareDistances (pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud, MstMetric metric)
 
std::vector< statecalculateMinimumSpanningTree (pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud, MstMetric metric, MstFilter filter)
 
float defaultMstMetric (pcl::PointXYZI const &pointA, pcl::PointXYZI const &pointB, size_t indexA, size_t indexB, pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud)
 
bool defaultMstFilter (pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud, edge const &edgeV, std::vector< edge > const &selecetedEdges, std::vector< size_t > const &groups)
 

Typedef Documentation

◆ MstFilter

typedef bool(* mst::MstFilter) (pcl::PointCloud< pcl::PointXYZI >::ConstPtr, edge const &, std::vector< edge > const &, std::vector< size_t > const &)

Definition at line 21 of file mst.h.

◆ MstMetric

typedef float(* mst::MstMetric) (pcl::PointXYZI const &, pcl::PointXYZI const &, size_t, size_t, pcl::PointCloud< pcl::PointXYZI >::ConstPtr)

Definition at line 19 of file mst.h.

Function Documentation

◆ calculateMinimumSpanningTree()

std::vector< state > mst::calculateMinimumSpanningTree ( pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud,
MstMetric  metric,
MstFilter  filter 
)

Definition at line 38 of file mst.cpp.

◆ calculateSquareDistances()

std::vector< edge > mst::calculateSquareDistances ( pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud,
MstMetric  metric 
)

Definition at line 7 of file mst.cpp.

◆ defaultMstFilter()

bool mst::defaultMstFilter ( pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud,
edge const &  edgeV,
std::vector< edge > const &  selecetedEdges,
std::vector< size_t > const &  groups 
)
inline

Definition at line 32 of file mst.h.

◆ defaultMstMetric()

float mst::defaultMstMetric ( pcl::PointXYZI const &  pointA,
pcl::PointXYZI const &  pointB,
size_t  indexA,
size_t  indexB,
pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud 
)
inline

Definition at line 24 of file mst.h.