Public Types | Public Member Functions | Protected Member Functions | Protected Attributes
jsk_perception::ColorHistogram Class Reference

#include <color_histogram.h>

List of all members.

Public Types

typedef
jsk_perception::ColorHistogramConfig 
Config
typedef
message_filters::sync_policies::ApproximateTime
< sensor_msgs::Image,
sensor_msgs::Image > 
MaskSyncPolicy
typedef
message_filters::sync_policies::ApproximateTime
< sensor_msgs::Image,
geometry_msgs::PolygonStamped > 
SyncPolicy

Public Member Functions

 ColorHistogram ()

Protected Member Functions

void configCallback (Config &new_config, uint32_t level)
virtual void convertHistogramToMsg (const cv::Mat &hist, int size, jsk_recognition_msgs::ColorHistogram &msg)
virtual void extract (const sensor_msgs::Image::ConstPtr &image, const geometry_msgs::PolygonStamped::ConstPtr &rectangle)
virtual void extractMask (const sensor_msgs::Image::ConstPtr &image, const sensor_msgs::Image::ConstPtr &mask_image)
virtual void onInit ()
virtual void processBGR (const cv::Mat &bgr_image, const std_msgs::Header &header)
virtual void processBGR (const cv::Mat &bgr_image, const cv::Mat &mask, const std_msgs::Header &header)
virtual void processHSI (const cv::Mat &bgr_image, const std_msgs::Header &header)
virtual void processHSI (const cv::Mat &bgr_image, const cv::Mat &mask, const std_msgs::Header &header)
virtual void subscribe ()
virtual void unsubscribe ()

Protected Attributes

ros::Publisher b_hist_pub_
int b_hist_size_
ros::Publisher g_hist_pub_
int g_hist_size_
ros::Publisher h_hist_pub_
int h_hist_size_
ros::Publisher i_hist_pub_
int i_hist_size_
image_transport::SubscriberFilter image_mask_sub_
ros::Publisher image_pub_
image_transport::SubscriberFilter image_sub_
boost::shared_ptr
< image_transport::ImageTransport
it_
boost::shared_ptr
< message_filters::Synchronizer
< MaskSyncPolicy > > 
mask_sync_
boost::mutex mutex_
ros::NodeHandle nh_
ros::Publisher r_hist_pub_
int r_hist_size_
message_filters::Subscriber
< geometry_msgs::PolygonStamped > 
rectangle_sub_
ros::Publisher s_hist_pub_
int s_hist_size_
boost::shared_ptr
< dynamic_reconfigure::Server
< Config > > 
srv_
boost::shared_ptr
< message_filters::Synchronizer
< SyncPolicy > > 
sync_
bool use_mask_

Detailed Description

Definition at line 56 of file color_histogram.h.


Member Typedef Documentation

typedef jsk_perception::ColorHistogramConfig jsk_perception::ColorHistogram::Config

Definition at line 66 of file color_histogram.h.

Definition at line 65 of file color_histogram.h.

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, geometry_msgs::PolygonStamped > jsk_perception::ColorHistogram::SyncPolicy

Definition at line 61 of file color_histogram.h.


Constructor & Destructor Documentation

Definition at line 67 of file color_histogram.h.


Member Function Documentation

void jsk_perception::ColorHistogram::configCallback ( Config new_config,
uint32_t  level 
) [protected]

Definition at line 41 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::convertHistogramToMsg ( const cv::Mat &  hist,
int  size,
jsk_recognition_msgs::ColorHistogram &  msg 
) [protected, virtual]

Definition at line 123 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::extract ( const sensor_msgs::Image::ConstPtr &  image,
const geometry_msgs::PolygonStamped::ConstPtr &  rectangle 
) [protected, virtual]

Definition at line 220 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::extractMask ( const sensor_msgs::Image::ConstPtr &  image,
const sensor_msgs::Image::ConstPtr &  mask_image 
) [protected, virtual]

Definition at line 259 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::onInit ( ) [protected, virtual]

Definition at line 53 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processBGR ( const cv::Mat &  bgr_image,
const std_msgs::Header header 
) [protected, virtual]

Definition at line 168 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processBGR ( const cv::Mat &  bgr_image,
const cv::Mat &  mask,
const std_msgs::Header header 
) [protected, virtual]

Definition at line 134 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processHSI ( const cv::Mat &  bgr_image,
const std_msgs::Header header 
) [protected, virtual]

Definition at line 174 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::processHSI ( const cv::Mat &  bgr_image,
const cv::Mat &  mask,
const std_msgs::Header header 
) [protected, virtual]

Definition at line 180 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::subscribe ( ) [protected, virtual]

Definition at line 81 of file color_histogram.cpp.

void jsk_perception::ColorHistogram::unsubscribe ( ) [protected, virtual]

Definition at line 111 of file color_histogram.cpp.


Member Data Documentation

Definition at line 77 of file color_histogram.h.

Definition at line 80 of file color_histogram.h.

Definition at line 77 of file color_histogram.h.

Definition at line 80 of file color_histogram.h.

Definition at line 77 of file color_histogram.h.

Definition at line 80 of file color_histogram.h.

Definition at line 77 of file color_histogram.h.

Definition at line 80 of file color_histogram.h.

Definition at line 73 of file color_histogram.h.

Definition at line 79 of file color_histogram.h.

Definition at line 72 of file color_histogram.h.

Definition at line 76 of file color_histogram.h.

Definition at line 70 of file color_histogram.h.

boost::mutex jsk_perception::ColorHistogram::mutex_ [protected]

Definition at line 83 of file color_histogram.h.

Definition at line 75 of file color_histogram.h.

Definition at line 77 of file color_histogram.h.

Definition at line 80 of file color_histogram.h.

Definition at line 74 of file color_histogram.h.

Definition at line 77 of file color_histogram.h.

Definition at line 80 of file color_histogram.h.

boost::shared_ptr<dynamic_reconfigure::Server<Config> > jsk_perception::ColorHistogram::srv_ [protected]

Definition at line 71 of file color_histogram.h.

Definition at line 69 of file color_histogram.h.

Definition at line 82 of file color_histogram.h.


The documentation for this class was generated from the following files:


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Tue Jul 2 2019 19:41:08