Quantcast
Channel: OpenCV Q&A Forum - RSS feed
Viewing all articles
Browse latest Browse all 41027

Missing trackbars in OpenCV

$
0
0
I have 8 trackbars for my application. However, when the window is displayed, the last trackbar is missing. I tried setting the window to CV::WINDOW_NORMAL, making the window resizable. Resizing the window shows the missing trackbar. Is there a way to dispay the all the trackbars without resizing? Edit: Added the code relevant to the question at hand. settings_window and views_window are const strings. void image_demo::exec(){ //Initialize the UI cv::namedWindow(settings_window/*,CV_WINDOW_NORMAL*/); //Create the trackbars cv::createTrackbar("COST", settings_window, &ad_gamma, 100, on_trackbar, this); cv::createTrackbar("ARM_L", settings_window, &arm_length, 100, on_trackbar, this); cv::createTrackbar("M_ARM_L", settings_window, &max_arm_length, 100, on_trackbar, this); cv::createTrackbar("ARM_T", settings_window, &arm_threshold, 100, on_trackbar, this); cv::createTrackbar("S_ARM_T", settings_window, &strict_arm_threshold, 100, on_trackbar, this); cv::createTrackbar("VOTE_I", settings_window, &bfv_iterations, 10, on_trackbar, this); cv::createTrackbar("MED_SZ", settings_window, &medfilt_size, 15, on_trackbar, this); cv::createTrackbar("DISP_T", settings_window, &disparity_tolerance, 10, on_trackbar, this); cv::Mat left_frame, right_frame, disp_frame, demo_frame; frame.get_frames(left_frame, right_frame); cv::Mat grid_view_im; while (true){ if (!matcher.compute(frame, disp_frame) && run) break; demo_frame = disp_frame.clone(); grid_view_im = disp_frame.clone(); cv::imshow(views_window, grid_view_im); handle_key(cv::waitKey(25)); } return; }

Viewing all articles
Browse latest Browse all 41027

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>