lidaRtRee (version 4.0.5)

create_disk: Disk-shaped matrix mask

Description

Creates a matrix with TRUE values shaping a centered disk

Usage

create_disk(width = 5)

Value

A matrix with 1 for pixels inside the disk, 0 outside

Arguments

width

numeric. disk width in pixels, should be an uneven number

Examples

Run this code
create_disk(7)

Run the code above in your browser using DataLab