3

Usually in my OpenCV projects, after creating a trackbar and placing it in a window, it appears horizontally and at the bottom of the window.

Is it possible to change the trackbar's position and orientation?

karlphillip
  • 92,053
  • 36
  • 243
  • 426
kauDaOtha
  • 1,140
  • 1
  • 14
  • 23
  • you probably can't, without hacking the implementation (which also differs by os/gui toolkit used). also, on win, trackbars will appear on top of the image. – berak Dec 19 '14 at 10:05

1 Answers1

2

Unfortunately no, cv::createTrackbar() doesn't allow changing the position and orientation of the trackbar.

But if you have Qt installed you can create your own GUI, with the trackbar (QSlider) you want. You just need to learn to convert a cv::Mat into a QImage

Community
  • 1
  • 1
karlphillip
  • 92,053
  • 36
  • 243
  • 426