dot-fit_cj: Fit contrast ratios

Description Usage Arguments Details Value

Description

Equation 9. There is a slight modification where I include pure black and pure white as additional comparisons to avoid the algorithm settling on those values. This also has an effect of reducing saturation more generally.

Usage

1
.fit_cj(new_mat, contiguity_matrix, threshold = 5)

Arguments

new_mat

Matrix of rgb colors

contiguity_matrix

Matrix for comparisons

threshold

Fit threshold

Details

The threshold can be modified, especially for the black/white comparisons, but I had to set them >6 to get interesting results. You could try using different values for each one.

Value

Vector of cj values


tsostarics/ftpals documentation built on Dec. 23, 2021, 12:59 p.m.