colour_hdri.NodeReadImage#
- class colour_hdri.NodeReadImage(*args: Any, **kwargs: Any)[source]#
Read the image from input path and return its data and metadata. The decoding CCTF of the input colourspace is used to linearise the image if it is stored using non-linear file format.
Methods
process()
Return a new instance of the
colour.utilities.TreeNodeclass.- Parameters:
args (Any) – Arguments.
kwargs (Any) – Keywords arguments.
- __init__(*args: Any, **kwargs: Any) None[source]#
- Parameters:
args (Any)
kwargs (Any)
- Return type:
None
Methods
__init__(*args, **kwargs)add_input_port(name[, value, description, ...])Add an input port with specified name and value to the node.
add_output_port(name[, value, description, ...])Add an output port with the specified name and value to the node.
connect(source_port, target_node, target_port)Connect the specified source port to the specified target port of another node.
disconnect(source_port, target_node, target_port)Disconnect the specified source port from the specified target node port.
get_input(name)Return the value of the input port with the specified name.
get_output(name)Return the value of the output port with the specified name.
is_inner()Determine whether the node is an inner node.
is_leaf()Determine whether the node is a leaf node.
is_root()Determine whether the node is a root node.
log(message[, verbosity])Log the specified message using the specified verbosity level.
process(**kwargs)Process the node.
remove_input_port(name)Remove the input port with the specified name from the node.
remove_output_port(name)Remove the output port with the specified name from the node.
render([tab_level])Render the node and its children as a formatted tree string.
set_input(name, value)Set the value of an input port with the specified name.
set_output(name, value)Set the value of the output port with the specified name.
to_graphviz()Generate a string representation for node visualisation with Graphviz.
walk_hierarchy([ascendants])Generate a generator to walk the
colour.utilities.TreeNodetree hierarchy.Attributes
MAPPING_LOGGING_LEVEL_TO_CALLABLEchildrenGetter and setter for the node children.
dataGetter and setter for the node data.
descriptionGetter and setter for the node description.
dirtyGetter and setter for the node's dirty state.
edgesGetter for the edges of the node.
idGetter for the node identifier.
input_portsGetter for the input ports of the node.
leavesGetter for all leaf nodes in the hierarchy.
nameGetter and setter for the node name.
output_portsGetter for the output ports of the node.
parentGetter and setter for the node parent.
rootGetter for the root node of the tree hierarchy.
siblingsGetter for the sibling nodes at the same hierarchical level.