Name
collapse - binarize image by setting to zero values within predefined range, and to one outside of this range
Usage
output = collapse(input, minval, maxval)
Input
- input
- input image
- minval
- minimum bracket value (default is -1.0).
- maxval
- maximum bracket value (default is 1.0).
Output
- output
- collapsed image.
Method
Pixels in the input image are set to one if their values in the input image were between minval and maxval, and set to zero if they were outside of this range'.
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.