darsia.LabelColorMap#

class LabelColorMap(colors=None)[source]#

Bases: object

Mapping from integer labels to representative RGB colours.

Methods

labels()

load(path)

Load base colors from a csv file.

mean()

save(path)

Save base colors to a csv file.

load(path)[source]#

Load base colors from a csv file.

Parameters:
pathPath

The path to the csv file.

save(path)[source]#

Save base colors to a csv file.