Name
binarize - create a binary image from an input image
Usage
output = binarize(input, minval)
Input
- input
- input image
- minval
- value below which image pixels will be set to zero (defaul is zero). Above it, pixels will be set to one.
Output
- output
- binarized image. The pixel values are either zero or one.
Method
Pixels in the input image are set to zero if their values in the input image were below minval, and to one if their values were above mival.
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.