Colorspaces in darktable

(Edgardo Hoszowski) #1

I need to do some colorspace transformation for a new feature I’m working on, but color theory is not really my thing, and I want to make sure I’m doing it right.

What I need to do is to transform from/to the colorspace a given module is working on.
Right now darktable have:
raw until demosaic
rgb until colorin
lab until colorout
rgb again

I’m using dt_sRGB_to_XYZ() / dt_XYZ_to_Lab <-> dt_Lab_to_XYZ() / dt_XYZ_to_sRGB() [1]
but as the code says, linear sRGB -> gamma corrected sRGB, probably this is not the right way to do it.

Any help on this will be appreciated.



Would ImageMagick help you?

Have fun!
Claes in Lund, Sweden

Addendum @Edgardo_Hoszowski I’m sorry, I completely misunderstood your question :confounded:

(Edgardo Hoszowski) #3

This probably should be coded in dt, but still the main issue is to know exactly what colorspace both rgb are.

(darix) #4

Just a general remark:

If you work on a new feature for darktable, it might be a good idea to present the feature before hand. the devs might be able to give you some advice on how to implement it.