mirror of
https://github.com/opencv/opencv.git
synced 2024-11-24 03:00:14 +08:00
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.
This commit is contained in:
parent
57ccbee25d
commit
9fc7ca8ed1
@ -11,7 +11,7 @@ Simple Thresholding
|
|||||||
-------------------
|
-------------------
|
||||||
|
|
||||||
Here, the matter is straight-forward. For every pixel, the same threshold value is applied.
|
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 function **cv.threshold** is used to apply the thresholding.
|
||||||
The first argument is the source image, which **should be a grayscale image**.
|
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.
|
The second argument is the threshold value which is used to classify the pixel values.
|
||||||
|
Loading…
Reference in New Issue
Block a user