Set and replace operations


Replace by constant if smaller than constant


source lt <value> -> destination


Returns: void.

Replace in the image values lower than the given value with the given value.

Replace by constant if greater than constant


source gt <value> -> destination


Returns: void.

Replace in the image values greater than the given value with the given value.

Example:

b gt 100 -> a

All values greater than 100 in image `b' are set to `100' in image `a', the rest is copied unmodified.