collage_grid: Adds a grid to show the parts of the image to be replaced by...

Description Usage Arguments Examples

Description

Adds a grid to show the parts of the image to be replaced by tiles

Usage

1
collage_grid(img, size = 10, grid_col = "white")

Arguments

img

image

size

pixel size

grid_col

color to use for the grid

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
## Not run: 
  img <- image_read( sample_image() )

  # a grid of 10x10 tiles
  collage_grid( img, size = 10, grid_col = "white" )

  # a grid with 10 lines
  collage_grid( img, size = lines_cut(img, 10) )

  # a grid with 10 columns
  collage_grid( img, size = columns_cut(img, 10) )

## End(Not run)

ThinkRstat/collage documentation built on May 6, 2019, 7:25 a.m.