File Exchange

image thumbnail

Image recoloring without a target image

version 1.0.3 (6.46 MB) by Mahmoud Afifi
Matlab implementation of 'Image Recoloring Based on Object Color Distributions' Eurographics (short papers) 2019.


Updated 30 Apr 2020

GitHub view license on GitHub

This is a Matlab implementation of our paper 'Image recoloring based on object color distributions'.

We present a method to perform automatic image recoloring based on the distribution of colors associated with objects present in an image. For example, when recoloring an image containing a sky object, our method incorporates the observation that objects of class 'sky' have a color distribution with three dominant modes for blue (daytime), yellow/red (dusk/dawn), and dark (nighttime). Our work leverages recent deep-learning methods that can perform reasonably accurate object-level segmentation. By using the images in datasets used to train deep-learning object segmentation methods, we are able to model the color distribution of each object class in the dataset. Given a new input image and its associated semantic segmentation (i.e., object mask), we perform color transfer to map the input image color histogram to a set of target color histograms that were constructed based on the learned color distribution of the objects in the image. We show that our framework is able to produce compelling color variations that are often more interesting and unique than results produced by existing methods.

Cite As

Mahmoud Afifi, Brian Price, Scott Cohen, and Michael S. Brown, Image Recoloring Based on Object Color Distributions, Eurographics 2019 - Short Papers, 2019

Comments and Ratings (1)

Kazuya Machida



updated description


GUI added.


description updated

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