From 9fc7ca8ed16c2b4ffbab08d9957f219c012b2fc3 Mon Sep 17 00:00:00 2001 From: Hardik Kamboj Date: Wed, 23 Oct 2024 09:49:23 +0530 Subject: [PATCH] Update py_thresholding.markdown Changed "If the pixel value is smaller than the threshold" to "If the pixel value is smaller than or equal to the threshold" to make the line align with the working of the code. --- .../py_imgproc/py_thresholding/py_thresholding.markdown | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doc/py_tutorials/py_imgproc/py_thresholding/py_thresholding.markdown b/doc/py_tutorials/py_imgproc/py_thresholding/py_thresholding.markdown index 7a200725de..ba47f49806 100644 --- a/doc/py_tutorials/py_imgproc/py_thresholding/py_thresholding.markdown +++ b/doc/py_tutorials/py_imgproc/py_thresholding/py_thresholding.markdown @@ -11,7 +11,7 @@ Simple Thresholding ------------------- Here, the matter is straight-forward. For every pixel, the same threshold value is applied. -If the pixel value is smaller than the threshold, it is set to 0, otherwise it is set to a maximum value. +If the pixel value is smaller than or equal to the threshold, it is set to 0, otherwise it is set to a maximum value. The function **cv.threshold** is used to apply the thresholding. The first argument is the source image, which **should be a grayscale image**. The second argument is the threshold value which is used to classify the pixel values.