collect_bricks: Consolidate 1x1 bricks into larger ones of the same color

Description Usage Arguments Value

View source: R/collect-bricks.R

Description

Internal function for collecting single bricks into large ones. Used in both mosaics and 3D models. Automatically generate missing piece_type or mid_level.

Usage

1
collect_bricks(image_list, use_bricks = NULL, default_piece_type = "b")

Arguments

image_list

List output containing an element Img_lego.

use_bricks

Array of brick sizes to use in mosaic. Defaults to c('4x2', '2x2', '3x1', '2x1', '1x1')'.

default_piece_type

Piece type to use in absence of piece_type column.

Value

A list with element Img_bricks containing a data frame of the x- & y-coordinates, R, G, B channels, and brick ID. Other helper elements.


brickr documentation built on Aug. 3, 2020, 1:07 a.m.