-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
GoPro HERO10 Black Raw file has no white balance #10072
Comments
There might be something fishy going on with the HERO10
when compared to e.g. a HERO9 sample
Sensor is supposedly the same going by the reviews and press releases so I would expect the same
0,0,0 white balance seems just plain wrong... Does it open ok in any other apps? |
I've just tested RawTherapee, but RawTherapee doesn't support GPR files. Adobe DNG Converter is able to convert the file and creates this DNG: I haven't tested the free GPR converter from GoPro: |
Interesting, same It is possible then that there is indeed something wrong going in in the rawspeed decoder/decompressor... There's been some changes around VC5 as I've noticed recently, do you mind trying out the current development build? |
I tested 3.7.0+1122_g362a952f6, no change... At this point I think it's best to close this issue, and open a formal camera support one (link to this one in there though). |
I think we don't need a new issue. Adding the tag "scope: camera support" and assigning it to @LebedevRI does the trick. |
Can you contribute a sample to RPU that has been directly copied from camera and not modified in any way? |
I guess let's wait on gopro/gpr#33 first? |
|
I see. It looked like it had some windows filepaths, but then the other files also have that. |
I don't think it's a white balance issue - in both the GPR and converted DNG case the field is invalid and dt gives up and defaults to something sane (D65). It looks more like a decoding issue to me: no matter how you change the black & white levels in dt and white balance, the image looks pink/purple... Here's the histogram of the GPR once I set the black level to 0 and white level to 16384 (white balance is at 6504K): Here's the histogram of the Adobe's VC5 decode -> JPEG reencode from the DNG (same black/white and WB settings): It's as if like the color planes are swapped almost, but the decoded values are also somehow strange (esp. for the green plane)... For the HERO9 the histograms of the GPR and the converted DNG look identical w/ equivalent dt settings. |
Perhaps its a different pattern of the sensor, have a look at the exif information: HERO10
when compared to a HERO9 sample
|
Yeah, it's pretty obvious wrong, just need to unbreak the compiler first.. |
Edit: I take it back, it looks like it might be as simple as outputting channels in the correct CFA order as input has been already been reassigned to correct wavelet planes during encoding... The strange reconstructed R/G/B histogram values above are a side effect of the demosaic method - there are no values below the 200 black level in the "passthrough" demosaic mode. |
Confirmed that indeed out(2 * row + 0, 2 * col + 0) = static_cast<uint16_t>(mVC5LogTable[g1]);
out(2 * row + 0, 2 * col + 1) = static_cast<uint16_t>(mVC5LogTable[b]);
out(2 * row + 1, 2 * col + 0) = static_cast<uint16_t>(mVC5LogTable[r]);
out(2 * row + 1, 2 * col + 1) = static_cast<uint16_t>(mVC5LogTable[g2]);
resolves the issue. I used something like |
Heh. |
This issue did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
How is your compiler doing? |
Hi, I see that this issue is still happening. Is there some way for me to fix it? Thanks |
@arbasel the easiest you can do is to use @kmilos patch. It's not elegant but works. Or provide a better patch, that satisfies @LebedevRI . |
This issue did not get any activity in the past 60 days and will be closed in 365 days if no update occurs. Please check if the master branch has fixed it and report again or close the issue. |
How do I use @kmilos patch? Is that something I can plug-in to the current version of the app or is that something that requires recompiling? |
It requires recompiling. And I think it should be merged, even if it is ugly. It works and is better then the something that doesn't wok. |
FWIW, the other problem (at least on the HERO10 samples available on RPU), is that they simply lack white balance in EXIF. |
I think this can be closed now as Roman merged a proper fix for 4.2? @dterrahe @LebedevRI |
Technically, no. HERO10 indeed do not have camera white balance, at least the samples on RPU. |
To Reproduce
GOPR0119.zip
Expected behavior
less pink
Screenshots
A bisect is much appreciated and can significantly simplify the developer's job.
HowTo: https://github.com/darktable-org/darktable/wiki#finding-bug-causes and https://www.youtube.com/watch?v=D7JJnLFOn4A
Platform
The text was updated successfully, but these errors were encountered: