darsia.ColorBalance#
- class ColorBalance[source]#
Bases:
BaseBalanceClass for finding and applying a linear color balance.
Methods
apply_balance(img)Apply the color balance to an image.
find_balance(swatches_src, swatches_dst)Find the color balance of an image.
Attributes
Color balance matrix.
- find_balance(swatches_src, swatches_dst)[source]#
Find the color balance of an image.
- Parameters:
- swatches_src
np.ndarray Source swatches.
- swatches_dst
np.ndarray Destination swatches.
- swatches_src
- balance_scaling#
Color balance matrix.