5
5
6
6
# ** PlotOpenCv C++ library**
7
7
8
- ** v1.0.4 **
8
+ ** v1.1.0 **
9
9
10
10
11
11
41
41
| 1.0.1 | 18.09.2023 | - Update used container for plots. |
42
42
| 1.0.2 | 16.04.2024 | - Antialiased line drawing implemented.<br />- Window size issue fixed.<br />- Documentation updated. |
43
43
| 1.0.3 | 17.05.2024 | - Documentation updated. |
44
- | 1.0.4 | 18 .07.2024 | - CMake structure updated. |
44
+ | 1.1.0 | 19 .07.2024 | - CMake structure updated.< br />- Files renamed. |
45
45
46
46
47
47
@@ -73,6 +73,11 @@ test ------------------------ Folder for test application.
73
73
** Plot** class declared in ** PlotOpenCv.h** file. Class declaration:
74
74
75
75
``` cpp
76
+ namespace cr
77
+ {
78
+ namespace utils
79
+ {
80
+ /// plot class.
76
81
class Plot
77
82
{
78
83
public:
@@ -104,6 +109,8 @@ public:
104
109
/// Method to show window.
105
110
void show();
106
111
};
112
+ }
113
+ }
107
114
```
108
115
109
116
@@ -125,7 +132,7 @@ std::cout << "PlotOpenCv class version: " << PlotOpenCv::getVersion();
125
132
Console output:
126
133
127
134
``` bash
128
- PlotOpenCv class version: 1.0.4
135
+ PlotOpenCv class version: 1.1.0
129
136
```
130
137
131
138
@@ -145,8 +152,8 @@ void addPlot(std::vector<T> &points, int id, int start = 0, int end = 0,
145
152
| id | Identifier for chart on a window. Provides user to update a chart or add new one. |
146
153
| start | Start index of plot from vector when user wants to plot a specific range from a dataset. Should be 0 for whole dataset.|
147
154
| end | End index of plot from vector when user wants to plot a specific range from a dataset. Should be 0 for whole dataset. |
148
- | color | Color of chart line. |
149
- | thickness | Thickness of chart line.|
155
+ | color | Color of chart line. |
156
+ | thickness | Thickness of chart line. |
150
157
151
158
152
159
@@ -171,15 +178,15 @@ void addPlot(std::vector<std::vector<T>> &points, int id, int start = 0, int end
171
178
** Table 2** - Supported data types.
172
179
173
180
| Supported data types |
174
- | ---------|
175
- | unsigned char |
176
- | char |
177
- | unsigned int |
178
- | unsigned short |
179
- | short int |
180
- | int |
181
- | float |
182
- | double |
181
+ | --------------------- |
182
+ | unsigned char |
183
+ | char |
184
+ | unsigned int |
185
+ | unsigned short |
186
+ | short int |
187
+ | int |
188
+ | float |
189
+ | double |
183
190
184
191
185
192
@@ -207,7 +214,6 @@ void clean();
207
214
Typical commands to build ** PlotOpenCv** library:
208
215
209
216
``` bash
210
- git clone https://github.com/ConstantRobotics-Ltd/PlotOpenCv.git
211
217
cd PlotOpenCv
212
218
mkdir build
213
219
cd build
225
231
yourLib.cpp
226
232
```
227
233
228
- You can add repository ** PlotOpenCv** as submodule by commands:
229
-
230
- ``` bash
231
- cd < your respository folder>
232
- git submodule add https://github.com/ConstantRobotics-Ltd/PlotOpenCv.git 3rdparty/PlotOpenCv
233
- ```
234
-
235
- In you repository folder will be created folder ** 3rdparty/PlotOpenCv** which contains files of ** PlotOpenCv** repository. New structure of your repository:
234
+ create folder ** 3rdparty** in your repository and copy ** PlotOpenCv** repository folder there. New structure of your repository:
236
235
237
236
``` bash
238
237
CMakeLists.txt
@@ -345,4 +344,4 @@ Example charts shows what visual effects user should expect depending on input d
345
344
![ plot_opencv_example_1] ( ./static/plot_opencv_example_1.png )
346
345
![ plot_opencv_example_2] ( ./static/plot_opencv_example_2.png )
347
346
![ plot_opencv_example_3] ( ./static/plot_opencv_example_3.png )
348
- ![ plot_opencv_example_combined] ( ./static/plot_opencv_example_combined.png )
347
+ ![ plot_opencv_example_combined] ( ./static/plot_opencv_example_combined.png )
0 commit comments