I can’t show all the code but, to give an exemple of what I wrote and where is the problem locate.
{
int lowHue =0
int lowSaturation = 0
int lowValue = 0
int highHue = 255;
cv::namedWindow("Configuration");
cv::createTrackbar("Low hue","Configuration", &lowHue, 255, OnChangeLowHue, this);
cv::createTrackbar("Low saturation","Configuration", &lowSaturation, 255, OnChangeLowSaturation, this);
cv::createTrackbar("Low Value", "Configuration", &lowValue, 255, OnChangeLowValue, this);
cv::createTrackbar("High hue", "Configuration", &highHue, 255, OnChangeHighHue, this);
}
static void Window::OnChangeLowHue(int lowHue, void * thisWindow)
{
Window* that = (Window*) thisWindow;
that->Foo.LowHue(lowHue);
}
static void Window::OnChangeHighHue(int highHue, void * thisWindow)
{
Window * that = (Window*) thisWindow;
that->Foo.HighHue(highHue);
}
......
The opencv version is 4.2 and I install on Ubuntu 20.4 with de package : sudo apt install libopencv-dev
No I don’t debug it.