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)
26
+
-[Example](#example)
25
27
26
28
27
29
28
30
# Overview
29
31
30
-
**PlotOpenCv** C++ library provides 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 create multiple line charts within a single window and tune various chart parameters, such as line width, color, and more. It utilizes C++17 standard. The library is licensed under the Apache 2.0 license.
32
+
**PlotOpenCv** C++ library provides 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 create multiple line charts within a single window and tune various chart parameters, such as line width, color, and more. It utilizes C++17 standard. The library is licensed under the **Apache 2.0** license.
| Points | One dimensional vector which includes vertical points.Vector format : {y1, y2, ... } |
202
+
| Points | One dimensional vector which includes vertical points.Vector format : {y1, y2, ... } |
152
203
| id | Identifier for chart on a window. Provides user to update a chart or add new one. |
153
204
| start | Start index of plot from vector when user wants to plot a specific range from a dataset. Should be 0 for whole dataset.|
154
205
| end | End index of plot from vector when user wants to plot a specific range from a dataset. Should be 0 for whole dataset. |
@@ -162,8 +213,10 @@ void addPlot(std::vector<T> &points, int id, int start = 0, int end = 0,
162
213
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:
163
214
164
215
```cpp
165
-
void addPlot(std::vector<std::vector<T>> &points, int id, int start = 0, int end = 0,
166
-
cv::Scalar color = cv::Scalar(255, 255, 255), int thickness = 1);
216
+
template <typename T>
217
+
void addPlot(std::vector<std::vector<T>>& points, int id,
218
+
int start = 0, int end = 0,
219
+
PlotColor color = PlotColor(255, 255, 255), int thickness = 1);
167
220
```
168
221
169
222
| Parameter | Value |
@@ -231,7 +284,7 @@ src
231
284
yourLib.cpp
232
285
```
233
286
234
-
create folder **3rdparty** in your repository and copy **PlotOpenCv** repository folder there. New structure of your repository:
287
+
Create folder **3rdparty** in your repository and copy **PlotOpenCv** repository folder there. New structure of your repository:
235
288
236
289
```bash
237
290
CMakeLists.txt
@@ -321,25 +374,21 @@ The example demonstrates how to use **PlotOpenCv** library.
0 commit comments