Note that there are some explanatory texts on larger screens.

plurals
  1. POConversion between RGB and RYB color spaces
    primarykey
    data
    text
    <p>I am currently trying to convert colours between RGB (red, green, blue) colour space and RYB (red, yellow, blue) colour space and back again. </p> <p>Based on the details in the following paper, I am able to convert from RYB to RGB using trilinear interpolation - where the parametric weightings (s,t,u) are the RYB colors, and the vertices of the cube are 3d points in RGB space.</p> <p><a href="http://vis.computer.org/vis2004/DVD/infovis/papers/gossett.pdf" rel="noreferrer">Paint Inspired Color Mixing and Compositing for Visualisation - Gossett and Chen</a> - Section 2.1 - Realization Details</p> <p>My difficulties are in reversing the conversion process. </p> <p>A second paper references the use of this technique and also indicates that the reverse conversion was achieved using Newton's Method. But provides no further details. This would probably indicate root finding in solving the trilinear interpolation equations. </p> <p><a href="http://ieeexplore.ieee.org/xpls/abs_all.jsp?arnumber=5673980" rel="noreferrer">On the Transfer of Painting Style to Photographic Images through Attention to Colour Contrast - Xiaoyan Zhang; Constable, M.; Ying He;</a></p> <p>Before I expand on this question with the equations, has anybody seen or solved this in a language such as Java/C/C++/C# ? </p> <p>My current approach is to take the forward equations of the trilinear interpolation (RYB to RGB), expand and rearrange to provide 3 simultaneous equations for 3 unknowns (the parametric weightings: s,t and u) then work out how to find the roots using the Newton-Raphson method. Am I going about this in the right way? </p> <p>I will edit this question shortly to provide the equations.</p> <p>Many thanks for your time,</p> <p>Ben</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload