Image

cvui::image() renders an image, i.e. cv::Mat. The signature of the function is:

void image(cv::Mat& theWhere, int theX, int theY, cv::Mat& theImage);

where theWhere is the image/frame where the image will be rendered, theX is the position X, theY is the position Y, and theImage is an image to be rendered in the specified destination.

Below is an example showing an image being loaded then displayed using cvui::image(). The result on the screen is shown in Figure 1.

cv::Mat lena_face = cv::imread("lena_face.jpg", cv::IMREAD_COLOR);
cvui::image(frame, 10, 10, lena_face);

Image

Figure 1: image lena_face.jpg displayed on the screen.

Learn more

Check the image-button example for more information about images and buttons.

Last updated:

Edit this page on Github