find_center: Find the Center of a Binary Mask

Description Usage Arguments Details Value Author(s) See Also Examples

Description

The center of a binary mask is determined.

Usage

1

Arguments

M

is a binary mask (multidimensional array of logical values).

Details

This method most likely only works with convex three-dimensional shapes (e.g., a hyper-rectangle). Further testing is required to know the limits of the current implementation.

Value

A vector of values the same length as the input array.

Author(s)

Brandon Whitcher

See Also

ftm

Examples

1
2
3
4
M <- array(FALSE, rep(10,3))
M[6:10,6:10,6:10] <- TRUE
Mc <- find.center(M)
print(Mc)

dcemriS4 documentation built on May 2, 2019, 4:33 p.m.