Code Monkey home page Code Monkey logo

shallow-water-image-enhancement's Introduction

Implementation of Shallow-water Image Enhancement Using Relative Global Histogram Stretching Based on Adaptive Parameter Acquisition.

Method

Relative Global Histogram Stretching consists of two methods Contrast correction and Color correction, The main.py file first performs Contrast correction, and then performs Color correction sequentially. Refer to https://hal-amu.archives-ouvertes.fr/hal-01632263/file/Shallow-water_cameraready.pdf for more details.

Requirements

pip install -r requirements.txt

Python>=3

Download Dataset

Please go to /data and follow the steps in README.md to download and setup the dataset. Put the downloaded dataset folder in /data.

Run the Algorithm !!

cd src

To run the algorithm on a full dataset, and store all the images, run:

python main.py --dataset=raw_sample --save_output=True

All the output images will be saved in /outputs/raw_sample

To run the algorithm for single image with a path run:

python main_multi_proc.py --single --save_output --img_path='/path/to/image'

output will be stored in /outputs/single_image/

To run the algorithm for a dataset and perform evaluation run:

python main_multi_proc.py --dataset=raw_sample --gt=raw_ref_sample --do_eval --save_output

It will save the outputs in /output/raw_sample and print the result for the following evaluation metrics : ENTROPY, UCIQE, MSE and, PSNR.

Results

Qualitative analysis:

Output of all the 890 image samples from the dataset are uploaded at https://bit.ly/3G2qFEW

Quantative analysis:

Method ENTROPY UCIQE MSE PSNR
RGHS 6.85 0.64 89.03 19.40

Citation

@inproceedings{huang:hal-01632263,
  TITLE = {{Shallow-water Image Enhancement Using Relative Global Histogram Stretching Based on Adaptive Parameter Acquisition}},
  AUTHOR = {Huang, Dongmei and Wang, Yan and Song, Wei and Sequeira, Jean and Mavromatis, S{\'e}bastien},
  URL = {https://hal-amu.archives-ouvertes.fr/hal-01632263},
  BOOKTITLE = {{24th International Conference on Multimedia Modeling - MMM2018}},
  ADDRESS = {Bangkok, Thailand},
  YEAR = {2018},
  MONTH = Feb,
  KEYWORDS = {Adaptive parameter acquisition ; Shallow-water image enhancement ; Relative global histogram stretching (RGHS)},
  PDF = {https://hal-amu.archives-ouvertes.fr/hal-01632263/file/Shallow-water_cameraready.pdf},
  HAL_ID = {hal-01632263},
  HAL_VERSION = {v1},
}

shallow-water-image-enhancement's People

Contributors

amruth-sagar avatar

Stargazers

zz avatar minghui Zhang 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.