image_matrix: Convert an image to a 0/1 matrix

View source: R/image_matrix.R

image_matrixR Documentation

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)


anthonypileggi/worrrd documentation built on Jan. 13, 2023, 11:15 a.m.