Code Monkey home page Code Monkey logo

hdr_and_reflectionsuppress_osmosis_filtering's Introduction

HDR_and_ReflectionSuppress_Osmosis_Filtering

This repository contains a Matlab implementation of using the osmosis filtering algorithm for applications include multi-exposure fusion and reflection suppression.

The osmosis filtering is a gradient-based method, which is similar but different to Poisson editing and can sometimes be its alternative. The details of the algorithm can refer to the references in this page.

In this project, we use the osmosis filtering for two problems that was originally formulated as Poisson equations to show the applicability of the osmosis algorithm as an alternative to Poisson solvers. We use gradient descent (Adam optimizer) to solve the variational energy from the osmosis model described in [3].

Multi-Exposure Fusion (MEF)

The code for MEF are contained in folder Osmosis_multi-exposure-fusion/.

Run a demo by typing:

osmosisFusion.m

The algorithm is based on [1] with some modifications. A brief introduction of our method can be found in this slide. The gradient of the osmosis energy is listed in Eq. (14) in [3].

Results

Dataset Source | Code Reference

Reflection Suppression

The code for MEF are contained in folder Osmosis_reflectionSuppresion/.

Run a demo by typing:

osmosis_reflectionSuppress.m

The algorithm is based on [2] (Github link). The reflection is suppressed by hard-thresholding small gradient value to 0 in the gradient map, and recover the image by solving a 2D Poisson's equation using DCT. We implement a similar version with the osmosis model. The energy is minimized by gradient descent.

Results

Input image | Result (reflection suppressed)

References

[1] Paul, Sujoy, Ioana S. Sevcenco, and Panajotis Agathoklis. "Multi-exposure and multi-focus image fusion in gradient domain." Journal of Circuits, Systems and Computers 25.10 (2016).

[2] Yang, Yang, et al. "Fast single image reflection suppression via convex optimization." Proceedings of the IEEE Conference on Computer Vision and Pattern Recognition. 2019.

[3] Parisotto, Simone, et al. "Variational Osmosis for Non-linear Image Fusion." IEEE Transactions on Image Processing 29 (2020): 5507-5516.

hdr_and_reflectionsuppress_osmosis_filtering's People

Contributors

b03901165shih avatar

Watchers

 avatar  avatar

Forkers

baozhiqiang1978

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.