NeuralEngine A Game Engine with embeded Machine Learning algorithms based on Gaussian Processes. |

FgHighGUI.h
1
11#pragma once
12
13#include <MachineLearning/FgWindow.h>
14#include <string>
15#include <vector>
16
17 namespace NeuralEngine
18{
19 namespace MachineLearning
20 {
21 class NE_IMPEXP HighGUI
22 {
23 public:
24 static int createTrackbar(const std::string& trackbarname, const std::string& winname,
25 int* value, int count, TrackbarCallback onChange = 0,
26 void* userdata = 0);
27 static void destroyAllWindows();
28 static void destroyWindow(const std::string& view);
29 static int getMouseWheelDelta(int flags);
30 static int getTrackbarPos(const std::string& trackbarname, const std::string& winname);
31 static double getWindowProperty(const std::string& winname, int prop_id);
32 static void imshow(const std::string& view, void* img);
33 static void moveWindow(const std::string& view, int x, int y);
34 static void namedWindow(const std::string& view, int flags = 0);
35 static void resizeWindow(const std::string& view, int width, int height);
36 static void resizeWindow(const std::string& view, const Size& size);
37 static Rect selectROI(const std::string& windowName, void* img,
38 bool showCrosshair = true, bool fromCenter = false);
39 static Rect selectROI(void* img, bool showCrosshair = true, bool fromCenter = false);
40 static void selectROIs(const std::string& windowName, void* img,
41 std::vector<Rect>& boundingBoxes, bool showCrosshair = true,
42 bool fromCenter = false);
43 static void setMouseCallback(const std::string& view, MouseCallback onMouse,
44 void* userdata = 0);
45 static void setTrackbarMax(const std::string& trackbarname, const std::string& winname,
46 int maxval);
47 static void setTrackbarMin(const std::string& trackbarname, const std::string& winname,
48 int minval);
49 static void setTrackbarPos(const std::string& trackbarname, const std::string& winname,
50 int pos);
51 static void setWindowProperty(const std::string& winname, int prop_id,
52 double prop_value);
53 static void setWindowTitle(const std::string& view, const std::string& title);
54 static int startWindowThread();
55 static int waitKey(int delay = 0);
56 static int waitKeyEx(int delay = 0);
57 };
58 }
59}
NeuralEngine::MachineLearning::HighGUI
Definition: FgHighGUI.h:22
NeuralEngine
Definition: NeArray2.h:18
NeuralEngine::MachineLearning::Rect
Definition: FgWindow.h:21
NeuralEngine::MachineLearning::Size
Definition: FgWindow.h:28