minor fix - added: move_window_cv() function

This commit is contained in:
AlexeyAB 2021-06-29 23:55:34 +03:00
parent c2221f07f8
commit 97ccee5628
2 changed files with 12 additions and 0 deletions

View File

@ -385,6 +385,17 @@ extern "C" void resize_window_cv(char const* window_name, int width, int height)
}
// ----------------------------------------
extern "C" void move_window_cv(char const* window_name, int x, int y)
{
try {
cv::moveWindow(window_name, x, y);
}
catch (...) {
cerr << "OpenCV exception: create_window_cv \n";
}
}
// ----------------------------------------
extern "C" void destroy_all_windows_cv()
{
try {

View File

@ -48,6 +48,7 @@ image mat_to_image_cv(mat_cv *mat);
// Window
void create_window_cv(char const* window_name, int full_screen, int width, int height);
void resize_window_cv(char const* window_name, int width, int height);
void move_window_cv(char const* window_name, int x, int y);
void destroy_all_windows_cv();
int wait_key_cv(int delay);
int wait_until_press_key_cv();