View source on GitHub |
Writes the values in a multi-channel ndarray into an EXR file.
tfg.io.exr.write_exr(
filename, values, channel_names
)
Args | |
---|---|
filename
|
The filename of the output file |
values
|
A numpy ndarray with shape [height, width, channels] |
channel_names
|
A list of strings with length = channels |
Raises | |
---|---|
TypeError
|
If the numpy array has an unsupported type. |
ValueError
|
If the length of the array and the length of the channel names list do not match. |