Differentiable color conversion functions for pytorch
Supports batch conversion.
Transformations supported:
-
RGB -> YCbCr
-
YCbCr -> RGB
-
RGB -> HSV
-
HSV -> RGB
-
RGB -> LAB
-
LAB -> RGB
Based on conversions from skimage.color and https://www.easyrgb.com/en/math.php.