-
Notifications
You must be signed in to change notification settings - Fork 323
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False colors under tungsten illumination #2729
Comments
Reported by |
Reported by
|
Reported by |
Reported by
|
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by - _Attachment: [k10d-tungsten.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-15/k10d-tungsten.dcp)_ - _Attachment: [k10d-daylight.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-15/k10d-daylight.dcp)_ |
Reported by - _Attachment: [k10d-dual.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-16/k10d-dual.dcp)_ |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by - _Attachment: [Pentax K10D 2015-04-22 daylight tungsten DPE.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-22/Pentax K10D 2015-04-22 daylight tungsten DPE.dcp)_ - _Attachment: [Pentax K10D 2015-04-22 daylight tungsten dcamprof.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-22/Pentax K10D 2015-04-22 daylight tungsten dcamprof.dcp)_ - _Attachment: [Pentax K10D 2015-04-22 daylight tungsten xrite.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-22/Pentax K10D 2015-04-22 daylight tungsten xrite.dcp)_ - _Attachment: [PentaxK10D 2015-04-20 passport daylight.icc](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-22/PentaxK10D 2015-04-20 passport daylight.icc)_ - _Attachment: [PentaxK10D 2015-04-22 passport tungsten.icc](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-22/PentaxK10D 2015-04-22 passport tungsten.icc)_ |
Reported by - _Attachment: [dcp-tungsten.json](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-23/dcp-tungsten.json)_ - _Attachment: [dcp-daylight.json](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-23/dcp-daylight.json)_ |
Reported by |
Reported by |
Reported by - _Attachment: [Pentax K10D 2015-04-22 daylight tungsten dcamprof.dcp](https://storage.googleapis.com/google-code-attachments/rawtherapee/issue-2747/comment-26/Pentax K10D 2015-04-22 daylight tungsten dcamprof.dcp)_ |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Reported by |
Bump up .. The fact that the single illuminant dcps was working correctly before, makes me suspect that an adaptation code is somewhere in RT workflow and now with the bradford adaptation in dcp two adaptation are applied one upon another. We can either
|
@Beep6581 I am not familiar with DcamProf .. is it true that it can build dual illuminant dcps even from a single illuminant raw sample ?. |
You can force dual illuminant profiles yes, but it's basically just used for copying Adobe Lightroom's color matrices to avoid white balance shift when using DCamProf profiles in Adobe's products. It can't make a "sane" dual illuminant profile from a single raw sample though, it's not possible as the profiler needs the information of how the camera responds under both illuminants to make a dual-illuminant profile with matrices and LUTs that are adapted for those lights. I guess you could make some educated guess on how the camera would respond under a different light with some statistical modeling etc, but DCamProf doesn't have that. |
Could you point to the commit and the color measurements which show this? |
@Beep6581 it was 4.2.101 I think .. see the first post of the current issue .. there is a link with samples there .. No measures (I have to build again the measuring structure ..) but the result is obvious with naked eyes .. |
Have you compared to ACR/Lightroom/DNG reference code behavior? I don't think it makes sense to have an own DNG Profile interpretation in RT. The adapatation patch was made to put the conversion in line with the "standard". Profile makers that make DNG profiles must be able to rely on that the DNG-using software is actually following Adobe's document on how to render. I could be some problem with the profiles themselves. Try loading the same profile into some Adobe product and see if the result differs. If Adobe renders colors "right" with the same profile and RT "wrong", then there is some bug somewhere, but if Adobe renders the colors equally "wrong", I don't think RT should be "fixed", the profile should be fixed instead -- as I don't think it's a good to break the documented DNG standard so the situation eventually becomes as bad as with ICC... Step 1: verify if RT's rendering is following the DNG standard When we know the answer to that we can decide which action to take. It's not unthinkable to me that Adobe's Bradford adaptation is a bad idea, but it's standard, so if we don't like it it's better to redesign the profiles to counteract that conversion, which I guess would be to render a forward matrix from the color matrix. |
@atorger @Beep6581 But I checked with RT the latest dcps from #3269 (comment) .. they look almost fine (well .. red component is still too much) on tungsten .. unlike with Canon 5D3 dcp (first post, build by x-rite's utility ?) which is terrible !! Anders, my point is that all profiles worked fine (for all illumination temps) before your patch so a kind of adaptation must exist in RT .. after your patch for Bradford adaptation on dcps (where I see no mention of changes in other places) some dcp profiles stopped working fine .. could we relate this with possibly double adaptation ? |
@iliasg or anyone, could you provide a link to a raw file + DCP where this happens? |
Some kind of double adaptation sounds like a plausible theory. The thing is that I verified the patch by comparing to Lightroom and found no error back then, it was an A equals B test, that is no subjectivity. It was a long time ago though so I could have made some mistake in the testing. I think you could use Adobe DNG Profile Editor to get a reference rendering with DCPs, it's free. |
Without having time to retest my theory is that RT is doing it right, but maybe the DCP way of converting the colormatrix is not so good. Not all aspects of the DNG standard is good, Adobe themselves have changed their profiles designs over the years. No modern profile use colormatrix only (it was abandoned like 10 years ago), but use forwardmatrix for the actual color and colormatrix only for color temperature estimations (for which RT has its own model by the way). The DNG document doesn't state it clearly but between the lines I read forwardmatrix was added because colormatrix model didn't really work well. Should be said that ICC matrix profiles has always worked the "forward matrix way" A profile with only a single forward matrix will not get its matrix Bradford-transformed but just whitebalanced - as the DNG document says, and thus work as RT did before the patch, and the same way as a matrix-only ICC profile is handled. If my theory is right the right way is to fix the profiles (convert from colormatrix to forwardmatrix profile), and the "easy" way break standard behavior and restore as before, but I wouldn't like that. |
It's a Canon 5DIII file linked below and the dcp is the one that RT distributes and gets autoselected by default. It;s a profile build by x-rite's profiler .. |
Quoting the DNG spec page 81, about the forward matrix: "The use of the forward matrix tags is recommended for two reasons. First, it allows the camera That is, it sounds to me that even Adobe found out that the adapting via bradford probably ain't that good, if D50 to StdA is one of those "extreme cases".
There's a special place in hell for programmers that make their own interpretations of standards and thus fragment them into meaninglessness. DNG is not a true standards body standard but it is at least an attempt to bring some order into the industry when it comes to camera profiles, and I think we should support that, rather than contributing to fail it. We shouldn't have a special RT DCP pipeline, then it becomes as broken like with ICC where different raw converters have different ways to interpret them. So I oppose removing bradford adaptation even if it makes better colors for old DCPs. |
Exactly the same issue: my StdA target was shoot under 2600K tungsten lamp. But when I create dual illuminated profile and specify -i StdA in make-dcp red colours became pink at ~2800K white balance. But when I keep only -I D55 then everything works well. I already tried make-profile with both -i 2600K (which makes target shot neutral) and -i StdA... the same result. Warm red becomes pink, but at 5000K white balance red colours are okay. Then I've tried to compose two sources of light to achieve 2900K while target shooting... and the same! |
Originally reported on Google Code with ID 2747
Reported by
iliasgiarimis
on 2015-04-21 09:42:43The text was updated successfully, but these errors were encountered: