image_matrix: Convert an image to a 0/1 matrix
Description
Convert an image to a 0/1 matrix
Usage
image_matrix(
img = "https://upload.wikimedia.org/wikipedia/commons/9/96/Tux_Paint_banana.svg",
rows = 10,
columns = 10
)
Arguments
- img
full path to image (character/scalar)
- rows
number of rows (numeric/scalar)
- columns
number of columns (numeric/scalar)