Skip to content

The "save" function of real Image types produces empty files when called with the default syntax #22

Description

@DrLutzi

Real-valued image types, such as ImageGrayd and ImageRGBd, produce empty files when called with the default syntax (save(filename)). This enforces the use of IO::save01_in_u8(image, filename), but this is inconvenient with template types that can be different Image types.

I suggest to change save(filename) so that it saves real-valued images by assuming their value is between 0 and 1, and clamp values that are not in this range.

  • Change the behavior of the save function to make it usable by templates

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions