37 #ifndef JSK_PERCEPTION_GRABCUT_H_ 38 #define JSK_PERCEPTION_GRABCUT_H_ 40 #include <sensor_msgs/Image.h> 47 #include <dynamic_reconfigure/server.h> 48 #include "jsk_perception/GrabCutConfig.h" 74 const sensor_msgs::Image::ConstPtr& image_msg,
75 const sensor_msgs::Image::ConstPtr& foreground_msg,
76 const sensor_msgs::Image::ConstPtr& background_msg);
message_filters::Subscriber< sensor_msgs::Image > sub_foreground_
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
virtual void updateDiagnostic(diagnostic_updater::DiagnosticStatusWrapper &stat)
bool use_probable_pixel_seed_
message_filters::Subscriber< sensor_msgs::Image > sub_background_
virtual void configCallback(Config &config, uint32_t level)
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
ros::Publisher pub_background_
message_filters::sync_policies::ExactTime< sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::Image > SyncPolicy
virtual void unsubscribe()
virtual void segment(const sensor_msgs::Image::ConstPtr &image_msg, const sensor_msgs::Image::ConstPtr &foreground_msg, const sensor_msgs::Image::ConstPtr &background_msg)
ros::Publisher pub_foreground_
message_filters::Subscriber< sensor_msgs::Image > sub_image_
boost::shared_ptr< GrabCut > Ptr
ros::Publisher pub_background_mask_
ros::Publisher pub_foreground_mask_