Giter Site home page Giter Site logo

chromatic_aberration_correction's Introduction

Chromatic aberration correction algorithm

This repo is the implementation of paper "Removing chromatic aberration by digital image processing"
Chromatic aberration is due to different indices of color in light. And most of the time, it looked like color fringes along the boundary or color blur.
This paper observe the color behavior on edges in image and correct the chrmoatic aberration by shifting the abnormal color varying into a reasonable range. First we need to set a threshold to find the edge where we will start to estimate the reasonable range for this area. Then we use maximum and minimum color difference between B&G and R&G to be the BG/RG color difference threshold of this range. If we found a pixel which its R-G and B-G bigger or smaller than color difference threshold in this range, then we use this threshold to replace its color difference. Also we need to do above steps in both horizontal and vertical direction to correct all the color aberration in image.

Here is the zoom in view of original image
As you can see, there are many color fringes on the edge of lamp
alt text


Here is the zoom in view after correction
Teh chromatic aberration were corrected and the quality of other region remain almost the same.
alt text



Reference:
1.https://www.spiedigitallibrary.org/journals/Optical-Engineering/volume-49/issue-6/067002/Removing-chromatic-aberration-by-digital-image-processing/10.1117/1.3455506.short?SSO=1 (Removing chromatic aberration by digital image processing)

chromatic_aberration_correction's People

Contributors

rayxie29 avatar cfoch avatar

Stargazers

 avatar

Watchers

Andoni Morales Alastruey avatar James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.