Pages: [1]   Go Down

Author Topic: Chromatic aberation free demosiacing.  (Read 1178 times)

CharlesRamsey

  • Newbie
  • *
  • Offline Offline
  • Posts: 10
    • http://
Chromatic aberation free demosiacing.
« on: May 03, 2014, 07:53:59 pm »

With a Bayer pattern it is possible to select 4 pixels bin them and create an image free of chromatic aberation caused by demosiacing algorithims. This is all obvious but I'm surprised all cameras don't have this option. However for any given pixel it is possible to bin it in 4 different ways. You can call these top left, top right, bottom left and bottom right. This gives 4 chromatic aberation free images offset by 1 pixel. Then it is possible to use these images to interpolate an image with the same resolution of the origional pixel count. This of course has it's advantages and digadvantages.
Resolution would be smeared over an area equivalent of a 9 pixel binning. It's just a matter of taste do you want the chromatic aberation ot the reduced resolution?
Logged

hjulenissen

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 2051
Re: Chromatic aberation free demosiacing.
« Reply #1 on: May 04, 2014, 03:31:46 am »

With a Bayer pattern it is possible to select 4 pixels bin them and create an image free of chromatic aberation caused by demosiacing algorithims. This is all obvious but I'm surprised all cameras don't have this option.
One Bayer cell can e.g. be:
[r g1
g2 b]

If you generate one full-color (co-sited) rgb triplet as :
ro = r
go = mean(g1, g2)
bo = b

Then you get a 1/2 x 1/2 resolution image where the red color plane is shifted slightly towards upper left, and the blue plane is shifted slightly towards lower right.

I think it makes more sense (for a simple algorithm) to interpolate/filter each plane separately (so as to generate full-resolution color planes). This still would not generate the highest possible luminance resolution, and would do nothing to reduce the impact of aliasing at the recording stage.

-h
« Last Edit: May 04, 2014, 03:35:46 am by hjulenissen »
Logged

Bart_van_der_Wolf

  • Sr. Member
  • ****
  • Offline Offline
  • Posts: 8914
Re: Chromatic aberation free demosiacing.
« Reply #2 on: May 04, 2014, 05:52:47 am »

With a Bayer pattern it is possible to select 4 pixels bin them and create an image free of chromatic aberation caused by demosiacing algorithims.

Hi,

Chromatic aberration is caused by the lens, not by the demosaicing. So your assumption is wrong, and therefore the 'solution' is also wrong. Maybe you are referring to false color artifacts caused by different sampling densities between Green and Red/Blue, but that requires a different solution than simple binning.

Cheers,
Bart
Logged
== If you do what you did, you'll get what you got. ==
Pages: [1]   Go Up