Git Product home page Git Product logo

reflection-removal-techniques-review's Introduction

Reflection Removal

The image of an object can vary dramatically depending on lighting, specularities/reflections, and shadows. Thus, removing undesired reflections from images is of great importance in computer vision and image processing. It means to enhance the image quality for aesthetic purposes as well as to preprocess images in machine learning and pattern recognition applications. Thus, the goal of the project is to review various techniques that are used for removing reflection from the image.

GIF

Dependencies

Python, OpenCV, Pytorch(torch & torchvision), Imutils, Matplotlib, Argparse, NumPy, Skimage, Pandas, SciPy and, MATLAB.

Dataset

The sample image used for testing is provided by SIR2 benchmark dataset.

How to execute code

  1. Averaging : For given set of images, we perform averaging for reflection removal.

Open the Averaging folder and run python Averaging.py -i 5_images_lowers where -i is path to folder which contains set of images.

  1. Independent Component Analysis : Based on concept of reflection of light and independence of underlying distribution in reflected image, two images captured at different polarising orientation are taken and solved for: Y=MX , where Y = [y1, y2] , two images , M is mixing matrix [a,b; c,d] (each denoting the amount of reflection) and X= [x1,x2] are painting and reflecting components in the two images.

Open the ICA folder and run python ICA.py -i1 1.png -i2 2.png where -i1 and -i2 are path to input images.

Note : For next two techniques, you need MATLAB software.

  1. Relative Smoothness : It models the input image as a linear combination of transmission and smooth reflection layer, I = T + R, where R is a smooth function.Based on sparsity prior of natural scenes, the objective function is to maximize the probability of joint distribution of T and R.

You can go here and run reflection_removal.m

  1. Reflection Suppression via Convex Optimization : Convex model is used to suppress the reflection from a single input image. It implies a partial differential equation with gradient thresholding, which is solved efficiently using Discrete Cosine Transform.

You can go here and run reflecSuppress.m

  1. Reflection Removal using Deep Learning : Single-image reflection removal method based on generative adversarial networks.

First you need to download this and place inside /Deep_Learning folder.

Now, open the Deep_Learning folder and run python GANs.py --path /input where --path path to input dataset that contains reflection images.

Results & Limitations

  1. Averaging : We have done averaging by taking 5,10 and 20 number of input images.

average

Limitations : Averaging requires set of images to remove reflection.

  1. Independent Component Analysis : It takes two images as input. As in this method, the images is a mixture of some ratio two images and our goal to separate the two images. We have generated the images for testing.

ICA

Limitations : The techniques employed here, work under their underlying assumptions, ICA requires two same layers being at different polarisation angles, which is a rare phenomenon.

  1. Relative Smoothness : Images from SIR2 benchmark dataset are used to remove reflection.

RS

Limitations : Relative smoothness removes reflections which are smooth in nature.

  1. Reflection Suppression via Convex Optimization :

RS

Limitations : Reflective suppress tries to suppress reflection, as parameter h increases the image tends to more blur.

  1. Reflection Removal using Deep Learning :

DL

Note : For more details. go through Reflection Removal Techniques : Review

Contributors

Arti Singh

Neha Goyal

References

  1. Separating reflections and lighting using independent components analysis.

  2. Single image layer separation using relative smoothness.

  3. Fast Single Image Reflection Suppression via Convex Optimization.

  4. Single Image Reflection Removal Based on GAN With Gradient Constraint. & Implementation

reflection-removal-techniques-review's People

Contributors

devashi-choudhary avatar

Watchers

 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.