thresh value in imgproc.thresohld code example Example: imgproc.threshold threshold(src, dst, thresh, maxval, type)