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

Classes

struct  cluster_group
 
struct  cluster_history
 
class  ScaleTripletMetric
 
struct  triplet
 

Typedefs

typedef std::vector< size_t > cluster
 
typedef float(* ClusterMetric) (cluster const &lhs, cluster const &rhs, Eigen::MatrixXf const &d, pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud)
 

Functions

std::vector< tripletgenerateTriplets (pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud, size_t k, size_t n, float a)
 
double * calculate_distance_matrix (pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud, std::vector< triplet > const &triplets, ScaleTripletMetric triplet_metric)
 
cluster_group compute_hc (pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud, std::vector< triplet > const &triplets, ScaleTripletMetric triplet_metric, float t, int opt_verbose)
 
cluster_group cleanupClusterGroup (cluster_group const &clusterGroup, size_t m)
 
Cluster toCluster (std::vector< hc::triplet > const &triplets, hc::cluster_group const &clusterGroup, size_t pointIndexCount)
 
float singleLinkClusterMetric (cluster const &lhs, cluster const &rhs, Eigen::MatrixXf const &d, pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud)
 
float completeLinkClusterMetric (cluster const &lhs, cluster const &rhs, Eigen::MatrixXf const &d, pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud)
 

Typedef Documentation

◆ cluster

typedef std::vector<size_t> hc::cluster

Definition at line 25 of file hc.h.

◆ ClusterMetric

typedef float(* hc::ClusterMetric) (cluster const &lhs, cluster const &rhs, Eigen::MatrixXf const &d, pcl::PointCloud< pcl::PointXYZI >::ConstPtr cloud)

Definition at line 45 of file hc.h.

Function Documentation

◆ calculate_distance_matrix()

double* hc::calculate_distance_matrix ( pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud,
std::vector< triplet > const &  triplets,
ScaleTripletMetric  triplet_metric 
)

Definition at line 111 of file hc.cxx.

◆ cleanupClusterGroup()

cluster_group hc::cleanupClusterGroup ( cluster_group const &  clusterGroup,
size_t  m 
)

Definition at line 203 of file hc.cxx.

◆ completeLinkClusterMetric()

float hc::completeLinkClusterMetric ( cluster const &  lhs,
cluster const &  rhs,
Eigen::MatrixXf const &  d,
pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud 
)
inline

Definition at line 65 of file hc.h.

◆ compute_hc()

cluster_group hc::compute_hc ( pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud,
std::vector< triplet > const &  triplets,
ScaleTripletMetric  triplet_metric,
float  t,
int  opt_verbose 
)

Definition at line 139 of file hc.cxx.

◆ generateTriplets()

std::vector< triplet > hc::generateTriplets ( pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud,
size_t  k,
size_t  n,
float  a 
)

Definition at line 22 of file hc.cxx.

◆ singleLinkClusterMetric()

float hc::singleLinkClusterMetric ( cluster const &  lhs,
cluster const &  rhs,
Eigen::MatrixXf const &  d,
pcl::PointCloud< pcl::PointXYZI >::ConstPtr  cloud 
)
inline

Definition at line 48 of file hc.h.

◆ toCluster()

Cluster hc::toCluster ( std::vector< hc::triplet > const &  triplets,
hc::cluster_group const &  clusterGroup,
size_t  pointIndexCount 
)

Definition at line 216 of file hc.cxx.