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

#include <color_histogram_label_match.h>

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

Public Types

typedef ColorHistogramLabelMatchConfig Config
 
typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::Image > SyncPolicy
 
typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image > SyncPolicyWithoutMask
 
- Public Types inherited from jsk_topic_tools::DiagnosticNodelet
typedef boost::shared_ptr< DiagnosticNodeletPtr
 

Public Member Functions

 ColorHistogramLabelMatch ()
 
- Public Member Functions inherited from jsk_topic_tools::DiagnosticNodelet
 DiagnosticNodelet (const std::string &name)
 
- Public Member Functions inherited from jsk_topic_tools::ConnectionBasedNodelet
 ConnectionBasedNodelet ()
 
- Public Member Functions inherited from nodelet::Nodelet
void init (const std::string &name, const M_string &remapping_args, const V_string &my_argv, ros::CallbackQueueInterface *st_queue=NULL, ros::CallbackQueueInterface *mt_queue=NULL)
 
 Nodelet ()
 
virtual ~Nodelet ()
 

Protected Member Functions

virtual double coefficients (const cv::Mat &ref_hist, const cv::Mat &target_hist)
 
virtual void configCallback (Config &config, uint32_t level)
 
virtual void getLabels (const cv::Mat &label, std::vector< int > &labels)
 
virtual void getMaskImage (const cv::Mat &label_image, const int label, cv::Mat &mask)
 
virtual void histogramCallback (const jsk_recognition_msgs::ColorHistogram::ConstPtr &histogram_msg)
 
virtual bool isMasked (const cv::Mat &original_image, const cv::Mat &masked_image)
 
virtual void match (const sensor_msgs::Image::ConstPtr &image_msg, const sensor_msgs::Image::ConstPtr &label_msg, const sensor_msgs::Image::ConstPtr &mask_msg)
 
virtual void match (const sensor_msgs::Image::ConstPtr &image_msg, const sensor_msgs::Image::ConstPtr &label_msg)
 
virtual void onInit ()
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
- Protected Member Functions inherited from jsk_topic_tools::DiagnosticNodelet
virtual void updateDiagnostic (diagnostic_updater::DiagnosticStatusWrapper &stat)
 
- Protected Member Functions inherited from jsk_topic_tools::ConnectionBasedNodelet
ros::Publisher advertise (ros::NodeHandle &nh, std::string topic, int queue_size)
 
image_transport::CameraPublisher advertiseCamera (ros::NodeHandle &nh, image_transport::ImageTransport &it, const std::string &topic, int queue_size)
 
image_transport::CameraPublisher advertiseCamera (ros::NodeHandle &nh, const std::string &topic, int queue_size)
 
image_transport::Publisher advertiseImage (ros::NodeHandle &nh, image_transport::ImageTransport &it, const std::string &topic, int queue_size)
 
image_transport::Publisher advertiseImage (ros::NodeHandle &nh, const std::string &topic, int queue_size)
 
virtual void cameraConnectionBaseCallback ()
 
virtual void cameraConnectionCallback (const image_transport::SingleSubscriberPublisher &pub)
 
virtual void cameraInfoConnectionCallback (const ros::SingleSubscriberPublisher &pub)
 
virtual void connectionCallback (const ros::SingleSubscriberPublisher &pub)
 
virtual void imageConnectionCallback (const image_transport::SingleSubscriberPublisher &pub)
 
virtual bool isSubscribed ()
 
virtual void onInitPostProcess ()
 
virtual void warnNeverSubscribedCallback (const ros::WallTimerEvent &event)
 
virtual void warnOnInitPostProcessCalledCallback (const ros::WallTimerEvent &event)
 
- Protected Member Functions inherited from nodelet::Nodelet
ros::CallbackQueueInterfacegetMTCallbackQueue () const
 
ros::NodeHandlegetMTNodeHandle () const
 
ros::NodeHandlegetMTPrivateNodeHandle () const
 
const V_stringgetMyArgv () const
 
const std::stringgetName () const
 
ros::NodeHandlegetNodeHandle () const
 
ros::NodeHandlegetPrivateNodeHandle () const
 
const M_stringgetRemappingArgs () const
 
ros::CallbackQueueInterfacegetSTCallbackQueue () const
 
std::string getSuffixedName (const std::string &suffix) const
 

Protected Attributes

float coef_threshold_
 
int coefficient_method_
 
cv::Mat histogram_
 
float masked_coefficient_
 
float max_value_
 
float min_value_
 
boost::mutex mutex_
 
ros::Publisher pub_coefficient_image_
 
ros::Publisher pub_debug_
 
ros::Publisher pub_mask_
 
ros::Publisher pub_result_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
ros::Subscriber sub_histogram_
 
message_filters::Subscriber< sensor_msgs::Image > sub_image_
 
message_filters::Subscriber< sensor_msgs::Image > sub_label_
 
message_filters::Subscriber< sensor_msgs::Image > sub_mask_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicyWithoutMask > > sync_wo_mask_
 
int threshold_method_
 
bool use_mask_
 
- Protected Attributes inherited from jsk_topic_tools::DiagnosticNodelet
TimeredDiagnosticUpdater::Ptr diagnostic_updater_
 
const std::string name_
 
jsk_topic_tools::VitalChecker::Ptr vital_checker_
 
- Protected Attributes inherited from jsk_topic_tools::ConnectionBasedNodelet
bool always_subscribe_
 
std::vector< image_transport::CameraPublishercamera_publishers_
 
boost::mutex connection_mutex_
 
ConnectionStatus connection_status_
 
bool ever_subscribed_
 
std::vector< image_transport::Publisherimage_publishers_
 
boost::shared_ptr< ros::NodeHandlenh_
 
bool on_init_post_process_called_
 
boost::shared_ptr< ros::NodeHandlepnh_
 
std::vector< ros::Publisherpublishers_
 
bool subscribed_
 
ros::WallTimer timer_warn_never_subscribed_
 
ros::WallTimer timer_warn_on_init_post_process_called_
 
bool verbose_connection_
 

Detailed Description

Definition at line 56 of file color_histogram_label_match.h.

Member Typedef Documentation

typedef ColorHistogramLabelMatchConfig jsk_perception::ColorHistogramLabelMatch::Config

Definition at line 59 of file color_histogram_label_match.h.

typedef message_filters::sync_policies::ApproximateTime< sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::Image > jsk_perception::ColorHistogramLabelMatch::SyncPolicy

Definition at line 65 of file color_histogram_label_match.h.

Definition at line 69 of file color_histogram_label_match.h.

Constructor & Destructor Documentation

jsk_perception::ColorHistogramLabelMatch::ColorHistogramLabelMatch ( )
inline

Definition at line 71 of file color_histogram_label_match.h.

Member Function Documentation

double jsk_perception::ColorHistogramLabelMatch::coefficients ( const cv::Mat &  ref_hist,
const cv::Mat &  target_hist 
)
protectedvirtual

Definition at line 289 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::configCallback ( Config config,
uint32_t  level 
)
protectedvirtual

Definition at line 344 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::getLabels ( const cv::Mat &  label,
std::vector< int > &  labels 
)
protectedvirtual

Definition at line 100 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::getMaskImage ( const cv::Mat &  label_image,
const int  label,
cv::Mat &  mask 
)
protectedvirtual

Definition at line 120 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::histogramCallback ( const jsk_recognition_msgs::ColorHistogram::ConstPtr &  histogram_msg)
protectedvirtual

Definition at line 331 of file color_histogram_label_match.cpp.

bool jsk_perception::ColorHistogramLabelMatch::isMasked ( const cv::Mat &  original_image,
const cv::Mat &  masked_image 
)
protectedvirtual

Definition at line 133 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::match ( const sensor_msgs::Image::ConstPtr &  image_msg,
const sensor_msgs::Image::ConstPtr &  label_msg,
const sensor_msgs::Image::ConstPtr &  mask_msg 
)
protectedvirtual

Definition at line 166 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::match ( const sensor_msgs::Image::ConstPtr &  image_msg,
const sensor_msgs::Image::ConstPtr &  label_msg 
)
protectedvirtual

Definition at line 152 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::onInit ( )
protectedvirtual

Reimplemented from jsk_topic_tools::DiagnosticNodelet.

Definition at line 45 of file color_histogram_label_match.cpp.

void jsk_perception::ColorHistogramLabelMatch::subscribe ( )
protectedvirtual
void jsk_perception::ColorHistogramLabelMatch::unsubscribe ( )
protectedvirtual

Member Data Documentation

float jsk_perception::ColorHistogramLabelMatch::coef_threshold_
protected

Definition at line 97 of file color_histogram_label_match.h.

int jsk_perception::ColorHistogramLabelMatch::coefficient_method_
protected

Definition at line 108 of file color_histogram_label_match.h.

cv::Mat jsk_perception::ColorHistogramLabelMatch::histogram_
protected

Definition at line 110 of file color_histogram_label_match.h.

float jsk_perception::ColorHistogramLabelMatch::masked_coefficient_
protected

Definition at line 98 of file color_histogram_label_match.h.

float jsk_perception::ColorHistogramLabelMatch::max_value_
protected

Definition at line 95 of file color_histogram_label_match.h.

float jsk_perception::ColorHistogramLabelMatch::min_value_
protected

Definition at line 96 of file color_histogram_label_match.h.

boost::mutex jsk_perception::ColorHistogramLabelMatch::mutex_
protected

Definition at line 101 of file color_histogram_label_match.h.

ros::Publisher jsk_perception::ColorHistogramLabelMatch::pub_coefficient_image_
protected

Definition at line 112 of file color_histogram_label_match.h.

ros::Publisher jsk_perception::ColorHistogramLabelMatch::pub_debug_
protected

Definition at line 111 of file color_histogram_label_match.h.

ros::Publisher jsk_perception::ColorHistogramLabelMatch::pub_mask_
protected

Definition at line 113 of file color_histogram_label_match.h.

ros::Publisher jsk_perception::ColorHistogramLabelMatch::pub_result_
protected

Definition at line 114 of file color_histogram_label_match.h.

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

Definition at line 102 of file color_histogram_label_match.h.

ros::Subscriber jsk_perception::ColorHistogramLabelMatch::sub_histogram_
protected

Definition at line 109 of file color_histogram_label_match.h.

message_filters::Subscriber<sensor_msgs::Image> jsk_perception::ColorHistogramLabelMatch::sub_image_
protected

Definition at line 105 of file color_histogram_label_match.h.

message_filters::Subscriber<sensor_msgs::Image> jsk_perception::ColorHistogramLabelMatch::sub_label_
protected

Definition at line 106 of file color_histogram_label_match.h.

message_filters::Subscriber<sensor_msgs::Image> jsk_perception::ColorHistogramLabelMatch::sub_mask_
protected

Definition at line 107 of file color_histogram_label_match.h.

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

Definition at line 103 of file color_histogram_label_match.h.

boost::shared_ptr<message_filters::Synchronizer<SyncPolicyWithoutMask> > jsk_perception::ColorHistogramLabelMatch::sync_wo_mask_
protected

Definition at line 104 of file color_histogram_label_match.h.

int jsk_perception::ColorHistogramLabelMatch::threshold_method_
protected

Definition at line 99 of file color_histogram_label_match.h.

bool jsk_perception::ColorHistogramLabelMatch::use_mask_
protected

Definition at line 100 of file color_histogram_label_match.h.


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


jsk_perception
Author(s): Manabu Saito, Ryohei Ueda
autogenerated on Mon May 3 2021 03:03:27