cinema_python.images¶
cinema_python.images.camera_utils module¶
A collection of utilities for cinema camera handling.
cinema_python.images.compositor module¶
A module that composites one or more layers together to produce a recognizable image.
-
class
cinema_python.images.compositor.Compositor_SpecA(parent=None)[source]¶ Bases:
cinema_python.images.compositor.CompositorCompositor SpecA. Loads LayerSpecs consisting of a single image. No compositing supported.
-
class
cinema_python.images.compositor.Compositor_SpecB(parent=None)[source]¶ Bases:
cinema_python.images.compositor.CompositorCompositor SpecB. Composites several LayerSpec instances together. Each LayerSpec holds all of its buffer components (depth, color, luminance, etc.).
cinema_python.images.querymaker module¶
API for creating images that correspond to a set of queries. Used by viewer primarily.
-
class
cinema_python.images.querymaker.QueryMaker[source]¶ Bases:
object-
supportsLayering()[source]¶ Predicate to query if a translator supports compositing (e.g. Spec-B). Abstract, implement in a derived class.
-
translateQuery(query)[source]¶ Receives a set of parameters from the UI. The parameters (or UI queries) come in the following form:
- total_query = { “parameter_1” : set([values_of_1]),
- “parameter_2” : set([values_of_2]), ... }
Example:
- total_query = { “phi” : set([-180]),
- “theta” : set([0]), “Slice2” : set([-0.34, -0.1, 0.1]) }
The queries are passed to the LayerRasters instances which then use cinema_store to parse these queries into image file paths. This method is expected to return a set of LayerRasters consisting of all the layers to render (each LayerRasters instance holds all of its required images). Abstract, implement in a derived class.
-
cinema_python.images.querymaker_specb module¶
Creating images that correspond to a set of queries by compositing the results together. Used by viewer primarily.
-
class
cinema_python.images.querymaker_specb.QueryMaker_SpecB[source]¶ Bases:
cinema_python.images.querymaker.QueryMakerThis class translates UI queries into a set of Spec-B LayerRasters instances (multi-image). This set of LayerRasters can be composited through the Compositor class (compositor.py).
cinema_python.images.lookup_tables module¶
Module for handling color lookup tables.
-
class
cinema_python.images.lookup_tables.LookupTable[source]¶ Color table container. - self.lut : Actual color LUT. - self.x : Vector containing the value bins. - self.adjustedBins : Vector containing the value bins Where adjustedBins is adjusted to hold a value > 1.0 in the end.
cinema_python.images.layer_rasters module¶
Manages the set of one or more fields that go into a layer.