Skip to content

Text present in tutorial on Image Thresholding is misleading #26355

@hardikkamboj

Description

@hardikkamboj

Describe the doc issue

The doc https://docs.opencv.org/4.x/d7/d1b/group__imgproc__misc.html#gaa9e58d2860d4afa658ef70a9b1115576 mentions that in simple thresholding, all the pixels greater than the threshold are changed to have the maximum value, whereas all the pixels having pixel value less than the threshold value are changed to 0.

Screenshot 2024-10-23 at 9 55 13 AM

However, in the tutorial here - https://github.com/opencv/opencv/blob/4.x/doc/py_tutorials/py_imgproc/py_thresholding/py_thresholding.markdown it is mentioned that " If the pixel value is smaller than the threshold, it is set to 0, otherwise it is set to a maximum value" which is technically wrong as it seems to state that the pixel value having value equal to the threshold will be set to maximum value.

Fix suggestion

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions