MCPcopy Create free account
hub / github.com/Profactor/cv-plot / Window

Method Window

CvPlot/inc/CvPlot/gui/Window.h:35–48  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33};
34
35inline
36Window::Window(std::string windowName, Axes &axes, int rows, int cols)
37 :_mouseAdapter(axes)
38 , _windowName(windowName) {
39
40 if(valid()){
41 cv::destroyWindow(windowName);
42 }
43 cv::namedWindow(windowName, cv::WINDOW_NORMAL | cv::WINDOW_FREERATIO);
44 cv::resizeWindow(windowName, { cols,rows });
45 axes.render(_mat, cv::Size(cols, rows));
46 cv::imshow(windowName, _mat);
47 setMouseCallback();
48}
49
50inline
51Window::Window(Window && a)

Callers

nothing calls this directly

Calls 1

renderMethod · 0.45

Tested by

no test coverage detected