Skip to content
This repository has been archived by the owner on Nov 22, 2019. It is now read-only.

Commit

Permalink
Add ACES Colorspace #8
Browse files Browse the repository at this point in the history
  • Loading branch information
mfe committed Jan 22, 2014
1 parent a02fc04 commit 08473f5
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions utils/colorspaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -203,15 +203,37 @@ def gamma_to_lin(self, value):
return colors_helper.gamma_to_lin(value, self._gamma)


class ACES(AbstractColorspace):
def get_red_primaries(self):
return 0.73470, 0.26530

def get_green_primaries(self):
return 0.00000, 1.00000

def get_blue_primaries(self):
return 0.00010, -0.07700

def get_white_point(self):
return 0.32168, 0.33767

def lin_to_gamma(self, value):
return value

def gamma_to_lin(self, value):
return value


REC709 = Rec709()
ALEXALOGCV3 = AlexaLogCV3()
WIDEGAMUT = WideGamut()
REC2020_10B = Rec2020(is_ten_bits=True)
REC2020_12B = Rec2020(is_ten_bits=False)
ACES = ACES()
COLORSPACES = {
'REC709': REC709,
'ALEXALOGCV3': ALEXALOGCV3,
'WIDEGAMUT': WIDEGAMUT,
'REC2020_10bits': REC2020_10B,
'REC2020_12bits': REC2020_12B,
'ACES': ACES,
}

0 comments on commit 08473f5

Please sign in to comment.