Program Listing for File utils.hpp

Return to documentation for file (/tmp/ws/src/depthai-ros/depthai_filters/include/depthai_filters/utils.hpp)

#pragma once

#include "opencv2/core/mat.hpp"
#include "sensor_msgs/msg/image.hpp"

namespace rclcpp {
class Logger;
}

namespace depthai_filters {
namespace utils {
cv::Mat msgToMat(const rclcpp::Logger& logger, const sensor_msgs::msg::Image::ConstSharedPtr& img, const std::string& encoding);
void addTextToFrame(cv::Mat& frame, const std::string& text, int x, int y);
}  // namespace utils
}  // namespace depthai_filters