8#ifndef ROBOTSIO_SEGMENTATIONYARPPORT_H
9#define ROBOTSIO_SEGMENTATIONYARPPORT_H
11#include <RobotsIO/Utils/Segmentation.h>
12#include <RobotsIO/Utils/YarpBufferedPort.hpp>
14#include <yarp/sig/Image.h>
18 class SegmentationYarpPort;
37 bool reset()
override;
39 bool is_stepping_required()
const override;
43 std::pair<bool, cv::Mat>
segmentation(
const bool& blocking)
override;
49 virtual void set_rgb_image(
const cv::Mat& image,
const double& timestamp)
override;
57 const bool provide_rgb_;
60 yarp::sig::ImageOf<yarp::sig::PixelRgb> yarp_rgb_out_;
63 yarp::sig::ImageOf<yarp::sig::PixelMono> yarp_mask_in_;
64 double time_stamp_mask_in_;
66 const std::string log_name_ =
"SegmentationYarpPort";
std::pair< bool, cv::Mat > segmentation(const bool &blocking) override
virtual void set_rgb_image(const cv::Mat &image, const double ×tamp) override
int get_frames_between_iterations() const override
std::pair< bool, cv::Mat > latest_segmentation() override
virtual double get_time_stamp() override