RobotsIO
Loading...
Searching...
No Matches
Segmentation.cpp
1/*
2 * Copyright (C) 2021 Istituto Italiano di Tecnologia (IIT)
3 *
4 * This software may be modified and distributed under the terms of the
5 * BSD 3-Clause license. See the accompanying LICENSE file for details.
6 */
7
8#include <RobotsIO/Utils/Segmentation.h>
9
10using namespace RobotsIO::Utils;
11
12
13Segmentation::~Segmentation()
14{}
15
16
17bool Segmentation::reset()
18{
19 return true;
20}
21
22
23bool Segmentation::step_frame()
24{
25 return true;
26}
27
28
29void Segmentation::reset_data_loading_time()
30{
31}
32
33
34double Segmentation::get_data_loading_time() const
35{
36 return 0.0;
37}
38
39
41{
42 return 1;
43}
44
45
46std::pair<bool, cv::Mat> Segmentation::latest_segmentation()
47{
48 return std::make_pair(false, cv::Mat());
49}
50
51
53{
54 return -1;
55}
56
57
58void Segmentation::set_rgb_image(const cv::Mat& image, const double& timestamp)
59{
60 /* By default, the input image is not used. */
61}
virtual std::pair< bool, cv::Mat > latest_segmentation()
virtual int get_frames_between_iterations() const
virtual double get_time_stamp()
virtual void set_rgb_image(const cv::Mat &image, const double &timestamp)