
Create an elliptical mask stored as a matrix of logical values.
Source:R/utils.R
elliptical_mask.RdCreate an elliptical mask stored as a matrix of logical values.
Arguments
- xN
number of pixels in the x dimension.
- yN
number of pixels in the y dimension.
- x0
centre of ellipse in the x direction in units of pixels.
- y0
centre of ellipse in the y direction in units of pixels.
- xr
radius in the x direction in units of pixels.
- yr
radius in the y direction in units of pixels.
- angle
angle of rotation in degrees.