Merging window(viz3d and mat)

asked 2019-02-07 19:17:32 -0500

I want to combine the mat window and the viz3d type trackbar window. Because the dimensions of the two windows are different, I need to have just two windows attached. (I have tried to merge a viz3d type window into a mat with an existing mat type window, but in this case it merely shows a window of type viz3d, which can not control the object of viz3d) Please help me.

edit retag flag offensive close merge delete

Comments

show, what you tried.

berak gravatar imageberak ( 2019-02-08 01:02:42 -0500 )edit

This is my code example)

//window : vizviewer (viz3d object) //trackbar_img : trackbar( mat object)

  1. stiching

cv::Mat dst; hconcat(window.getScreenshot(),trackbar_img,dst);

2.overlay

auto image_overlay = cv::viz::WImageOverlay(trackbar_img, cv::Rect(0, 0, 250, 250));

  • In 1) case, viz window only displayed window's image on stiching image. So I can't control viz object in stiching image.

In 2) case, trackbar image only displayed trackbar's image on viz window. So I can't control trackbar param in soverlay image.

kingbob gravatar imagekingbob ( 2019-02-08 04:59:33 -0500 )edit