Hint Based and Reference Based Image Colourization Algorithm

Hint Based and Reference Based Image Colourization Algorithm

Introduction

The term 'colourization' was coined by Wilson Markle in 1970 to describe a computer-based method he developed for adding colours to black and white TV programs and movies. Colourization is the process of applying colours to a monochrome image or movie. About a century ago, the only source of coloured images was hand paintings. There is always some detail missing in black and white images. Hence to enhance the quality and to generate more attractive and detailed images, the idea of colourization started developing. Earlier the task of colourization was very time-consuming and an expensive job. By the end of the second world war, coloured images were getting a great grip. The typical task required the segmentation of images and then tracking those regions to colourize. However, with advancements in computer science, a few decades back, automated colourization algorithms came into existence. Here we are going to discuss such automated algorithms.

Why there is a need for colourization?      

As mentioned earlier, monochromic images are not as detailed as they should be. Even today, photography beyond the visible spectrum is always monochromic. X-ray images, infrared images, and images from space telescopes, even today are monochromic. The beautiful and colourful images of our mighty universe we see today are not originally coloured. It needs a special team of experts to colourize those thousands and thousands of image data from space. Hence, automated colourization algorithms have always been a centre of attraction for many computer scientists and astronomers.

Hint Based Colourization  

A group of researchers consisting of Anat Levin, Dain Lischinski and Yair Weiss developed an automated colourization technique which does not require segmentation and a complex process. By providing just scribbles on the monochrome image, with the flood-fill technique the colours will automatically fill the image. Also, the problem of colourization at different boundaries of the image is also solved. 

This technique is based on the simple concept that similar colour pixels have similar intensities in the monochrome image, in other words, the nearby pixels in space-time that have similar grey levels should have similar colours. The technique is based on a framework applicable to both, image sequences and still images. Here the user will decide the colour to be applied in form of scribble, and then the algorithm will automatically propagate colours to the remaining pixels. An example is shown below.

Hint Based and Reference Based Image Colourization Algorithm


Here, in the first image the user has applied scribble over the monochrome image. The algorithms will automatically recognize the boundaries and will propagate the colour to the pixels of similar intensities. For example, the boundary between yellow and green colour in the t-shirt of this child is decided precisely by the algorithm. If we try to manually colourize this image, then one needs to first divide the image using segmentation and the colour boundaries must be decided. 

Apart from colouring the monochrome, this algorithm works accurately for recolouring any image. If one needs to change the colour of any object in the image then a scribble of new colour is applied over the object and the algorithm will automatically propagate the new colour pixels. This is shown in the figure below. 

Hint Based and Reference Based Image Colourization Algorithm

  
Here the user wants to recolour the orange with green colour. Hence the green coloured scribbles are applied to the orange. One amazing fact to know here is that the algorithm only recoloured the selected orange, i.e. the object on which scribbles were applied. The orange in the background is untouched. This proves the effectiveness of the algorithm in recognizing the colour boundaries.

Reference Based Colourization 

The hint-based technique is however not the first automated method in the market. Previously various algorithms were developed for the same purpose. One technique by Welsh and Mueller in 2002 colourize the image using a reference image. The algorithm basically transforms colour from the reference image to the target image. This technique also examines the intensity of neighbouring pixels in the target image and transfers the colours from the reference image with similar intensities. Instead of propagating the colour, this algorithm simply transfers the colour.  

This technique works well for images with differently coloured regions, where intensities of pixels have a large difference. But for pixels with minor differences in intensities, the user must manually provide samples indicating similar colours in two images. Also, the selection of reference images must be very precise. The selected reference image must have pixels of required (matching) intensities otherwise the colourization will not generate the required results. An example of this technique is shown below.

Hint Based and Reference Based Image Colourization Algorithm


Here the first image is the reference image and the second one is the target image. Both images are probably of the same mountain range. The only thing to keep in mind is that the reference image must have similar intensity pixels. The red, green and blue boxes are actually samples (swatches) provided for better colourization results. The reference image was captured by Paul Kienitz and the colourized image was captured by Ansel Adam. 

Conclusion

Here we discussed two amazing colourizing methods. Both methods are effective in their own way. Even today, the field of colourization is continuously upgrading. Many new techniques and upgradation of the above two techniques have been developed. Today, colourization is a much easier job than it used to be a few decades back. We have a lot of algorithms that automatically colourize the image. The overhead of segmentation and recombining is reduced today. 


Comments

Read Also

Assisting Neuroimaging through DL

Marine eDNA Analysis using DL techniques

Deep Neural Networks for ADMET properties' prediction

How Visual Cortex inspired the Convolutional Neural Networks