colour_checker_detection.detection.templates.Template#
- class colour_checker_detection.detection.templates.Template(swatch_centroids: ndarray, colours: ndarray, correspondences: list, width: int, height: int)[source]#
Template dataclass for colour checker structure representation.
- Parameters:
swatch_centroids (numpy.ndarray) – Centroids of the swatches.
colours (numpy.ndarray) – Colours of the swatches.
correspondences (list) – Possible correspondences between the reference swatches and the detected ones.
width (int) – Width of the template.
height (int) – Height of the template.
- __init__(swatch_centroids: ndarray, colours: ndarray, correspondences: list, width: int, height: int) None#
Methods
__init__(swatch_centroids, colours, ...)Attributes
swatch_centroidscolourscorrespondenceswidthheight