Quantcast
Viewing all articles
Browse latest Browse all 19555

Trouble using threshold() function in opencv

I am trying to segment input image using watershed method. In that i am using threshold(), however my program gets aborted with the following error on the terminal **unsupported format or combination of formats () in cv::threshold** The format of the function used is threshold(bw, bw, 40, 255, THRESH_BINARY); where bw is the binarised image in grayscale form.

Viewing all articles
Browse latest Browse all 19555

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>