binarise: Binarise a numeric array

binariseR Documentation

Binarise a numeric array

Description

This function binarises an array, setting all nonzero elements to unity.

Usage

binarise(x)

Arguments

x

An object that can be coerced to an array, or for which a morph method exists.

Value

A morphed array with the same dimensions as the original array.

Author(s)

Jon Clayden <code@clayden.org>

See Also

morph for the function underlying this operation, and erode for mathematical morphology functions.


jonclayden/mmand documentation built on March 19, 2024, 9:23 a.m.