Converts an ASCII map to a matrix

ascii_grid(image_map)

Arguments

image_map

Map from ascii_map

Value

A matrix

Examples

bayes_img <- ascii_data("bayes.png") # path to the bayes image bayes_map <- ascii_map(bayes_img) # construct ASCII map
#> Warning: Assuming third dimension corresponds to colour
#> Warning: Using a rescale value of 0.175
bayes_grid <- ascii_grid(bayes_map) # make grid