darsia.affine_balance#
- affine_balance(img, swatches_src, swatches_dst)[source]#
Apply the color balance to an image.
- Parameters:
- img
np.ndarray Image to apply the color balance to.
- swatches_src
np.ndarray Source swatches.
- swatches_dst
np.ndarray Destination swatches.
- img
- Returns:
Balanced_img(np.ndarray):Balancedimage.