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

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.