Go to the documentation of this file.
32 #include <opencv2/core/core.hpp>
33 #include <opencv2/imgproc/imgproc.hpp>
39 #include <sensor_msgs/Image.h>
83 cv::resize(cv_image->image, scaled, size);
86 cv_scaled->image = scaled;
87 cv_scaled->encoding = cv_image->encoding;
88 cv_scaled->header = cv_image->header;
image_transport::Subscriber image_sub_
ros::NodeHandle & getNodeHandle() const
SWRI_NODELET_EXPORT_CLASS(swri_image_util, DrawPolygonNodelet)
void ImageCallback(const sensor_msgs::ImageConstPtr &image)
ros::NodeHandle & getPrivateNodeHandle() const
Publisher advertise(const std::string &base_topic, uint32_t queue_size, bool latch=false)
Subscriber subscribe(const std::string &base_topic, uint32_t queue_size, const boost::function< void(const sensor_msgs::ImageConstPtr &)> &callback, const ros::VoidPtr &tracked_object=ros::VoidPtr(), const TransportHints &transport_hints=TransportHints())
void publish(const sensor_msgs::Image &message) const
image_transport::Publisher image_pub_
T param(const std::string ¶m_name, const T &default_val) const
double Round(double value)
CvImageConstPtr toCvShare(const sensor_msgs::Image &source, const boost::shared_ptr< void const > &tracked_object, const std::string &encoding=std::string())
swri_image_util
Author(s): Kris Kozak
autogenerated on Fri Aug 2 2024 08:39:19