コード例 #1
0
    def __init__(self,
                 scene_canvas=None,
                 image=None,
                 input_colourspace='ITU-R BT.709',
                 correlate_colourspace='ACEScg',
                 diagram='CIE 1931',
                 **kwargs):
        self._initialised = False

        ViewBox.__init__(self, **kwargs)

        self.unfreeze()

        self._scene_canvas = scene_canvas

        self._image = None
        self.image = image
        self._input_colourspace = None
        self.input_colourspace = input_colourspace
        self._correlate_colourspace = None
        self.correlate_colourspace = correlate_colourspace
        self._diagram = None
        self.diagram = diagram

        self._diagrams_cycle = Cycle(CHROMATICITY_DIAGRAMS)

        self._grid = None

        self._label = None

        self._chromaticity_diagram_visual = None
        self._spectral_locus_visual = None
        self._RGB_scatter_visual = None
        self._input_colourspace_visual = None
        self._correlate_colourspace_visual = None
        self._pointer_gamut_visual = None
        self._pointer_gamut_boundaries_visual = None
        self._grid_visual = None
        self._axis_visual = None

        self._visuals = ('chromaticity_diagram_visual',
                          'spectral_locus_visual',
                          'RGB_scatter_visual',
                          'input_colourspace_visual',
                          'correlate_colourspace_visual',
                          'pointer_gamut_visual',
                          'pointer_gamut_boundaries_visual',
                          'grid_visual',
                          'axis_visual')

        self._visuals_visibility = None

        self._create_visuals()
        self._attach_visuals()
        self._create_camera()

        self._create_label()

        self._initialised = True
コード例 #2
0
    def __init__(self,
                 scene_canvas=None,
                 image=None,
                 input_colourspace='ITU-R BT.709',
                 correlate_colourspace='ACEScg',
                 diagram='CIE 1931',
                 **kwargs):
        self._initialised = False

        ViewBox.__init__(self, **kwargs)

        self.unfreeze()

        self._scene_canvas = scene_canvas

        self._image = None
        self.image = image
        self._input_colourspace = None
        self.input_colourspace = input_colourspace
        self._correlate_colourspace = None
        self.correlate_colourspace = correlate_colourspace
        self._diagram = None
        self.diagram = diagram

        self._diagrams_cycle = Cycle(CHROMATICITY_DIAGRAMS)

        self._grid = None

        self._label = None

        self._chromaticity_diagram_visual = None
        self._spectral_locus_visual = None
        self._RGB_scatter_visual = None
        self._input_colourspace_visual = None
        self._correlate_colourspace_visual = None
        self._pointer_gamut_visual = None
        self._pointer_gamut_boundaries_visual = None
        self._grid_visual = None
        self._axis_visual = None

        self._visuals = ('chromaticity_diagram_visual',
                         'spectral_locus_visual', 'RGB_scatter_visual',
                         'input_colourspace_visual',
                         'correlate_colourspace_visual',
                         'pointer_gamut_visual',
                         'pointer_gamut_boundaries_visual', 'grid_visual',
                         'axis_visual')

        self._visuals_visibility = None

        self._create_visuals()
        self._attach_visuals()
        self._create_camera()

        self._create_label()

        self._initialised = True
コード例 #3
0
    def __init__(self,
                 scene_canvas=None,
                 image=None,
                 input_colourspace='ITU-R BT.709',
                 correlate_colourspace='ACEScg',
                 **kwargs):
        self._initialised = False

        ViewBox.__init__(self, **kwargs)

        self.unfreeze()

        self._scene_canvas = scene_canvas

        self._image = None
        self.image = image
        self._input_colourspace = None
        self.input_colourspace = input_colourspace
        self._correlate_colourspace = None
        self.correlate_colourspace = correlate_colourspace

        self._grid = None

        self._label = None

        self._image_visual = None

        self._image_overlay = True

        self._display_input_colourspace_out_of_gamut = False
        self._display_correlate_colourspace_out_of_gamut = False
        self._display_out_of_pointer_gamut = False
        self._display_hdr_colours = False

        self._create_visuals()
        self._attach_visuals()
        self._create_camera()

        self._create_label()

        self._initialised = True
コード例 #4
0
    def __init__(self,
                 scene_canvas=None,
                 image=None,
                 input_colourspace='ITU-R BT.709',
                 correlate_colourspace='ACEScg',
                 **kwargs):
        self._initialised = False

        ViewBox.__init__(self, **kwargs)

        self.unfreeze()

        self._scene_canvas = scene_canvas

        self._image = None
        self.image = image
        self._input_colourspace = None
        self.input_colourspace = input_colourspace
        self._correlate_colourspace = None
        self.correlate_colourspace = correlate_colourspace

        self._grid = None

        self._label = None

        self._image_visual = None

        self._image_overlay = True

        self._display_input_colourspace_out_of_gamut = False
        self._display_correlate_colourspace_out_of_gamut = False
        self._display_out_of_pointer_gamut = False
        self._display_hdr_colours = False

        self._create_visuals()
        self._attach_visuals()
        self._create_camera()

        self._create_label()

        self._initialised = True
コード例 #5
0
    def __init__(self,
                 scene_canvas=None,
                 image=None,
                 input_colourspace='ITU-R BT.709',
                 reference_colourspace='CIE xyY',
                 correlate_colourspace='ACEScg',
                 settings=None,
                 **kwargs):
        self._initialised = False

        ViewBox.__init__(self, **kwargs)

        self.unfreeze()

        self._scene_canvas = scene_canvas

        self._image = None
        self.image = image
        self._input_colourspace = None
        self.input_colourspace = input_colourspace
        self._reference_colourspace = None
        self.reference_colourspace = reference_colourspace
        self._correlate_colourspace = None
        self.correlate_colourspace = correlate_colourspace

        self._settings = None
        self.settings = settings

        self._camera_presets = {}
        self._visuals_style_presets = OrderedDict()
        self._axis_presets = {}

        self._grid = None

        self._label = None

        self._colourspace_visual_resolution = 16
        self._colourspace_visual_resolution_limits = (1, 64)

        self._input_colourspace_visual = None
        self._correlate_colourspace_visual = None
        self._RGB_scatter_visual = None
        self._pointer_gamut_visual = None
        self._pointer_gamut_hull_visual = None
        self._spectral_locus_visual = None
        self._grid_visual = None
        self._axis_visual = None

        self._visuals = ('RGB_scatter_visual', 'input_colourspace_visual',
                         'correlate_colourspace_visual',
                         'pointer_gamut_visual', 'pointer_gamut_hull_visual',
                         'spectral_locus_visual', 'grid_visual', 'axis_visual')

        self._visuals_visibility = None

        self._create_presets()

        self._create_visuals()
        self._attach_visuals()
        self._create_camera()

        self._create_label()

        self._initialised = True
コード例 #6
0
    def __init__(self,
                 scene_canvas=None,
                 image=None,
                 input_colourspace='ITU-R BT.709',
                 reference_colourspace='CIE xyY',
                 correlate_colourspace='ACEScg',
                 settings=None,
                 **kwargs):
        self._initialised = False

        ViewBox.__init__(self, **kwargs)

        self.unfreeze()

        self._scene_canvas = scene_canvas

        self._image = None
        self.image = image
        self._input_colourspace = None
        self.input_colourspace = input_colourspace
        self._reference_colourspace = None
        self.reference_colourspace = reference_colourspace
        self._correlate_colourspace = None
        self.correlate_colourspace = correlate_colourspace

        self._settings = None
        self.settings = settings

        self._camera_presets = {}
        self._visuals_style_presets = OrderedDict()
        self._axis_presets = {}

        self._grid = None

        self._label = None

        self._colourspace_visual_resolution = 16
        self._colourspace_visual_resolution_limits = (1, 64)

        self._input_colourspace_visual = None
        self._correlate_colourspace_visual = None
        self._RGB_scatter_visual = None
        self._pointer_gamut_visual = None
        self._pointer_gamut_hull_visual = None
        self._spectral_locus_visual = None
        self._grid_visual = None
        self._axis_visual = None

        self._visuals = ('RGB_scatter_visual', 'input_colourspace_visual',
                         'correlate_colourspace_visual',
                         'pointer_gamut_visual', 'pointer_gamut_hull_visual',
                         'spectral_locus_visual', 'grid_visual', 'axis_visual')

        self._visuals_visibility = None

        self._create_presets()

        self._create_visuals()
        self._attach_visuals()
        self._create_camera()

        self._create_label()

        self._initialised = True