RobotsIO
Loading...
Searching...
No Matches
ImageFileProbe.h
1/*
2 * Copyright (C) 2019 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#ifndef ROBOTSIO_IMAGEFILEPROBE_H
9#define ROBOTSIO_IMAGEFILEPROBE_H
10
11#include <RobotsIO/Utils/Data.h>
12#include <RobotsIO/Utils/Probe.h>
13#include <RobotsIO/Utils/any.h>
14
15#include <opencv2/opencv.hpp>
16
17#include <string>
18
19namespace RobotsIO {
20 namespace Utils {
21 class ImageFileProbe;
22 }
23}
24
25
27{
28public:
29 ImageFileProbe(const std::string& output_path, const std::string& prefix, const std::string& output_format);
30
31 virtual ~ImageFileProbe();
32
33protected:
34 void on_new_data() override;
35
36private:
37 cv::Mat data_cv_;
38
39 std::string output_prefix_;
40
41 const std::string output_format_;
42
43 std::size_t frame_counter_ = 0;
44
45 const std::string log_name_ = "ImageFileProbe";
46};
47
48#endif /* ROBOTSIO_IMAGEFILEPROBE_H */