R/utils.R
rectangular_mask.Rd
Create a rectangular mask stored as a matrix of logical values.
rectangular_mask(xN, yN, x0, y0, xw, yw, angle)
number of pixels in the x dimension.
number of pixels in the y dimension.
centre of rectangle in the x direction in units of pixels.
centre of rectangle in the y direction in units of pixels.
width in the x direction in units of pixels.
width in the y direction in units of pixels.
angle of rotation in degrees.
logical mask matrix with dimensions fov_yN x fov_xN.