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

View source: R/collect-bricks.R

collect_bricksR Documentation

Consolidate 1x1 bricks into larger ones of the same color

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

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.


ryantimpe/brickr documentation built on Jan. 15, 2024, 10:29 p.m.