Copyright | (c) Alexey Kuleshevich 2019 |
---|---|
License | BSD3 |
Maintainer | Alexey Kuleshevich <lehins@yandex.ru> |
Stability | experimental |
Portability | non-portable |
Safe Haskell | None |
Language | Haskell2010 |
Synopsis
- pattern BT601_525 :: Color RGB e -> Color BT601_525 e
- data BT601_525
- pattern BT601_625 :: Color RGB e -> Color BT601_625 e
- data BT601_625
- data D65
- primaries525 :: RealFloat e => Gamut rgb i e
- primaries625 :: RealFloat e => Gamut rgb i e
- transfer :: (Ord a, Floating a) => a -> a
- itransfer :: (Ord a, Floating a) => a -> a
- module Graphics.Color.Space
Documentation
ITU-R BT.601 (525) color space
Instances
ITU-R BT.601 (625) color space
Instances
Whitepoint D65 that is so commonly used for sRGB and other color spaces defined by
ITU: Rec.601 (525 and 625) and Rec.709 standards. It is slightly different than
D65
that is defined by CIE1931 and
D65
specified in Rec.470.
>>>
whitePoint :: WhitePoint D65 Float
WhitePoint (Chromaticity <CIExyY * D65:( 0.312700, 0.329000)>)>>>
whitePointTristimulus :: Color (XYZ D65) Float
<XYZ * D65:( 0.950456, 1.000000, 1.089058)>>>>
colorTemperature :: CCT D65
CCT {unCCT = 6504.0}
Since: 0.1.0
Instances
primaries525 :: RealFloat e => Gamut rgb i e Source #
Primaries for ITU-R BT.601 (525).
Since: 0.1.0
primaries625 :: RealFloat e => Gamut rgb i e Source #
Primaries for ITU-R BT.470 and BT.601 (625).
Since: 0.1.0
transfer :: (Ord a, Floating a) => a -> a Source #
Rec.601 transfer function "gamma". This is a helper function, therefore ecctf
should be used
instead.
\[ \gamma(L) = \begin{cases} 4.500 L & L \le 0.018 \\ 1.099 L^{0.45} - 0.099 & \text{otherwise} \end{cases} \]
Since: 0.1.0
itransfer :: (Ord a, Floating a) => a -> a Source #
Rec.601 inverse transfer function "gamma". This is a helper function, therefore dcctf
should
be used instead.
\[ \gamma^{-1}(E) = \begin{cases} E / 4.5 & E \leq gamma(0.018) \\ \left(\tfrac{E + 0.099}{1.099}\right)^{\frac{1}{0.45}} & \text{otherwise} \end{cases} \]
Since: 0.1.0
module Graphics.Color.Space