fit_transform: Calculate UCIE geometric transformation values

View source: R/ucie_transformations.R

fit_transformR Documentation

Calculate UCIE geometric transformation values

Description

Scales, rotates and transforms the data to best fit in the CIELAB colourspace. Wrapper around ucie:::FitColorsFunction()

Usage

fit_transform(dataset, rownames_col = NULL, center = TRUE)

Arguments

dataset

A data frame or matrix of 3D values.

rownames_col

Optional: name of column to ignore during calculations.

center

A boolean indicating whether data should be centered during the fitting process. Improves performance, but requires center = TRUE in transform_data() too.

Details

dataset can be a 2D or 3D matrix or data frame, with optional rownames in the first column or a rownames_col-defined column.

Value

Returns a numeric vector with a scaling value (S), 3 rotation values (RotL, Rota, Rotb), and 3 translation values (TrL, Tra, Trb) for use in transform_data().


casblaauw/phosphocie documentation built on March 30, 2022, 8:28 p.m.