Git Product home page Git Product logo

gaussian-laplacian-pyramid-fusion's Introduction

Gaussin-Laplacian-pyramid-fusion

This code is an implementation of Gaussian and Laplacian pyramids and the fusion visible and NIR images according to Vanmali et al article.

Requirements

This code works with Python 3 and requires the following libraries:

  • matplotlib pip install matplotlib
  • skimage pip install skimage
  • numpy pip install numpy
  • sklearn pip install sklearn
  • scipy pip install scipy

Experiments

Classical Laplacian and Gaussian pyramids

To get the Gaussian and Laplacian pyramids of an image as well as the reconstruction of an image, run the following script:

python main.py

You may want to change the path of the image in the script and call the function main_gaussian_laplacian_pyramids(image, kernel, levels).

The obtained results are below for the Lenna example:

Original image

Original image

Gaussian pyramid

Gaussian pyramid

Laplacian pyramid

Laplacian pyramid

Reconstruction

Reconstruction

This program works for grayscale and three channels images.

Visible and NIR fusion using fused Laplacian pyramids

All the equations used to implement NIR and visible fusion can be found in Vanmali et al article.

To achieved image visibility enhancement using fused Laplacian pyramids applied to NIR and visible images, run the following script:

python main.py

You may want to change the path of the image in the script and call the function main_multimodal_fusion(im_vis, im_ir, kernel, levels, window_size).

The obtained results are below for the landscape example:

On the left, value channel from HSV, on the right NIR image

On the left, value channel from HSV, on the right NIR image

From left to right : local entropy, local contrast and visibility. First row is value channel from HSV and second row is NIR image

From left to right : local entropy, local contrast and visibility. First row is value channel from HSV and second row is NIR image

Weights normalization, on the left value channel weight from HSV and on the right NIR image weight

Weights normalization, on the left value channel weight from HSV and on the right NIR image weight

fused Laplacian pyramid

Fused Laplacian pyramid

On th left, visible RGB image before transformation, on the right, NIR and visible image fusion displayed in the visible RGB format

On th left, visible RGB image before transformation, on the right, NIR and visible image fusion displayed in the visible RGB format

gaussian-laplacian-pyramid-fusion's People

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.