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