You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-[Build and connect to your project](#build-and-connect-to-your-project)
24
25
25
26
27
+
26
28
# Overview
27
29
28
-
**plotOpenCv** is a C++ library developed to facilitate the visualization of 2-dimensional line charts. This library is built upon the OpenCV, providing users with a convenient and efficient tool for visualizing data through line charts. With plotOpenCv, users can effortlessly create multiple line charts within a single window and tune various chart parameters, such as line width, color, and more.
30
+
**plotOpenCv** is a C++ library developed to facilitate the visualization of 2-dimensional line charts. This library is built upon the OpenCV, providing users with a convenient and efficient tool for visualizing data through line charts. With plotOpenCv, users can effortlessly create multiple line charts within a single window and tune various chart parameters, such as line width, color, and more. It uses C++17 standard. The library is licensed under the Apache 2.0 license.
The library is supplied only by source code. The user is given a set of files in the form of a CMake project (repository). The repository structure is shown below:
49
+
50
+
```xml
51
+
CMakeLists.txt -------------- Main CMake file of the library.
**addPlot(...)** method serves the purpose of incorporating a new line chart into the existing window. It either introduces a new plot if the provided id is not yet present, or updates an existing plot associated with the given identifier. Method declaration:
133
+
The **addPlot(...)** method serves the purpose of incorporating a new line chart into the existing window. It either introduces a new plot if the provided id is not yet present, or updates an existing plot associated with the given identifier. Method declaration:
141
134
142
135
```cpp
143
136
voidaddPlot(std::vector<T> &points, int id, int start = 0, int end = 0,
@@ -153,9 +146,11 @@ void addPlot(std::vector<T> &points, int id, int start = 0, int end = 0,
153
146
| color | Color of chart line. |
154
147
| thickness | Thickness of chart line.|
155
148
149
+
150
+
156
151
## addPlot (for 2D dataset) method
157
152
158
-
**addPlot(...)** method serves the purpose of incorporating a new line chart into the existing window. It either introduces a new plot if the provided id is not yet present, or updates an existing plot associated with the given identifier. Method declaration:
153
+
The **addPlot(...)** method serves the purpose of incorporating a new line chart into the existing window. It either introduces a new plot if the provided id is not yet present, or updates an existing plot associated with the given identifier. Method declaration:
159
154
160
155
```cpp
161
156
void addPlot(std::vector<std::vector<T>> &points, int id, int start = 0, int end = 0,
@@ -172,7 +167,6 @@ void addPlot(std::vector<std::vector<T>> &points, int id, int start = 0, int end
172
167
| tickness | Tickness of chart line.|
173
168
174
169
175
-
176
170
**Table 2** - Supported data types.
177
171
178
172
| Supported data types |
@@ -185,22 +179,29 @@ void addPlot(std::vector<std::vector<T>> &points, int id, int start = 0, int end
185
179
| int |
186
180
| float |
187
181
| double |
182
+
183
+
184
+
188
185
## show method
189
186
190
-
**show()** method is responsible for displaying a window containing all the plotted line charts. Method declaration:
187
+
The **show()** method is responsible for displaying a window containing all the plotted line charts. Method declaration:
191
188
192
189
```cpp
193
190
voidshow();
194
191
```
195
192
193
+
194
+
196
195
## clean method
197
196
198
-
**clean()** method is responsible for cleaning a window containing all the plotted line charts. Method declaration:
197
+
The **clean()** method is responsible for cleaning a window containing all the plotted line charts. Method declaration:
0 commit comments