gusimplewhiteboard
wb_lines.h
Go to the documentation of this file.
1/*
2 * File: wb_lines.h
3 * Author: eugene
4 *
5 * Created on 22 July 2014, 2:12 PM
6 */
7
8#ifndef WB_LINES_H
9#define WB_LINES_H
10
11#include "wb_point2d.h"
12
16struct wb_line {
18 PROPERTY(struct wb_point2d, start)
20 PROPERTY(struct wb_point2d, end)
21 PROPERTY(uint8_t, startThickness)
22 PROPERTY(uint8_t, endThickness)
23#ifdef __cplusplus
25 wb_line() : _start(), _end() {}
26#endif
27};
28
32struct wb_lines {
34 PROPERTY(uint64_t, frameNumber)
38 ARRAY_PROPERTY(struct wb_line, bottomLines, 5)
43 PROPERTY(int8_t, topMask)
48 PROPERTY(int8_t, bottomMask)
49#ifdef __cplusplus
51 wb_lines() : _frameNumber(0), _topMask(0), _bottomMask(0) {}
52#endif
53};
54
55
56#endif /* WB_LINES_H */
57
Simple struct to store information for a line.
Definition: wb_lines.h:16
PROPERTY(struct wb_point2d, start) PROPERTY(struct wb_point2d
Start coordinates of the line.
end endThickness wb_line()
Default Constructor.
Definition: wb_lines.h:25
struct to store information about lines found in a frame processed by vision
Definition: wb_lines.h:32
ARRAY_PROPERTY(struct wb_line, bottomLines, 5) PROPERTY(int8_t
Array of lines found in the top camera in this frame.
PROPERTY(uint64_t, frameNumber) ARRAY_PROPERTY(struct wb_line
The frame number these lines were found in.
WHITEBOARD_POSTER_STRING_CONVERSION.
Definition: wb_point2d.h:105