that’s terribly old
hmm, those are local variables (inside the constructor) ?
if so, the address you pass to createTrackbar()
will be invalid later (“dangling pointer”)
once you move the trackbar, it will try to write the current value back to this address, aand it goes kaboom.
rather use a pattern like:
cv::createTrackbar("Low hue","Configuration", NULL, 255, OnChangeLowHue, this);
cv::setTrackbarPos("Low hue","Configuration", lowHue);