opencv cv threshold c++ code example Example: imgproc.threshold threshold(src, dst, thresh, maxval, type)