Module read

Read an exr image.

For great flexibility and customization, use the read() function. The return value of the read() function must be further customized before reading a file. For very simple applications, you can alternatively use one of these functions:

  1. read_first_rgba_layer_from_file(path, your_constructor, your_pixel_setter): You specify how to store the pixels. The first layer containing rgba channels is then loaded from the file. Fails if no rgba layer can be found.

  2. read_all_rgba_layers_from_file(path, your_constructor, your_pixel_setter): You specify how to store the pixels. All layers containing rgba channels are then loaded from the file. Fails if any layer in the image does not contain rgba channels.

  3. read_first_flat_layer_from_file(path): The first layer containing non-deep data with arbitrary channels is loaded from the file. Fails if no non-deep layer can be found.

  4. read_all_flat_layers_from_file(path): All layers containing non-deep data with arbitrary channels are loaded from the file. Fails if any layer in the image contains deep data.

  5. read_all_data_from_file(path): All layers with arbitrary channels and all resolution levels are extracted from the file.

    Note: Currently does not support deep data, and currently fails if any layer in the image contains deep data.

Modules

Structs

Functions