Name
threshold_to_zero - replace values below given threshold by zero and values above by (value-threshold)
Usage
output = threshold_to_zero(input, minval)
Input
- input
- input image
- minval
- value below which image pixels will be set to zero (default is zero). Above it, pixels will be reduced to (value-threshold).
Output
- output
- thresholded image.
Method
Pixels in the input image are set to zero if their values in the input image were below minval, and change to (value-threshold) if they were above minval.
Author / Maintainer
Pawel A. Penczek
Keywords
- category 1
- MORPHOLOGY
- category 2
- SPATIAL
Files
morphology.py
Maturity
- stable
- works for most people, has been tested; test cases/examples available.
Bugs
None. It is perfect.