Huawei DNG files and flat field correction in rawtheapee produces a purple vignette [solved]

Note that you likely do not have permission to redistribute the dcp file.

@Mint If you want to upload bigger files, you can use a service like https://filebin.net

Also, fair warning, the support for mobile phone RAW files is pretty shaky. There have been more threads posted about this lately: e.g. Adjusting phone colors

Hi Thank you very much for the heads up. I will certainly have a look at the thread because it looks essentially the same base issue - weird dng from a huawei. Weird colors and a cast vignetting
Kind regards Mint

Did you try using Clip control in flat field tool?
http://rawpedia.rawtherapee.com/Flat-Field#Clip_Control

Hi Thank you for the suggestion and the link to the manual!
Yes I tried and in fact it does looked like it worked in removing the purple colour cast vignette but (sigh) it introduced a green cast in the center instead. A sort of reverse vignette in green. Perhaps I did it wrong? I attach 3 screenshots. No FF Clip control, Clip control and a close up of the applied clip control.
Kind regards

clip control.

Hi, Just wondering if anybody had a further take on the purple vignette I am getting on DNG when applying flat field correction. I had a look at ART (appimage 1.4) via the suggestion to look at other threads on colour and DNG in this forum and one thing surprised me straight up. ART recognises the image info (f, shutter, etc) and the camera whereas RT doesn’t and just give Zeros. I was therefore excited to try the FF in ART but while there is no Purple “haze” as in RT there seem to be FF correction at all (as in the dark/shading/cast vignette remains unchanged . Either ART goes straight to ready or never leaves image processing. In fact while RT does a perfect FF correction on a FF field reff image onto it self (without the purple haze, beats me how come, why only on “real” images) then ART does not do anything when I try the same.
So I am still nowhere with this and while the Huawei P30 Pro really takes extremely good mobilephone pictures using its own Jpeg conversion - its just too weird and aggressive for anything but a small screen. So I continue to hope I can find a use for DNG so that even at full view the pictures look like something from this planet.
Kind regards Mint

Hi @Mint. Three things:

  1. try using the git version of ART, not 1.4
  2. make sure you have clicked on the “enabled” field in Flat-field correction. In RT this is not necessary, but in ART it is, otherwise nothing happens.
  3. I have recently fixed a bug in flat-field correction in ART (that’s why I was saying use the git version, not 1.4), here’s what you get now (note the enabled flat-field, circled in red):
2 Likes

I picked the fix from ART

Should work fine now in RT dev as well. Thanks @agriggio for the fix

2 Likes

Uhuuu! Thank you to you all from RT and ART - I can’t wait to try it out! What do I need to do to apply the fix my end?
Kind regards Mint

Have a look here
https://github.com/Beep6581/RawTherapee/releases/tag/nightly
and wait for an appimage which has a version number >= 5.8.2152

Edit: Or try building RT yourself. It’s not that hard.
http://rawpedia.rawtherapee.com/Linux

1 Like

I will (have a look) and try to build it myself or wait for the appimage. thank you again!!
Kind regards Mint

Sigh… I have one of those Linux thing happening - no cmake compiler - tried installing build essentials but … so I will wait for the appimage :slight_smile:

Thanks for the work, I had a similar issue trying to correct the peripheral color shift in the BMPCC OG with KIEV-16U Mir-11M 12mm F2 lens on it with flatfields. I will give this version a try.

Just one question - which perhaps is silly seeing the >= 5.8.2152 - does the build RawTherapee_dev_5.8-2178-gocc9537_20200620.Applmage 108 MB include the fix
Kind regards Mint

yes

Thank you!

Thank you all it worked it worked!!
This might be outside the Rawtherapee part of forum but I’ll try.
I saw that the fix came from Alberto and his ART editor - Thank you Alberto. So I went on his webpage for ART (which is great, both ART and the webpage) and looked under Commit, where it said that (in this case) Alberto Griggio committed 74f6161 2 days ago to fix black level computation for applying flat-field correction with two files changed: rtengine/rawimage.h and rtengine/rawimagesource.cc so I guess if I want to use ART I just wait for an appimage (or try and build one myself) with those new files included.
BTW Is there a Solved flag or anything like that to set now it is fixed?
Kind regards Mint

BTW Is there a Solved flag or anything like that to set now it is fixed?

I just [solved] it for you :slight_smile:

Have fun!
Claes in Lund, Sweden

This one should work, if you are interested:

https://github.com/aferrero2707/art-appimage/releases/download/nightly/ART_master_1.4-16-g74f6161_20200619.AppImage

1 Like

Yes! You guys are too much!
Thank you everyone again!
Now I will try and look into colour management, ICC profiles etc… to try and lift the colours a bit onn the road to usable pictures from Huawei’s exotic DNGs