threshold(src, threshold, maxval, type)ΒΆ
Remove noise from the passed image.
Inputs
| name | type | default | description |
|---|---|---|---|
| src | image | Source image | |
| threshold | int | Threshold value | |
| maxval | int | Maximum value to use with the THRESH_BINARY and THRESH_BINARY_INV thresholding types | |
| type | int | Thresholding type |
Outputs
| name | type | default | description |
|---|---|---|---|
| dst | image | Destination image |
Constants
| name | type | value |
|---|---|---|
| THRESH_BINARY | int | 0 |
| THRESH_BINARY_INV | int | 1 |
| THRESH_TRUNC | int | 2 |
| THRESH_TOZERO | int | 3 |
| THRESH_TOZERO_INV | int | 4 |