darsia.CustomColorChecker#

class CustomColorChecker(reference_colors=None, image=None, path=None)[source]#

Bases: ColorChecker

Swatch colors determined from user-prescribed input image.

Define custom color checker.

Three possible sources are available for the reference colors: 1. Read from array in (4,6,3) shaped array 2. Extract from image 3. Read from file The priority is as above.

Parameters:
reference_colorsnp.ndarray, optional

Reference RGB colors.

imagenp.ndarray, optional

Image restricted to color checker.

pathPath, optional

Path for storing and fetching reference colors.

Methods

plot()

Plot color checker.

save(path)

Attributes

swatches_RGB

swatches_rgb