Name

notzero - create a binary image from an input image replacing pixels with nonzero values with 1.0

Usage

output = notzero(input)

Input

input
input image

Output

output
binarized image. The pixel values are either zero or one.

Method

Pixels in the input image are set to one if their values in the input image were not zero.

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.

notzero (last edited 2016-03-09 20:24:20 by penczek)