Author Topic: [DONE] Peripheral Illumination Correction for non canon lenses  (Read 36024 times)

sparedog

  • Member
  • ***
  • Posts: 154
  • 6D
[DONE] Peripheral Illumination Correction for non canon lenses
« on: February 17, 2013, 12:49:39 AM »
I own some non canon zoom lenses, like the Tamron 24-70mm, and would like to use Peripheral Illumination Correction during video.

This cant be replicated in post production, because during video the aperture and focal distance is lost.

But we have the information available in programs like photoshop and lightroom. So is it possible to hack one of the Canon lens Peripheral Illumination Correction profiles I wont ever use, replace its contents with the details for the Tamron 24-70mm, and load that into the camera?




Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Re: Peripheral Illumination Correction for non canon lenses
« Reply #1 on: February 17, 2013, 10:18:53 PM »
So is it possible to hack one of the Canon lens Peripheral Illumination Correction profiles I wont ever use, replace its contents with the details for the Tamron 24-70mm, and load that into the camera?

As I'm going to buy the Tamron 24-70 I'd be interested in this, too, but I have to mention that the Tamron has quite another, stronger vignetting profile than any Canon I can think of and also another CA profile (for digic5 6d/5d3) - so I doubt if simply applying another profile would be really helpful. The real trick would be to upload a custom profile (through eos utility) for 3rd party lenses, but I imagine Canon went to some lengths to prevent that.

sparedog

  • Member
  • ***
  • Posts: 154
  • 6D
Re: Peripheral Illumination Correction for non canon lenses
« Reply #2 on: February 18, 2013, 01:02:17 AM »
As I'm going to buy the Tamron 24-70 I'd be interested in this, too, but I have to mention that the Tamron has quite another, stronger vignetting profile than any Canon I can think of and also another CA profile (for digic5 6d/5d3) - so I doubt if simply applying another profile would be really helpful. The real trick would be to upload a custom profile (through eos utility) for 3rd party lenses, but I imagine Canon went to some lengths to prevent that.

yes, that is kinda what I mean, to upload a custom profile, but to contain it in a Canon wrapper, so that the EOS Utility has no problems passing it to the camera.

sparedog

  • Member
  • ***
  • Posts: 154
  • 6D
Re: Peripheral Illumination Correction for non canon lenses
« Reply #3 on: March 07, 2013, 12:30:30 AM »
Is this at all possible? I used to play around with res edit and change properties within files. Could this be done with the eos utily, open one of the canon lenses and type in the figures i want it adjust by?

Or am I flogging a dead horse?

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: Peripheral Illumination Correction for non canon lenses
« Reply #4 on: March 07, 2013, 11:40:39 AM »
we are currently investigating this question.
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

Rush

  • Member
  • ***
  • Posts: 159
  • 5D3, EOS M
Re: Peripheral Illumination Correction for non canon lenses
« Reply #5 on: March 08, 2013, 12:12:07 AM »
I have Canon 17-55/2.8 lens with 600D and still can't turn on this feature. What I need to do to enable it with canon lens?
Greetings from Russia!

1%

  • Developer
  • Hero Member
  • *****
  • Posts: 5936
  • 600D/6D/50D/EOSM/7D
Re: Peripheral Illumination Correction for non canon lenses
« Reply #6 on: March 08, 2013, 12:13:38 AM »
Canon menu -> 1st box. Peripheral ilumin. correct

You can upload more profiles with eos utility.

Rush

  • Member
  • ***
  • Posts: 159
  • 5D3, EOS M
Re: Peripheral Illumination Correction for non canon lenses
« Reply #7 on: March 08, 2013, 12:52:36 AM »
Thanks 1%.

Just did some comparison before/after. I'll stick to no correction, because with this option on I lose dynamic range and get more noise instead.
For real, I like some vignetting and usually add it in post.

Peripheral ilumin. correct TURNED ON:


Peripheral ilumin. correct TURNED OFF:
Greetings from Russia!

1%

  • Developer
  • Hero Member
  • *****
  • Posts: 5936
  • 600D/6D/50D/EOSM/7D
Re: Peripheral Illumination Correction for non canon lenses
« Reply #8 on: March 08, 2013, 01:06:36 AM »
As with all these things, the pc does it better.

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: Peripheral Illumination Correction for non canon lenses
« Reply #9 on: March 08, 2013, 10:07:38 AM »
how about video lens correction?
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

Marsu42

  • Contributor
  • Hero Member
  • *****
  • Posts: 1557
  • 66d + flashes
Re: Peripheral Illumination Correction for non canon lenses
« Reply #10 on: March 08, 2013, 01:17:02 PM »
As with all these things, the pc does it better.

But if shooting 8bit jpeg in-camera vignetting control gives better iq because afaik it's applied *before* color reduction (other than 14 bit raw output) - and with some wide angle primes vignetting on open aperture is so heavy it's important to see the corrected preview in camera, same goes for ca (digic5)

how about video lens correction?

Indeed, that's why having 3rd party profiles would be very nice - like for the Tamron 24-70vc which has image stabilization other than Canon's 24-70 versions.

Indy

  • Developer
  • Member
  • *****
  • Posts: 112

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Peripheral Illumination Correction for non canon lenses
« Reply #12 on: March 09, 2013, 09:54:40 AM »
Mystery solved :)

https://bitbucket.org/hudson/magic-lantern/commits/57509d0efc21

How? By connecting the dots between the latest discoveries from g3gg0 and indy and the results from DIGIC poke investigations.

Vignette correction works just like the other DIGIC image effects, and we can fine-tune the exposure according to the distance from image center. The correction value can be from 0 to 1023, which maps to 0 ... +1 EV.

Edit: this seems to work only on old cameras (doesn't work on 5D Mark III). Booo...

Indy

  • Developer
  • Member
  • *****
  • Posts: 112
Re: Peripheral Illumination Correction for non canon lenses
« Reply #13 on: March 09, 2013, 09:58:53 AM »
How are used the lens00.bin tables to produce Digic correction data ? how are used aperture and focal ?

Indy

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Peripheral Illumination Correction for non canon lenses
« Reply #14 on: March 09, 2013, 10:03:01 AM »
They aren't used in ML; g3gg0 found out that C0F08578 is index, C0F0857C is data, and with this info we wrote our own implementation from scratch (which overrides Canon's correction completely).

Indy

  • Developer
  • Member
  • *****
  • Posts: 112
Re: Peripheral Illumination Correction for non canon lenses
« Reply #15 on: March 09, 2013, 10:23:01 AM »
OK, thanks for the clarification.
can we have these Digic data ? there are related to attached lend right ? which lens it is ?

Indy

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: Peripheral Illumination Correction for non canon lenses
« Reply #16 on: March 09, 2013, 10:32:44 AM »
You can't read these registers, just write them. So... I don't know the original Canon values.

Same for picture style curves. I know from trial and error that c0f0f100 - c0f0160 describe the luma curve, 0xc0f0f11c/28/34/50/60 are luma values (0-255) and the others seem to be polynomial coefficients, but I have no idea what the default values are or how to configure a smooth curve.

Indy

  • Developer
  • Member
  • *****
  • Posts: 112
Re: Peripheral Illumination Correction for non canon lenses
« Reply #17 on: March 09, 2013, 12:16:46 PM »
Excellent!
this is for LV, so for exposim, right ?
the digic must also be used for image data (written to SDcard)

Indy

g3gg0

  • Developer
  • Hero Member
  • *****
  • Posts: 3190
Re: Peripheral Illumination Correction for non canon lenses
« Reply #18 on: March 09, 2013, 01:20:43 PM »
Help us with datasheets - Help us with register dumps
magic lantern: 1Magic9991E1eWbGvrsx186GovYCXFbppY, server expenses: paypal@g3gg0.de
ONLY donate for things we have done, not for things you expect!

Indy

  • Developer
  • Member
  • *****
  • Posts: 112
Re: [DONE] Peripheral Illumination Correction for non canon lenses
« Reply #19 on: March 09, 2013, 03:49:06 PM »
nice

sparedog

  • Member
  • ***
  • Posts: 154
  • 6D
Re: [DONE] Peripheral Illumination Correction for non canon lenses
« Reply #20 on: March 15, 2013, 02:30:47 AM »
Does the DONE mean that this has been achieved? Could I correct my tamron  24-70vc on my 6d?

1%

  • Developer
  • Hero Member
  • *****
  • Posts: 5936
  • 600D/6D/50D/EOSM/7D
Re: [DONE] Peripheral Illumination Correction for non canon lenses
« Reply #21 on: March 15, 2013, 02:46:00 AM »
A1ex said it didn't work on 5d3 just like with the image effects. Probably needs more investigation.

Betelgeuza

  • Freshman
  • **
  • Posts: 66
Re: [DONE] Peripheral Illumination Correction for non canon lenses
« Reply #22 on: March 15, 2013, 09:12:08 PM »
I own some non canon zoom lenses, like the Tamron 24-70mm, and would like to use Peripheral Illumination Correction during video.

This cant be replicated in post production, because during video the aperture and focal distance is lost.

But we have the information available in programs like photoshop and lightroom. So is it possible to hack one of the Canon lens Peripheral Illumination Correction profiles I wont ever use, replace its contents with the details for the Tamron 24-70mm, and load that into the camera?
.


im not fully sure but maybe this  turtorial helps you :

http://digitol.free.fr/forum/viewtopic.php?f=2&t=136


alsow igot question ..i dont want start new post about this...

in lastes digital photo professional 3.12.52.0 there is new cool feature called   Digital Lens Optimizer   but like for now this stuff not supporting low price lenses what is very  not good..but feature what they add to  DPP is grate competition for Light Room ,, most cool  features  from Light Room are now in DPP..

and question ... :

in EOS Utility  i can load  to camera Lens Profiles and  i got there all my two lenses profiles (in EOU Utility )..so  if im right  profiles from EOS Utility are same lenses profiles what in DPP ,, ?if yes . how i can transfer that profiles from EOS Utility to Photo Digital Professional  list ? list with profiles in DPP is automaticly loaded from Canon Server and not includiong  low price lenses  but EOS Utility got them some where in side program ...this is possible to transfer them ?

locoboy

  • New to the forum
  • *
  • Posts: 5
Re: [DONE] Peripheral Illumination Correction for non canon lenses
« Reply #23 on: March 15, 2013, 10:53:19 PM »
Does the DONE mean that this has been achieved? Could I correct my tamron  24-70vc on my 6d?
i'm gettin more vignette :/ event with photos

a1ex

  • Administrator
  • Hero Member
  • *****
  • Posts: 12564
Re: [DONE] Peripheral Illumination Correction for non canon lenses
« Reply #24 on: March 23, 2013, 12:36:12 PM »
Just got it working on 5D3. It will probably work on the other digic V cameras too.