RobotsIO
Loading...
Searching...
No Matches
Transform.cpp
1/*
2 * Copyright (C) 2020 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/Transform.h>
9
10using namespace RobotsIO::Utils;
11
12
13Transform::~Transform()
14{}
15
16
17Eigen::MatrixXd Transform::bounding_box()
18{
19 /* By default, this return an empty matrix. */
20 Eigen::MatrixXd empty;
21 return empty;
22}
23
24
26{
27 /* 1 indicates that the transform stream is, by default, available at all frames. */
28 return 1;
29}
30
31
32void Transform::set_rgb_image(const cv::Mat& image)
33{
34 /* By default, the input image is not used. */
35}
36
37
38void Transform::set_depth_segmentation_image(const Eigen::MatrixXf& depth, const cv::Mat& segmentation)
39{
40 /* By default, the input images are not used. */
41}
42
43
45{
46 /* By default, it returns true. */
47
48 return true;
49}
virtual Eigen::MatrixXd bounding_box()
Definition: Transform.cpp:17
virtual void set_rgb_image(const cv::Mat &image)
Definition: Transform.cpp:32
virtual void set_depth_segmentation_image(const Eigen::MatrixXf &depth, const cv::Mat &segmentation)
Definition: Transform.cpp:38
virtual bool transform_received()
Definition: Transform.cpp:44
virtual int get_frames_between_iterations() const
Definition: Transform.cpp:25