Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
jsk_perception::ColorHistogram Class Reference

#include <color_histogram.h>

Inheritance diagram for jsk_perception::ColorHistogram:
Inheritance graph
[legend]

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 ()
 
virtual ~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 cv::Mat &mask, const std_msgs::Header &header)
 
virtual void processBGR (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 processHSI (const cv::Mat &bgr_image, 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::ImageTransportit_
 
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 88 of file color_histogram.h.

Member Typedef Documentation

◆ Config

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

Definition at line 130 of file color_histogram.h.

◆ MaskSyncPolicy

Definition at line 129 of file color_histogram.h.

◆ SyncPolicy

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

Definition at line 125 of file color_histogram.h.

Constructor & Destructor Documentation

◆ ColorHistogram()

jsk_perception::ColorHistogram::ColorHistogram ( )
inline

Definition at line 131 of file color_histogram.h.

◆ ~ColorHistogram()

jsk_perception::ColorHistogram::~ColorHistogram ( )
virtual

Definition at line 85 of file color_histogram.cpp.

Member Function Documentation

◆ configCallback()

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

Definition at line 73 of file color_histogram.cpp.

◆ convertHistogramToMsg()

void jsk_perception::ColorHistogram::convertHistogramToMsg ( const cv::Mat &  hist,
int  size,
jsk_recognition_msgs::ColorHistogram &  msg 
)
protectedvirtual

Definition at line 167 of file color_histogram.cpp.

◆ extract()

void jsk_perception::ColorHistogram::extract ( const sensor_msgs::Image::ConstPtr &  image,
const geometry_msgs::PolygonStamped::ConstPtr &  rectangle 
)
protectedvirtual

Definition at line 264 of file color_histogram.cpp.

◆ extractMask()

void jsk_perception::ColorHistogram::extractMask ( const sensor_msgs::Image::ConstPtr &  image,
const sensor_msgs::Image::ConstPtr &  mask_image 
)
protectedvirtual

Definition at line 303 of file color_histogram.cpp.

◆ onInit()

void jsk_perception::ColorHistogram::onInit ( )
protectedvirtual

Definition at line 97 of file color_histogram.cpp.

◆ processBGR() [1/2]

void jsk_perception::ColorHistogram::processBGR ( const cv::Mat &  bgr_image,
const cv::Mat &  mask,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 178 of file color_histogram.cpp.

◆ processBGR() [2/2]

void jsk_perception::ColorHistogram::processBGR ( const cv::Mat &  bgr_image,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 212 of file color_histogram.cpp.

◆ processHSI() [1/2]

void jsk_perception::ColorHistogram::processHSI ( const cv::Mat &  bgr_image,
const cv::Mat &  mask,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 224 of file color_histogram.cpp.

◆ processHSI() [2/2]

void jsk_perception::ColorHistogram::processHSI ( const cv::Mat &  bgr_image,
const std_msgs::Header header 
)
protectedvirtual

Definition at line 218 of file color_histogram.cpp.

◆ subscribe()

void jsk_perception::ColorHistogram::subscribe ( )
protectedvirtual

Definition at line 125 of file color_histogram.cpp.

◆ unsubscribe()

void jsk_perception::ColorHistogram::unsubscribe ( )
protectedvirtual

Definition at line 155 of file color_histogram.cpp.

Member Data Documentation

◆ b_hist_pub_

ros::Publisher jsk_perception::ColorHistogram::b_hist_pub_
protected

Definition at line 142 of file color_histogram.h.

◆ b_hist_size_

int jsk_perception::ColorHistogram::b_hist_size_
protected

Definition at line 145 of file color_histogram.h.

◆ g_hist_pub_

ros::Publisher jsk_perception::ColorHistogram::g_hist_pub_
protected

Definition at line 142 of file color_histogram.h.

◆ g_hist_size_

int jsk_perception::ColorHistogram::g_hist_size_
protected

Definition at line 145 of file color_histogram.h.

◆ h_hist_pub_

ros::Publisher jsk_perception::ColorHistogram::h_hist_pub_
protected

Definition at line 143 of file color_histogram.h.

◆ h_hist_size_

int jsk_perception::ColorHistogram::h_hist_size_
protected

Definition at line 146 of file color_histogram.h.

◆ i_hist_pub_

ros::Publisher jsk_perception::ColorHistogram::i_hist_pub_
protected

Definition at line 143 of file color_histogram.h.

◆ i_hist_size_

int jsk_perception::ColorHistogram::i_hist_size_
protected

Definition at line 146 of file color_histogram.h.

◆ image_mask_sub_

image_transport::SubscriberFilter jsk_perception::ColorHistogram::image_mask_sub_
protected

Definition at line 138 of file color_histogram.h.

◆ image_pub_

ros::Publisher jsk_perception::ColorHistogram::image_pub_
protected

Definition at line 144 of file color_histogram.h.

◆ image_sub_

image_transport::SubscriberFilter jsk_perception::ColorHistogram::image_sub_
protected

Definition at line 137 of file color_histogram.h.

◆ it_

boost::shared_ptr<image_transport::ImageTransport> jsk_perception::ColorHistogram::it_
protected

Definition at line 141 of file color_histogram.h.

◆ mask_sync_

boost::shared_ptr<message_filters::Synchronizer<MaskSyncPolicy> > jsk_perception::ColorHistogram::mask_sync_
protected

Definition at line 135 of file color_histogram.h.

◆ mutex_

boost::mutex jsk_perception::ColorHistogram::mutex_
protected

Definition at line 148 of file color_histogram.h.

◆ nh_

ros::NodeHandle jsk_perception::ColorHistogram::nh_
protected

Definition at line 140 of file color_histogram.h.

◆ r_hist_pub_

ros::Publisher jsk_perception::ColorHistogram::r_hist_pub_
protected

Definition at line 142 of file color_histogram.h.

◆ r_hist_size_

int jsk_perception::ColorHistogram::r_hist_size_
protected

Definition at line 145 of file color_histogram.h.

◆ rectangle_sub_

message_filters::Subscriber<geometry_msgs::PolygonStamped> jsk_perception::ColorHistogram::rectangle_sub_
protected

Definition at line 139 of file color_histogram.h.

◆ s_hist_pub_

ros::Publisher jsk_perception::ColorHistogram::s_hist_pub_
protected

Definition at line 143 of file color_histogram.h.

◆ s_hist_size_

int jsk_perception::ColorHistogram::s_hist_size_
protected

Definition at line 146 of file color_histogram.h.

◆ srv_

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

Definition at line 136 of file color_histogram.h.

◆ sync_

boost::shared_ptr<message_filters::Synchronizer<SyncPolicy> > jsk_perception::ColorHistogram::sync_
protected

Definition at line 134 of file color_histogram.h.

◆ use_mask_

bool jsk_perception::ColorHistogram::use_mask_
protected

Definition at line 147 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 Fri May 16 2025 03:11:17