Name
threshold - replace values below given threshold by zero
Usage
output = threshold(input, minval)
Input
- input
- input image
- minval
- value below which image pixels will be set to zero (default is zero). Above it, pixels will not be changed.
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 remain unchanged 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.