File Exchange

image thumbnail

Image white balancing

version 1.0.2 (218 MB) by Mahmoud Afifi
White balance camera-rendered sRGB images (CVPR 2019)

7 Downloads

Updated 29 Jun 2020

GitHub view license on GitHub

Reference code for the paper When Color Constancy Goes Wrong: Correcting Improperly White-Balanced Images. Mahmoud Afifi, Brian Price, Scott Cohen, and Michael S. Brown, CVPR 2019. If you use this code or our dataset, please cite our paper.

Quick start:
1. Run install_.m
2. Run demo.m to process a single image or demo_images.m to process all images in a directory.
3. Check evaluation_examples.m for examples of reporting errors using different evaluation metrics. Also, this code includes an example of how to hide the color chart for Set1 images.
4. We provide a Matlab GUI to help tuning our parameters in an interactive way. Please, check demo_GPU.m.

For Python implementation, please check our Github page from here: https://github.com/mahmoudnafifi/WB_sRGB

Try the interactive demo by uploading your photo or paste a URL for a photo from the web from the following link: http://130.63.97.192/WB_for_srgb_rendered_images/demo.php

For more information, please check our project page: http://cvil.eecs.yorku.ca/projects/public_html/sRGB_WB_correction/index.html

The code, dataset, and demo are provided for academic use only.

Cite As

Mahmoud Afifi, Brian Price, Scott Cohen, and Michael S. Brown. "When Color Constancy Goes Wrong: Correcting Improperly White-Balanced Images.", In CVPR, 2019.

Comments and Ratings (0)

Updates

1.0.2

updated summary

1.0.1

added demo link

MATLAB Release Compatibility
Created with R2017a
Compatible with any release
Platform Compatibility
Windows macOS Linux