Name
adaptive_mask - create a mask from a given image. The mask will have values one, zero, with Gaussian smooth transition between two regions.
Usage
mask = adaptive_mask(input, nsigma = 1.0)
Input
- input
- input image
- nsigma
- value for initial thresholding of the image. Pixels above avergae + nsgima*sigma will be set to one.
Output
- mask
- The mask will have values one, zero, with Gaussian smooth transition between two regions.
Method
Please consult the python code.
Author / Maintainer
Pawel A. Penczek
Keywords
- category 1
- SEGMENTATION
- category 2
- ADAPTIVE
- category 3
- MORPHOLOGY
Files
morphology.py
Maturity
- stable
- works for most people, has been tested; results vary.
Bugs
None. It is perfect.