lafith / pymusica

A contrast enhancement approach involving non linear mapping of Laplacian pyramid.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Multiscale image contrast amplification using Laplacian pyramid

MUSICA[1] is a contrast enhancement approach based on multiresolution representation of the original image, commonly applied in computed radiography. This repo is a Python implementation of MUSICA algorithm using Laplacian Pyramid[2] as the multiresolution representation.

Note: Implementation works only for grayscale images.

Instructions:

  • Required functions are in musica.py
$ git clone https://github.com/lafith/musica.git
$ cd MUSICA
$ pip install -r requirements.txt
$ python3 demo.py
  • In demo.py arbitrary values are taken for parameters, tuning may give better results.

Result:

References

[1] Vuylsteke, Pieter, and Emile P. Schoeters. "Multiscale image contrast amplification (MUSICA)." Medical Imaging 1994: Image Processing. Vol. 2167. International Society for Optics and Photonics, 1994.
[2] Burt, Peter J., and Edward H. Adelson. "The Laplacian pyramid as a compact image code." Readings in computer vision. Morgan Kaufmann, 1987. 671-679.

About

A contrast enhancement approach involving non linear mapping of Laplacian pyramid.

License:GNU General Public License v3.0


Languages

Language:Python 100.0%