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.
- 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.
- Sample image is taken from ieee8023/covid-chestxray-dataset
[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.