extract_swatch: Extract swatch RGB values from a raw RGB array

Description Usage Arguments Value

View source: R/swatches.R

Description

Extract swatch RGB values from a raw RGB array

Usage

1
extract_swatch(arr, xmin, xmax, ymin, ymax)

Arguments

arr

The 3D RGB array to use

xmin

The position of the leftmost pixel column

xmax

The position of the rightmost pixel column

ymin

The position of the topmost pixel row

ymax

The position of the bottom pixel row

Value

a 3-column matrix with numeric values for red, green, and blue between 0 and 255


hypercompetent/xstitch documentation built on July 22, 2019, 10:11 p.m.