Name
threshold_outside - replace values outside given thresholds by respective threshold values
Usage
output = threshold_outside(input, minval, maxval)
Input
- input
- input image
- minval
- value below which image pixels will be set to this value.
- maxval
- value above which image pixels will be set to this value.
Output
- output
- thresholded image.
Method
Pixels in the input image are set to minval if their values in the input image were below minval and to maxval if their values were above maxval.
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.