Skip to content

1am9trash/SDR_HDR_Converter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HDR SDR converter

Basic Information

A lightweight converter between different formats of images.

Run

Use cargo run to execute the sample code.

Features

For an image, it has below formats.

format intro
dynamic range The brightness range of the display signal, determining whether it's in HDR or SDR format.
signal status The state of the signal, which can be optical or electrical, transformed using different EOTFs/OETFs.
color depth The number of bits used by each color channel.
color space Determining how colors are represented and the gamut coverage.
color format Specifying the arrangement of color channels within a pixel.

This work makes it easy to convert images with arbitrary formats. Currently supported formats are:

format supported classes
dynamic range HDR, SDR
signal status Linear, PQ, HLG, Gamma709
color depth 8-bit, 16-bit
color space Rec709, Rec2020
color format RGB

Procedure

  1. Nonrmalizing the input to [0, 1]
  2. EOTF transformation
  3. Color space conversion
  4. Tone mapping
  5. OETF transformation
  6. Quantization to correct range based on color depth

Performance

Original HDR To SDR Back To HDR

Todo

  • Create more friendly interface, maybe turn the project into a command line tool.
  • Extend TMO and iTMO.
  • Currently PQ, HLG seens a little bit too bright. Take some time to check it.

References

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages