How to call imshow("", cv::Mat) from a function passed to void* ptr of trackbar callback?
I have a local cv::Mat image in my class member function. Then I make some settings to create a named window and a trackbar.
I need to pass contents of this local image variable to the handler function for threshold it by slider and cv::imshow("window", thrshld);
My tries gave me only segfaults. I used lambdas, std::function and std::shared_ptr<cv::mat>.
Please, help!