#include <color_histogram_matcher.h>
Public Types | |
enum | ComparePolicy { USE_HUE, USE_SATURATION, USE_VALUE, USE_HUE_AND_SATURATION } |
typedef ColorHistogramMatcherConfig | Config |
typedef message_filters::sync_policies::ExactTime < sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > | SyncPolicy |
Protected Member Functions | |
virtual double | bhattacharyyaCoefficient (const std::vector< float > &a, const std::vector< float > &b) |
virtual void | computeHistogram (const pcl::PointCloud< pcl::PointXYZHSV > &cloud, std::vector< float > &output, const ComparePolicy policy) |
virtual void | configCallback (Config &config, uint32_t level) |
virtual void | feature (const sensor_msgs::PointCloud2::ConstPtr &input_cloud, const jsk_recognition_msgs::ClusterPointIndices::ConstPtr &input_indices) |
virtual void | onInit () |
virtual void | reference (const sensor_msgs::PointCloud2::ConstPtr &input_cloud) |
virtual void | referenceHistogram (const jsk_recognition_msgs::ColorHistogram::ConstPtr &input_histogram) |
virtual void | subscribe () |
virtual void | unsubscribe () |
Protected Attributes | |
ros::Publisher | all_histogram_pub_ |
ros::Publisher | best_pub_ |
int | bin_size_ |
ros::Publisher | coefficient_points_pub_ |
double | coefficient_thr_ |
double | color_max_coefficient_ |
double | color_min_coefficient_ |
boost::mutex | mutex_ |
ComparePolicy | policy_ |
int | power_ |
bool | publish_colored_cloud_ |
std::vector< float > | reference_histogram_ |
ros::Publisher | reference_histogram_pub_ |
ros::Subscriber | reference_histogram_sub_ |
bool | reference_set_ |
ros::Subscriber | reference_sub_ |
ros::Publisher | result_pub_ |
int | show_method_ |
boost::shared_ptr < dynamic_reconfigure::Server < Config > > | srv_ |
message_filters::Subscriber < jsk_recognition_msgs::ClusterPointIndices > | sub_indices_ |
message_filters::Subscriber < sensor_msgs::PointCloud2 > | sub_input_ |
boost::shared_ptr < message_filters::Synchronizer < SyncPolicy > > | sync_ |
Definition at line 57 of file color_histogram_matcher.h.
typedef ColorHistogramMatcherConfig jsk_pcl_ros::ColorHistogramMatcher::Config |
Definition at line 62 of file color_histogram_matcher.h.
typedef message_filters::sync_policies::ExactTime< sensor_msgs::PointCloud2, jsk_recognition_msgs::ClusterPointIndices > jsk_pcl_ros::ColorHistogramMatcher::SyncPolicy |
Definition at line 61 of file color_histogram_matcher.h.
Definition at line 63 of file color_histogram_matcher.h.
double jsk_pcl_ros::ColorHistogramMatcher::bhattacharyyaCoefficient | ( | const std::vector< float > & | a, |
const std::vector< float > & | b | ||
) | [protected, virtual] |
Definition at line 284 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::computeHistogram | ( | const pcl::PointCloud< pcl::PointXYZHSV > & | cloud, |
std::vector< float > & | output, | ||
const ComparePolicy | policy | ||
) | [protected, virtual] |
Definition at line 297 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::configCallback | ( | Config & | config, |
uint32_t | level | ||
) | [protected, virtual] |
Definition at line 101 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::feature | ( | const sensor_msgs::PointCloud2::ConstPtr & | input_cloud, |
const jsk_recognition_msgs::ClusterPointIndices::ConstPtr & | input_indices | ||
) | [protected, virtual] |
Definition at line 136 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::onInit | ( | void | ) | [protected, virtual] |
Reimplemented from jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 51 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::reference | ( | const sensor_msgs::PointCloud2::ConstPtr & | input_cloud | ) | [protected, virtual] |
Definition at line 361 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::referenceHistogram | ( | const jsk_recognition_msgs::ColorHistogram::ConstPtr & | input_histogram | ) | [protected, virtual] |
Definition at line 380 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::subscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 76 of file color_histogram_matcher_nodelet.cpp.
void jsk_pcl_ros::ColorHistogramMatcher::unsubscribe | ( | ) | [protected, virtual] |
Implements jsk_topic_tools::ConnectionBasedNodelet.
Definition at line 93 of file color_histogram_matcher_nodelet.cpp.
Definition at line 94 of file color_histogram_matcher.h.
Definition at line 96 of file color_histogram_matcher.h.
int jsk_pcl_ros::ColorHistogramMatcher::bin_size_ [protected] |
Definition at line 101 of file color_histogram_matcher.h.
Definition at line 97 of file color_histogram_matcher.h.
double jsk_pcl_ros::ColorHistogramMatcher::coefficient_thr_ [protected] |
Definition at line 100 of file color_histogram_matcher.h.
double jsk_pcl_ros::ColorHistogramMatcher::color_max_coefficient_ [protected] |
Definition at line 105 of file color_histogram_matcher.h.
double jsk_pcl_ros::ColorHistogramMatcher::color_min_coefficient_ [protected] |
Definition at line 104 of file color_histogram_matcher.h.
Definition at line 86 of file color_histogram_matcher.h.
Definition at line 108 of file color_histogram_matcher.h.
int jsk_pcl_ros::ColorHistogramMatcher::power_ [protected] |
Definition at line 103 of file color_histogram_matcher.h.
bool jsk_pcl_ros::ColorHistogramMatcher::publish_colored_cloud_ [protected] |
Definition at line 102 of file color_histogram_matcher.h.
std::vector<float> jsk_pcl_ros::ColorHistogramMatcher::reference_histogram_ [protected] |
Definition at line 98 of file color_histogram_matcher.h.
Definition at line 95 of file color_histogram_matcher.h.
Definition at line 92 of file color_histogram_matcher.h.
bool jsk_pcl_ros::ColorHistogramMatcher::reference_set_ [protected] |
Definition at line 99 of file color_histogram_matcher.h.
Definition at line 91 of file color_histogram_matcher.h.
Definition at line 93 of file color_histogram_matcher.h.
int jsk_pcl_ros::ColorHistogramMatcher::show_method_ [protected] |
Definition at line 106 of file color_histogram_matcher.h.
boost::shared_ptr<dynamic_reconfigure::Server<Config> > jsk_pcl_ros::ColorHistogramMatcher::srv_ [protected] |
Definition at line 87 of file color_histogram_matcher.h.
message_filters::Subscriber<jsk_recognition_msgs::ClusterPointIndices> jsk_pcl_ros::ColorHistogramMatcher::sub_indices_ [protected] |
Definition at line 89 of file color_histogram_matcher.h.
message_filters::Subscriber<sensor_msgs::PointCloud2> jsk_pcl_ros::ColorHistogramMatcher::sub_input_ [protected] |
Definition at line 88 of file color_histogram_matcher.h.
boost::shared_ptr<message_filters::Synchronizer<SyncPolicy> > jsk_pcl_ros::ColorHistogramMatcher::sync_ [protected] |
Definition at line 90 of file color_histogram_matcher.h.