CCIMXDesktop
 
Loading...
Searching...
No Matches
CVTools.h
1#ifndef CVTOOLS_H
2#define CVTOOLS_H
3#include "CVImage.h"
4#include <utility>
5/* CVTools make sense in debuging */
6
13namespace CVTools {
14
18static constexpr const short WAIT_FOREVER = 0;
19
24struct DisplayParams {
25 const char* name { nullptr };
26 std::pair<int, int> window_size { 640, 480 };
27 int waitTime { WAIT_FOREVER };
28};
29
36void display(const CVImage& image, const char* name);
37
43void display(const CVImage& image, const DisplayParams& params);
44
45};
46
47#endif // CVTOOLS_H
The CVImage class is the image class that provides the image in the frameworks.
Definition CVImage.h:9
The CVTools namespace provides the tools.
Definition CVImagePrivateOpencvImp.cpp:35
void display(const CVImage &image, const DisplayParams &params)
display the image with the default parameters
Definition CVImagePrivateOpencvImp.cpp:37
const char * name
the display name for window
Definition CVTools.h:25
int waitTime
default we wait forever
Definition CVTools.h:27
std::pair< int, int > window_size
the window size
Definition CVTools.h:26