38 #include <geometry_msgs/PolygonStamped.h> 39 #include <jsk_recognition_msgs/ColorHistogram.h> 48 #include <dynamic_reconfigure/server.h> 49 #include <jsk_perception/ColorHistogramConfig.h> 50 #include "opencv2/highgui/highgui.hpp" 51 #include "opencv2/imgproc/imgproc.hpp" 66 typedef jsk_perception::ColorHistogramConfig
Config;
92 jsk_recognition_msgs::ColorHistogram& msg);
93 virtual void processBGR(
const cv::Mat& bgr_image,
94 const std_msgs::Header& header);
95 virtual void processHSI(
const cv::Mat& bgr_image,
96 const std_msgs::Header& header);
97 virtual void processBGR(
const cv::Mat& bgr_image,
99 const std_msgs::Header& header);
100 virtual void processHSI(
const cv::Mat& bgr_image,
102 const std_msgs::Header& header);
104 const sensor_msgs::Image::ConstPtr& image,
105 const geometry_msgs::PolygonStamped::ConstPtr& rectangle);
107 const sensor_msgs::Image::ConstPtr& image,
108 const sensor_msgs::Image::ConstPtr& mask_image);
image_transport::SubscriberFilter image_sub_
message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, geometry_msgs::PolygonStamped > SyncPolicy
ros::Publisher i_hist_pub_
ros::Publisher s_hist_pub_
virtual void unsubscribe()
boost::shared_ptr< message_filters::Synchronizer< MaskSyncPolicy > > mask_sync_
ros::Publisher h_hist_pub_
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
message_filters::Subscriber< geometry_msgs::PolygonStamped > rectangle_sub_
ros::Publisher b_hist_pub_
virtual void convertHistogramToMsg(const cv::Mat &hist, int size, jsk_recognition_msgs::ColorHistogram &msg)
virtual void processBGR(const cv::Mat &bgr_image, const std_msgs::Header &header)
ros::Publisher r_hist_pub_
virtual void extract(const sensor_msgs::Image::ConstPtr &image, const geometry_msgs::PolygonStamped::ConstPtr &rectangle)
jsk_perception::ColorHistogramConfig Config
ros::Publisher g_hist_pub_
image_transport::SubscriberFilter image_mask_sub_
virtual void processHSI(const cv::Mat &bgr_image, const std_msgs::Header &header)
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image > MaskSyncPolicy
ros::Publisher image_pub_
virtual void extractMask(const sensor_msgs::Image::ConstPtr &image, const sensor_msgs::Image::ConstPtr &mask_image)
boost::shared_ptr< image_transport::ImageTransport > it_
void configCallback(Config &new_config, uint32_t level)