RobotsIO
Loading...
Searching...
No Matches
DatasetParameters.cpp
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#include <RobotsIO/Camera/DatasetParameters.h>
9
10using namespace RobotsIO::Camera;
11
12robots_io_accessor_impl(DatasetParameters);
13
14robots_io_declare_std_field_impl(DatasetParameters, string, path);
15
16robots_io_declare_std_field_impl(DatasetParameters, string, data_prefix);
17
18robots_io_declare_std_field_impl(DatasetParameters, string, rgb_prefix);
19
20robots_io_declare_std_field_impl(DatasetParameters, string, depth_prefix);
21
22robots_io_declare_std_field_impl(DatasetParameters, string, data_format);
23
24robots_io_declare_std_field_impl(DatasetParameters, string, rgb_format);
25
26robots_io_declare_std_field_impl(DatasetParameters, string, depth_format);
27
28robots_io_declare_std_field_impl(DatasetParameters, size_t, heading_zeros);
29
30robots_io_declare_std_field_impl(DatasetParameters, size_t, index_offset);
31
32robots_io_declare_std_field_impl(DatasetParameters, size_t, standard_data_offset);
33
34robots_io_declare_field_impl(DatasetParameters, bool, data_available);
35
36
37DatasetParameters::DatasetParameters()
38{
39 /* Set default values. */
40 data_prefix("");
41
42 rgb_prefix("");
43
44 depth_prefix("");
45
46 data_format("txt");
47
48 rgb_format("png");
49
50 depth_format("float");
51
52 heading_zeros(0);
53
54 index_offset(0);
55
56 standard_data_offset(9);
57
58 data_available(false);
59}
60
61
62DatasetParameters::~DatasetParameters()
63{}