Operation: binary live or die

binary live or die

Author:

Volker Bäcker

The idea comes from:
Leighton T. Izu, W. Gil Wier and C. William Balke
Theoretical Analysis of the Ca21 Spark Amplitude Distribution
Biophysical Journal Volume 75 September 1998 1144–1162

Example

input image result

Description

The operation implements a totalistic cellular automaton rule. It runs a given number of iterations. In each iteration each pixel is replaced by 255 if the number of pixels in his neighborhood is not smaller than the threshold and by 0 otherwise.  

Options

options
radius: The radius of the neighborhood. A radius 3 means for example that the neighborhood has a size of 7x7 pixel.
count threshold: The minimum number of pixels in the neighborhood that must be alive (255) for the central pixel to become or stay alive.
iterations: The number of iterations the operation runs. In each iteration the values of the preceding iteration are used to compute the new result.

Parameter

The only parameter is the input image. It should be an 8-bit mask image, containing only the intenbsities 0 and 255.

Results

The result is an 8-bit mask image.