Compares each pixel with a threshold T. The level is given as a percentage so it works the same in 8 and 16 bits.
Parameters
| Parameter | Meaning |
|---|---|
| Level (%) | p, from 0 to 100 %. |
| Type | Rule from the table above. |
References
- OpenCV 4.x documentation — Miscellaneous Image Transformations (threshold, adaptiveThreshold). docs.opencv.org/4.x/d7/d1b/group__imgproc__misc.html
- R. C. Gonzalez, R. E. Woods. Digital Image Processing, 4th ed. Pearson, 2018.