Skip to content

As a user, I would like to scale the brightness of an image for conversion to enable more usable output. #24

@msbentley

Description

@msbentley

Is your feature request related to a problem? Please describe.
transform doesn't appear to do any kind of image value scaling when converting a PDS4 image to a bitmap. This means that for many images the result is not usable (e.g. all black, all white). This is particularly apparent when trying to transform an Array_2D_Image using float values (e.g. IEEE754LSBSingle).

Describe the solution you'd like
To add options to scale/stretch the brightness/pixel values to cover the range allowed by the output format. Many software packages offer simple linear scaling from min to max values - I would consider this a good default.

The options used by the DS9 FITS viewer are described here: https://www.mn.uio.no/astro/english/services/it/help/visualization/saoimage-ds9/ds9/mscale.html and other modes could also be implemented.

PDS4 Tools also offers linear/log/square root/squared scaling, and two choices for the histogram limits (min/max and zscale).

Describe alternatives you've considered
Using python PDS4 Tools + matplotlib.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    ToDo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions