标签: c++ opencv threshold
我知道如何为灰度图像调用二进制Otsu方法:
threshold(image, opencv_otsu_result, 0, 255, CV_THRESH_BINARY | CV_THRESH_OTSU);
但如果我想将图像分成3,4,...颜色,我不明白如何使用此功能。我试图找到一些功能:
threshold(image, result, SOME_FLAGS, number_of_colors);