Mentions légales du service

Skip to content

fix output parsing

PACANOWSKI Romain requested to merge wip_fix_output_parsing into master

This branch (with a very bad name) introduces principally the following changes:

  1. Image.hpp
  • modification of save method to
    virtual IMAGE_LOAD_SAVE_FLAGS save(std::string const &file_path, std::function<void(int)> progress = [](int) {},
                                       std::string additional_comments = "" ) const = 0;
  • Storage of metadata as associative map
protected:
    std::map<std::string, std::string> _metadata;
  1. All classes that inherit Image have been updated consequently

  2. EXR, ENVY and ART which supports metadata are now using the new interface and data structure

  3. Unit tests have been updated to test for loading and saving of metadata

  4. By default, Malia now saves images in exr format (for malia_rgb) and in ENVY format (for malia) when no output file is specified.

  5. Malia will append _number_of_samples_per_pixelspp to the output image filename
    when the requested filename has PNG extension (e.g., my_image_100spp.png)

Note: More code refactoring in ENVY and ART classes could probably be made to manage metadata...

Edited by Alban Fichet

Merge request reports