RobotsIO
Loading...
Searching...
No Matches
CameraParameters.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/CameraParameters.h>
9
10using namespace RobotsIO::Camera;
11
12robots_io_accessor_impl(CameraParameters);
13
14
15robots_io_declare_field_impl(CameraParameters, int, width);
16
17
18robots_io_declare_field_impl(CameraParameters, int, height);
19
20
21robots_io_declare_field_impl(CameraParameters, double, cx);
22
23
24robots_io_declare_field_impl(CameraParameters, double, cy);
25
26
27robots_io_declare_field_impl(CameraParameters, double, fx);
28
29
30robots_io_declare_field_impl(CameraParameters, double, fy);
31
32
33robots_io_declare_field_impl(CameraParameters, bool, initialized);
34
35
36CameraParameters::CameraParameters()
37{
38 /* Set default values. */
39 width(0);
40
41 height(0);
42
43 cx(0);
44
45 cy(0);
46
47 fx(0);
48
49 fy(0);
50
51 initialized(false);
52}
53
54
55CameraParameters::~CameraParameters()
56{}