Window
cvui::window()
renders a window (a block with a title and a body). The signature of the function is:
void window (
cv::Mat& theWhere,
int theX,
int theY,
int theWidth,
int theHeight,
const cv::String& theTitle
)
where theWhere
is the image/frame where the image will be rendered, theX
is the position X, theY
is the position Y, theWidth
is the width of the window, theHeight
is the height of the window, and theTitle
is the text displayed as the title of the window.
Below is an example showing a window. The result on the screen is shown in Figure 1.
cvui::window(frame, 60, 10, 130, 90, "Title");
cvui::window()
is useful to be used as a background for other UI components, particularly to distinguish them from other elements on the screen. Below is an illustration of cvui::window()
used as background for another component:
Learn more
Check the main-app and canny examples for more information about window.