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
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.