Skip to content

Commit 9fc7ca8

Browse files
authored
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.
1 parent 57ccbee commit 9fc7ca8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/py_tutorials/py_imgproc/py_thresholding/py_thresholding.markdown

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ Simple Thresholding
1111
-------------------
1212

1313
Here, the matter is straight-forward. For every pixel, the same threshold value is applied.
14-
If the pixel value is smaller than the threshold, it is set to 0, otherwise it is set to a maximum value.
14+
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.
1515
The function **cv.threshold** is used to apply the thresholding.
1616
The first argument is the source image, which **should be a grayscale image**.
1717
The second argument is the threshold value which is used to classify the pixel values.

0 commit comments

Comments
 (0)