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

#include <grabcut.h>

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

Public Types

typedef GrabCutConfig Config
 
typedef boost::shared_ptr< GrabCutPtr
 
typedef message_filters::sync_policies::ExactTime< sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::Image > SyncPolicy
 

Public Member Functions

 GrabCut ()
 
virtual ~GrabCut ()
 

Protected Member Functions

virtual void configCallback (Config &config, uint32_t level)
 
virtual void onInit ()
 
virtual void segment (const sensor_msgs::Image::ConstPtr &image_msg, const sensor_msgs::Image::ConstPtr &foreground_msg, const sensor_msgs::Image::ConstPtr &background_msg)
 
virtual void subscribe ()
 
virtual void unsubscribe ()
 
virtual void updateDiagnostic (diagnostic_updater::DiagnosticStatusWrapper &stat)
 

Protected Attributes

boost::mutex mutex_
 
ros::Publisher pub_background_
 
ros::Publisher pub_background_mask_
 
ros::Publisher pub_foreground_
 
ros::Publisher pub_foreground_mask_
 
boost::shared_ptr< dynamic_reconfigure::Server< Config > > srv_
 
message_filters::Subscriber< sensor_msgs::Image > sub_background_
 
message_filters::Subscriber< sensor_msgs::Image > sub_foreground_
 
message_filters::Subscriber< sensor_msgs::Image > sub_image_
 
boost::shared_ptr< message_filters::Synchronizer< SyncPolicy > > sync_
 
bool use_probable_pixel_seed_
 

Detailed Description

Definition at line 84 of file grabcut.h.

Member Typedef Documentation

◆ Config

typedef GrabCutConfig jsk_perception::GrabCut::Config

Definition at line 119 of file grabcut.h.

◆ Ptr

Definition at line 125 of file grabcut.h.

◆ SyncPolicy

typedef message_filters::sync_policies::ExactTime< sensor_msgs::Image, sensor_msgs::Image, sensor_msgs::Image> jsk_perception::GrabCut::SyncPolicy

Definition at line 123 of file grabcut.h.

Constructor & Destructor Documentation

◆ GrabCut()

jsk_perception::GrabCut::GrabCut ( )
inline

Definition at line 126 of file grabcut.h.

◆ ~GrabCut()

jsk_perception::GrabCut::~GrabCut ( )
virtual

Definition at line 94 of file grabcut_nodelet.cpp.

Member Function Documentation

◆ configCallback()

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

Definition at line 215 of file grabcut_nodelet.cpp.

◆ onInit()

void jsk_perception::GrabCut::onInit ( )
protectedvirtual

Definition at line 75 of file grabcut_nodelet.cpp.

◆ segment()

void jsk_perception::GrabCut::segment ( const sensor_msgs::Image::ConstPtr &  image_msg,
const sensor_msgs::Image::ConstPtr &  foreground_msg,
const sensor_msgs::Image::ConstPtr &  background_msg 
)
protectedvirtual

Definition at line 132 of file grabcut_nodelet.cpp.

◆ subscribe()

void jsk_perception::GrabCut::subscribe ( )
protectedvirtual

Definition at line 105 of file grabcut_nodelet.cpp.

◆ unsubscribe()

void jsk_perception::GrabCut::unsubscribe ( )
protectedvirtual

Definition at line 116 of file grabcut_nodelet.cpp.

◆ updateDiagnostic()

void jsk_perception::GrabCut::updateDiagnostic ( diagnostic_updater::DiagnosticStatusWrapper stat)
protectedvirtual

Definition at line 123 of file grabcut_nodelet.cpp.

Member Data Documentation

◆ mutex_

boost::mutex jsk_perception::GrabCut::mutex_
protected

Definition at line 155 of file grabcut.h.

◆ pub_background_

ros::Publisher jsk_perception::GrabCut::pub_background_
protected

Definition at line 147 of file grabcut.h.

◆ pub_background_mask_

ros::Publisher jsk_perception::GrabCut::pub_background_mask_
protected

Definition at line 149 of file grabcut.h.

◆ pub_foreground_

ros::Publisher jsk_perception::GrabCut::pub_foreground_
protected

Definition at line 146 of file grabcut.h.

◆ pub_foreground_mask_

ros::Publisher jsk_perception::GrabCut::pub_foreground_mask_
protected

Definition at line 148 of file grabcut.h.

◆ srv_

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

Definition at line 154 of file grabcut.h.

◆ sub_background_

message_filters::Subscriber<sensor_msgs::Image> jsk_perception::GrabCut::sub_background_
protected

Definition at line 153 of file grabcut.h.

◆ sub_foreground_

message_filters::Subscriber<sensor_msgs::Image> jsk_perception::GrabCut::sub_foreground_
protected

Definition at line 152 of file grabcut.h.

◆ sub_image_

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

Definition at line 151 of file grabcut.h.

◆ sync_

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

Definition at line 150 of file grabcut.h.

◆ use_probable_pixel_seed_

bool jsk_perception::GrabCut::use_probable_pixel_seed_
protected

Definition at line 160 of file grabcut.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