colour_hdri.recovery Package¶
Module Contents¶
-
colour_hdri.recovery.
highlights_recovery_blend
(RGB, multipliers, threshold=0.99)[source]¶ Performs highlights recovery using Coffin (1997) method from dcraw.
Parameters: - RGB (array_like) – RGB colourspace array.
- multipliers (array_like) – Normalised camera white level or white balance multipliers.
- threshold (numeric, optional) – Threshold for highlights selection.
Returns: Highlights recovered RGB colourspace array.
Return type: ndarray
References
[1] Coffin, D. (2015). dcraw. Retrieved from https://www.cybercom.net/~dcoffin/dcraw/
-
colour_hdri.recovery.
highlights_recovery_LCHab
(RGB, threshold=None, RGB_colourspace=<Mock name='mock.sRGB_COLOURSPACE' id='139671442522744'>)[source]¶ Performs highlights recovery in CIE LCHab colourspace.
Parameters: - RGB (array_like) – RGB colourspace array.
- threshold (numeric, optional) – Threshold for highlights selection, automatically computed if not given.
- RGB_colourspace (RGB_Colourspace, optional) – Working RGB colourspace to perform the CIE LCHab to and from.
Returns: Highlights recovered RGB colourspace array.
Return type: ndarray