colour icon indicating copy to clipboard operation
colour copied to clipboard

[FEATURE]: Implement support for the S-Cinetone transfer function.

Open matt-roberts opened this issue 2 years ago • 7 comments

Description

I've recently reversed engineered formula for the S-Cinetone transfer function. It seems like the sort of thing that you'd want to add to your library.

Reverse Engineering S-Cinetone

If you scroll towards the bottom of that page the "S-Cinetone Transfer Function" section has the formula and coefficents that you'd need. I assume that, if added, the transfer function would live here:

https://github.com/colour-science/colour/tree/develop/colour/models/rgb/transfer_functions

matt-roberts avatar May 09 '22 12:05 matt-roberts

did you digitise the curves using a tool or more manually?

I've found https://automeris.io/WebPlotDigitizer/ is reasonable for getting data for subsequent fitting

Kevin

KevinJW avatar May 10 '22 19:05 KevinJW

This reminds me Sony Hyper-Gamma curves, I don't think there has been any "numbers" released for them:

image

http://www.xdcam-user.com/tag/hypergamma/

I don't think we have ever used anything we fitted like that. The closest to be are the BMD Gen 4 curves from #591 that we haven't imlemented yet. Keen to hear people opinion on this one!

KelSolaar avatar May 11 '22 06:05 KelSolaar

did you digitise the curves using a tool or more manually?

I took three screenshots from (a very zoomed in view of) the whitepaper and rolled my own code to extract the data. If you're curious here is the code, along with the screenshots: data extraction code.zip

The my.graph function can be used to plot anything you want using a screenshot as the background, I used it to plot the final two graphs on my web page write up (And many more times to check I hadn't done anything boneheaded part way through). For example, my.graph(graph3, z$l, z$v) will plot a graph of the the extracted l and v columns (included in data.txt below) on the third graph from the whitepaper. (and this is a good way to check that the extracted data was reasonable).

If anyone doesn't want to run my code, but does want the data: data.txt

matt-roberts avatar May 11 '22 08:05 matt-roberts

This is a normal whitepaper: https://leica-camera.com/en-US/search?query=L-log

ValZapod avatar May 11 '22 13:05 ValZapod

This is a normal whitepaper: https://leica-camera.com/en-US/search?query=L-log

Oh it is finally out!

KelSolaar avatar May 12 '22 06:05 KelSolaar

It is for Leica L-log and is relatively old. I meant that is how whitepaper should look like.

ValZapod avatar May 12 '22 07:05 ValZapod

October last year is not what I would call old but anyway it is public which is good, no NDA required :)

KelSolaar avatar May 14 '22 20:05 KelSolaar