darsia.CustomColorChecker#
- class CustomColorChecker(reference_colors=None, image=None, path=None)[source]#
Bases:
ColorCheckerSwatch 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_colors
np.ndarray,optional Reference RGB colors.
- image
np.ndarray,optional Image restricted to color checker.
- path
Path,optional Path for storing and fetching reference colors.
- reference_colors
Methods
plot()Plot color checker.
save(path)Attributes
swatches_RGBswatches_rgb