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.
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://18.104.22.168/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.
Mahmoud Afifi, Brian Price, Scott Cohen, and Michael S. Brown. "When Color Constancy Goes Wrong: Correcting Improperly White-Balanced Images.", In CVPR, 2019.
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!