I’m new to openCV, and I tested my code using the cv::setTrackbarMax() function with opencv 4.5.4.
Using the Visual C++ (MSVC) debugger, I found that after executing the setTrackbarMax() function, the trackbar in the window was broken and I could not grab the trackbar to change its value.
The same phenomenon can be seen in the tutorial code “samples/cpp/falsecolor.cpp”
The following line in window_w32.cpp seems to cause the error.
In the above, should “range.end” be assigned to trackbar.maxval instead of “range.start”?
Thanks in advance.