Skip to content

Latest commit

 

History

History
38 lines (24 loc) · 3.74 KB

README.md

File metadata and controls

38 lines (24 loc) · 3.74 KB

Enhanced-Image-Colour-Transfer

============================================================

An Enhanced Implementation of the Colour Transfer Method proposed by E Reinhard et al.

Much of the content in this repository has been superceded by the repository Enhanced-Image-Colour-Transfer-2 which itself is now supported by a web app and by executable code.

A revised version of the existing method is proposed which utilises image representation in the L*a*b colour space. As with previous implementations, the method takes account of the mean and standard deviation values of the respective L*a*b components but, in addition, it addresses the correlation between the 'a' and 'b' colour components. This method is described further in the file 'Enhanced Image-Colour-Transfer.pdf' in the Documents folder.

Additional options allow for:- the rescaling of data to constrain it within range; recursive iteration of the transfer process, and a choice of shading method.

The program 'Main.cpp' runs under C++ using OpenCV. Processing options may be specified by modifying statements within the 'Processing Selections' section in the main routine.

The examples shown below have been selected to illustrate the differences between the different processing methods. For other image combinations, the differences may be less noticeable.

The images below are as follows: - target image, source image, image after basic processing and image after enhanced processing. For basic processing, there is a single iteration with data clipping, no cross correlation processing and source-image-derived shading. For enhanced processing, there are two iterations, with data scaling, cross correlation processing and target-image-derived shading.

Composite of Corn Image: Inputs and Outputs

Composite of Ocean Image: Inputs and Outputs

Composite of Flowers Image: Inputs and Outputs

The images below are as follows:- image after enhanced processing, image after processing by a well-known commercial software application, image after processing by a new proprietary method developed by the author, image after processing by an on line facility which uses a neural algorithm of artistic style.

Second Composite of Flowers Image: Inputs and Outputs

A second implementation of enhanced processing has been provided in the folder 'Main_L_Alpha_Beta'. This utilises an alternative colour space representation developed by Ruderman et al. This colour space was integral to the original colour transfer method as proposed by Reinhard et al.

Initial indications are that, for many image pairs, the L*a*b and the L-alpha-beta implementations achieve similar quality images, even though there may be slight differences. However, some instances have been found where the L*a*b implementation produces a poor quality image but the L-alpha-beta implementation does not. This is further discussed in the file 'Enhanced Image-Colour- Transfer --- LAlphaBeta' in the Documents folder. Feedback would be welcome. Of particular interest would be examples which highlight the differences between standard processing, the two versions of enhanced processing and Photoshop processing.

A web app which allows direct comparison of the L*a*b and the L-alpha-beta implementations is available here.