rectangular_mask: Create a rectangular mask stored as a matrix of logical...

View source: R/utils.R

rectangular_maskR Documentation

Create a rectangular mask stored as a matrix of logical values.

Description

Create a rectangular mask stored as a matrix of logical values.

Usage

rectangular_mask(xN, yN, x0, y0, xw, yw, angle)

Arguments

xN

number of pixels in the x dimension.

yN

number of pixels in the y dimension.

x0

centre of rectangle in the x direction in units of pixels.

y0

centre of rectangle in the y direction in units of pixels.

xw

width in the x direction in units of pixels.

yw

width in the y direction in units of pixels.

angle

angle of rotation in degrees.

Value

logical mask matrix with dimensions fov_yN x fov_xN.


spant documentation built on Sept. 11, 2024, 9:13 p.m.