Skip to content

Latest commit

 

History

History
11 lines (6 loc) · 1.46 KB

ColorSpaceConversion.md

File metadata and controls

11 lines (6 loc) · 1.46 KB

Colour Space Conversion

We have implemented colour space transformation methods as the first and last step for a proper image processing pipeline. Since the image loaded via JavaFX is always in sRGB (as stated in the document of Color class, the default colour space is sRGB), only sRGB $\Longleftrightarrow$ Linear RGB model methods are implemented. It should be noted that many image processing methods assumed a linear RGB model (not applied with gamma), thus a correct result can only be obtained with this conversion involved, as a pipeline below:

Image Pipeline

The necessity of processing under correct colour space is exemplified here, here and here (interactive) for scaling. A illustration can be done with our software as stated in Rescaling #Gamma-aware Rescaling.

As noted by Alan Wolfe in his blog, the intermediate results are kept with Double rather than 8-bits for correct results with enough precision.

See the project report for more details.