Name

threshold_to_minval - replace values below given threshold by the threshold value

Usage

output = threshold_to_minval(input, minval)

Input

input
input image
minval
value below which image pixels will be set to this value (default is zero).

Output

output
thresholded image.

Method

Pixels in the input image are set to minval if their values in the input image were below 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.

threshold_to_minval (last edited 2013-07-01 13:12:42 by localhost)