Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes
watershed_segmentation::WatershedSegmentationNodelet Class Reference
Inheritance diagram for watershed_segmentation::WatershedSegmentationNodelet:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual void onInit ()
 Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method.

Private Types

typedef
watershed_segmentation::WatershedSegmentationConfig 
Config
typedef
dynamic_reconfigure::Server
< Config
ReconfigureServer

Private Member Functions

void add_seed_point_cb (const opencv_apps::Point2DArray &msg)
void do_work (const sensor_msgs::ImageConstPtr &msg, const std::string input_frame_from_msg)
const std::string & frameWithDefault (const std::string &frame, const std::string &image_frame)
void imageCallback (const sensor_msgs::ImageConstPtr &msg)
void imageCallbackWithInfo (const sensor_msgs::ImageConstPtr &msg, const sensor_msgs::CameraInfoConstPtr &cam_info)
void reconfigureCallback (watershed_segmentation::WatershedSegmentationConfig &new_config, uint32_t level)
void subscribe ()
 This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.
void unsubscribe ()
 This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.

Static Private Member Functions

static void onMouse (int event, int x, int y, int flags, void *)
static void trackbarCallback (int, void *)

Private Attributes

ros::Subscriber add_seed_points_sub_
image_transport::CameraSubscriber cam_sub_
Config config_
bool debug_view_
image_transport::Publisher img_pub_
image_transport::Subscriber img_sub_
boost::shared_ptr
< image_transport::ImageTransport
it_
cv::Mat markerMask
ros::Publisher msg_pub_
ros::Time prev_stamp_
cv::Point prevPt
boost::shared_ptr
< ReconfigureServer
reconfigure_server_
std::string segment_name_
std::string window_name_

Static Private Attributes

static bool need_config_update_ = false
static int on_mouse_event_ = 0
static int on_mouse_flags_ = 0
static bool on_mouse_update_ = false
static int on_mouse_x_ = 0
static int on_mouse_y_ = 0

Detailed Description

Definition at line 57 of file watershed_segmentation_nodelet.cpp.


Member Typedef Documentation

typedef watershed_segmentation::WatershedSegmentationConfig watershed_segmentation::WatershedSegmentationNodelet::Config [private]

Definition at line 67 of file watershed_segmentation_nodelet.cpp.

Definition at line 68 of file watershed_segmentation_nodelet.cpp.


Member Function Documentation

void watershed_segmentation::WatershedSegmentationNodelet::add_seed_point_cb ( const opencv_apps::Point2DArray &  msg) [inline, private]

Definition at line 268 of file watershed_segmentation_nodelet.cpp.

void watershed_segmentation::WatershedSegmentationNodelet::do_work ( const sensor_msgs::ImageConstPtr &  msg,
const std::string  input_frame_from_msg 
) [inline, private]

Initialize

Definition at line 122 of file watershed_segmentation_nodelet.cpp.

const std::string& watershed_segmentation::WatershedSegmentationNodelet::frameWithDefault ( const std::string &  frame,
const std::string &  image_frame 
) [inline, private]

Definition at line 100 of file watershed_segmentation_nodelet.cpp.

void watershed_segmentation::WatershedSegmentationNodelet::imageCallback ( const sensor_msgs::ImageConstPtr &  msg) [inline, private]

Definition at line 112 of file watershed_segmentation_nodelet.cpp.

void watershed_segmentation::WatershedSegmentationNodelet::imageCallbackWithInfo ( const sensor_msgs::ImageConstPtr &  msg,
const sensor_msgs::CameraInfoConstPtr &  cam_info 
) [inline, private]

Definition at line 107 of file watershed_segmentation_nodelet.cpp.

Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method.

Reimplemented from opencv_apps::Nodelet.

Definition at line 297 of file watershed_segmentation_nodelet.cpp.

static void watershed_segmentation::WatershedSegmentationNodelet::onMouse ( int  event,
int  x,
int  y,
int  flags,
void *   
) [inline, static, private]

Definition at line 86 of file watershed_segmentation_nodelet.cpp.

void watershed_segmentation::WatershedSegmentationNodelet::reconfigureCallback ( watershed_segmentation::WatershedSegmentationConfig &  new_config,
uint32_t  level 
) [inline, private]

Definition at line 95 of file watershed_segmentation_nodelet.cpp.

This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.

Implements opencv_apps::Nodelet.

Definition at line 280 of file watershed_segmentation_nodelet.cpp.

static void watershed_segmentation::WatershedSegmentationNodelet::trackbarCallback ( int  ,
void *   
) [inline, static, private]

Definition at line 117 of file watershed_segmentation_nodelet.cpp.

This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.

Implements opencv_apps::Nodelet.

Definition at line 289 of file watershed_segmentation_nodelet.cpp.


Member Data Documentation

Definition at line 63 of file watershed_segmentation_nodelet.cpp.

Definition at line 61 of file watershed_segmentation_nodelet.cpp.

Definition at line 69 of file watershed_segmentation_nodelet.cpp.

Definition at line 72 of file watershed_segmentation_nodelet.cpp.

Definition at line 59 of file watershed_segmentation_nodelet.cpp.

Definition at line 60 of file watershed_segmentation_nodelet.cpp.

Definition at line 65 of file watershed_segmentation_nodelet.cpp.

Definition at line 83 of file watershed_segmentation_nodelet.cpp.

Definition at line 62 of file watershed_segmentation_nodelet.cpp.

Definition at line 76 of file watershed_segmentation_nodelet.cpp.

Definition at line 78 of file watershed_segmentation_nodelet.cpp.

Definition at line 81 of file watershed_segmentation_nodelet.cpp.

Definition at line 77 of file watershed_segmentation_nodelet.cpp.

Definition at line 79 of file watershed_segmentation_nodelet.cpp.

Definition at line 80 of file watershed_segmentation_nodelet.cpp.

Definition at line 73 of file watershed_segmentation_nodelet.cpp.

Definition at line 84 of file watershed_segmentation_nodelet.cpp.

Definition at line 70 of file watershed_segmentation_nodelet.cpp.

Definition at line 75 of file watershed_segmentation_nodelet.cpp.

Definition at line 75 of file watershed_segmentation_nodelet.cpp.


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


opencv_apps
Author(s): Kei Okada
autogenerated on Tue May 2 2017 02:58:59