Public Member Functions | |
virtual void | onInit () |
Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method. | |
Private Types | |
typedef opencv_apps::WatershedSegmentationConfig | Config |
typedef dynamic_reconfigure::Server < Config > | ReconfigureServer |
Private Member Functions | |
void | addSeedPointCb (const opencv_apps::Point2DArray &msg) |
void | doWork (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 (opencv_apps::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 |
int | queue_size_ |
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 |
Definition at line 58 of file watershed_segmentation_nodelet.cpp.
typedef opencv_apps::WatershedSegmentationConfig opencv_apps::WatershedSegmentationNodelet::Config [private] |
Definition at line 68 of file watershed_segmentation_nodelet.cpp.
typedef dynamic_reconfigure::Server<Config> opencv_apps::WatershedSegmentationNodelet::ReconfigureServer [private] |
Definition at line 69 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::addSeedPointCb | ( | const opencv_apps::Point2DArray & | msg | ) | [inline, private] |
Definition at line 279 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::doWork | ( | const sensor_msgs::ImageConstPtr & | msg, |
const std::string & | input_frame_from_msg | ||
) | [inline, private] |
Initialize
Definition at line 124 of file watershed_segmentation_nodelet.cpp.
const std::string& opencv_apps::WatershedSegmentationNodelet::frameWithDefault | ( | const std::string & | frame, |
const std::string & | image_frame | ||
) | [inline, private] |
Definition at line 102 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::imageCallback | ( | const sensor_msgs::ImageConstPtr & | msg | ) | [inline, private] |
Definition at line 114 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::imageCallbackWithInfo | ( | const sensor_msgs::ImageConstPtr & | msg, |
const sensor_msgs::CameraInfoConstPtr & | cam_info | ||
) | [inline, private] |
Definition at line 109 of file watershed_segmentation_nodelet.cpp.
virtual void opencv_apps::WatershedSegmentationNodelet::onInit | ( | ) | [inline, virtual] |
Initialize nodehandles nh_ and pnh_. Subclass should call this method in its onInit method.
Reimplemented from opencv_apps::Nodelet.
Reimplemented in watershed_segmentation::WatershedSegmentationNodelet.
Definition at line 313 of file watershed_segmentation_nodelet.cpp.
static void opencv_apps::WatershedSegmentationNodelet::onMouse | ( | int | event, |
int | x, | ||
int | y, | ||
int | flags, | ||
void * | |||
) | [inline, static, private] |
Definition at line 88 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::reconfigureCallback | ( | opencv_apps::WatershedSegmentationConfig & | new_config, |
uint32_t | level | ||
) | [inline, private] |
Definition at line 97 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::subscribe | ( | ) | [inline, private, virtual] |
This method is called when publisher is subscribed by other nodes. Set up subscribers in this method.
Implements opencv_apps::Nodelet.
Definition at line 296 of file watershed_segmentation_nodelet.cpp.
static void opencv_apps::WatershedSegmentationNodelet::trackbarCallback | ( | int | , |
void * | |||
) | [inline, static, private] |
Definition at line 119 of file watershed_segmentation_nodelet.cpp.
void opencv_apps::WatershedSegmentationNodelet::unsubscribe | ( | ) | [inline, private, virtual] |
This method is called when publisher is unsubscribed by other nodes. Shut down subscribers in this method.
Implements opencv_apps::Nodelet.
Definition at line 305 of file watershed_segmentation_nodelet.cpp.
Definition at line 64 of file watershed_segmentation_nodelet.cpp.
Definition at line 62 of file watershed_segmentation_nodelet.cpp.
Definition at line 70 of file watershed_segmentation_nodelet.cpp.
bool opencv_apps::WatershedSegmentationNodelet::debug_view_ [private] |
Definition at line 74 of file watershed_segmentation_nodelet.cpp.
Definition at line 60 of file watershed_segmentation_nodelet.cpp.
Definition at line 61 of file watershed_segmentation_nodelet.cpp.
boost::shared_ptr<image_transport::ImageTransport> opencv_apps::WatershedSegmentationNodelet::it_ [private] |
Definition at line 66 of file watershed_segmentation_nodelet.cpp.
cv::Mat opencv_apps::WatershedSegmentationNodelet::markerMask [private] |
Definition at line 85 of file watershed_segmentation_nodelet.cpp.
Definition at line 63 of file watershed_segmentation_nodelet.cpp.
bool opencv_apps::WatershedSegmentationNodelet::need_config_update_ = false [static, private] |
Definition at line 78 of file watershed_segmentation_nodelet.cpp.
int opencv_apps::WatershedSegmentationNodelet::on_mouse_event_ = 0 [static, private] |
Definition at line 80 of file watershed_segmentation_nodelet.cpp.
int opencv_apps::WatershedSegmentationNodelet::on_mouse_flags_ = 0 [static, private] |
Definition at line 83 of file watershed_segmentation_nodelet.cpp.
bool opencv_apps::WatershedSegmentationNodelet::on_mouse_update_ = false [static, private] |
Definition at line 79 of file watershed_segmentation_nodelet.cpp.
int opencv_apps::WatershedSegmentationNodelet::on_mouse_x_ = 0 [static, private] |
Definition at line 81 of file watershed_segmentation_nodelet.cpp.
int opencv_apps::WatershedSegmentationNodelet::on_mouse_y_ = 0 [static, private] |
Definition at line 82 of file watershed_segmentation_nodelet.cpp.
Definition at line 75 of file watershed_segmentation_nodelet.cpp.
cv::Point opencv_apps::WatershedSegmentationNodelet::prevPt [private] |
Definition at line 86 of file watershed_segmentation_nodelet.cpp.
int opencv_apps::WatershedSegmentationNodelet::queue_size_ [private] |
Definition at line 73 of file watershed_segmentation_nodelet.cpp.
boost::shared_ptr<ReconfigureServer> opencv_apps::WatershedSegmentationNodelet::reconfigure_server_ [private] |
Definition at line 71 of file watershed_segmentation_nodelet.cpp.
std::string opencv_apps::WatershedSegmentationNodelet::segment_name_ [private] |
Definition at line 77 of file watershed_segmentation_nodelet.cpp.
std::string opencv_apps::WatershedSegmentationNodelet::window_name_ [private] |
Definition at line 77 of file watershed_segmentation_nodelet.cpp.