Magic Lantern Forum

Using Magic Lantern => General Help Q&A => Topic started by: pletharoe on October 15, 2015, 01:25:53 PM

Title: Dual ISO causes funny colours
Post by: pletharoe on October 15, 2015, 01:25:53 PM
After post processing with CR2HDR the colours in half of my dual ISO shots are off.  Increasing the temperature and tint in DxO seems to fix it.

Any idea why?

Title: Re: Dual ISO causes funny colours
Post by: Walter Schulz on October 15, 2015, 01:35:55 PM
cr2hdr version? Camera type? ML version? Downloadable CR2?
Title: Re: Dual ISO causes funny colours
Post by: pletharoe on October 16, 2015, 05:01:43 AM
CR2HDR version: Unknown... downloaded a couple of days ago from https://builds.magiclantern.fm/jenkins/view/Other%20tasks/job/cr2hdr-20bit/

Camera: 5D3

Firmware: 1.2.3

ML nightly build: 2015 April 28

Files can be accessed at:
https://drive.google.com/folderview?id=0B_8z7XiBut6rcG9hZVg4SFZRWGs&usp=sharing
Title: Re: Dual ISO causes funny colours
Post by: a1ex on October 16, 2015, 11:48:44 AM
That's a known limitation - just set WB manually in your image editor.

With cr2hdr, by default, white balance is not the one you set from camera; instead, it attempts to compute WB on a large surface that appears to be gray or white. In your first image, it found the sky as the reference gray (wrong choice), and in the second image, it found the baby tray (probably correct).

You could try the option --wb=exif to copy Canon's WB settings, but last time I checked, it wasn't working very well.

More details here: http://www.magiclantern.fm/forum/index.php?topic=10265
Title: Re: Dual ISO causes funny colours
Post by: Danne on October 16, 2015, 04:02:02 PM
I,m a little curious if it would be good to use the wb multipliers coming from the dual iso CR2 file?

Wth dcraw you get the numbers

dcraw -i -v  DUAL3755.CR2

Camera multipliers: 2032.000000 1024.000000 2009.000000 1024.000000


Dividing gives following. (Thanks Chmee)

1024/2032=0.50393701
1024/2009=0.50970632

exiftool "-AsShotNeutral=0.50393701 1 0.50970632" DUAL3755.DNG



Original cr2hdr20bit
(http://s29.postimg.org/68oppi1mr/DUAL3755.png) (http://postimg.org/image/68oppi1mr/)

dcraw multiplier wb from CR2 file
(http://s29.postimg.org/6k6629i2r/DUAL3755_dcraw_wb.png) (http://postimg.org/image/6k6629i2r/)

With command line set --wb=exif (seems to give the standard 5500/19 temp/tint)
(http://s29.postimg.org/4brzkxayr/DUAL3755_wb_exif.png) (http://postimg.org/image/4brzkxayr/)

Original file
https://drive.google.com/file/d/0B4tCJMlOYfirVmRQVXhULWNvcDQ/view?usp=sharing
Title: Re: Dual ISO causes funny colours
Post by: a1ex on October 16, 2015, 05:41:16 PM
Sounds interesting.

I tried on an image file taken with the following WB settings, on 5D3:


White Balance                   : Manual Temperature (Kelvin)
Color Temp Kelvin               : 3100
WB Shift AB                     : 0
WB Shift GM                     : 0


With dcraw/exiftool:

Camera multipliers: 1431.000000 1024.000000 2497.000000 1024.000000
exiftool "-AsShotNeutral=0.71558350803633819 1 0.41009211053263916" TEST.DNG


Result in ufraw: 3135K, green=1.051.

Pretty close, and... the result is identical to cr2hdr --wb=exif.

The AsShotNeutral multiplies for 3100K/green=1 are 0.70488444 1 0.40021194. That would give multipliers 1453 1024 2559 1024.
Title: Re: Dual ISO causes funny colours
Post by: Danne on October 16, 2015, 06:26:54 PM
Yes, around those figures I get too so it is very close. If it reads the auto white balance rather than grabbing kelvin settings it should be usable. See if I can find more pics. Left my cam at home.
Title: Re: Dual ISO causes funny colours
Post by: Danne on October 16, 2015, 07:15:41 PM
Exactly the same. I, ll be damned. 

So I,d say the wb is close enough to be considered correct from camera.

Retested wb multipliers from two files from dfort and numbers matched exactly as wb=exif.
Title: Re: Dual ISO causes funny colours
Post by: pletharoe on October 17, 2015, 06:39:11 AM
Thanks very much for the info and THANK YOU SO MUCH A1ex!  ML is awesome!
Title: Re: Dual ISO causes funny colours
Post by: Danne on October 18, 2015, 11:28:40 AM
Tried another file.
Original here
https://drive.google.com/file/d/0B4tCJMlOYfirMXlnWUtuT2hVWFk/view?usp=sharing

Got all greenish looking wb from using --wb=exif(cr2hdr) whereas dcraw multiplier gives more or less correct whitebalance. Not sure what,s going on here?

dcraw multipliers
exiftool "-AsShotNeutral=0.50294695 1 0.51457286" /Users/itguser/Desktop/ml_vfs_2/DUAL2695.DNG


dcraw_multiplier(CR2)
(http://s22.postimg.org/6398k3nil/DUAL2695_dcraw_multiplier.png) (http://postimg.org/image/6398k3nil/)

wb=exif(cr2hdr)
(http://s22.postimg.org/8w2g44nv1/DUAL2695_wb_exif.png) (http://postimg.org/image/8w2g44nv1/)