Вы находитесь на странице: 1из 6

Design and Development of an Algorithm for Color Conversion of Gray Scale Image With Respect To Color Reference Image

Mr. Umesh V. Nikam, M.E (Scholar), PRMIT & Research Institute Badnera (Maharashtra)

Prof.Dr.V.T.Ingole, Professor, PRMIT&Research Institute Badnera (Maharashtra)


1

umeshnikam3@gmail.com 2vijayingole@hotmail.com

Abstract In the proposed work, a general, fast and simple technique is used to convert a gray scale image of any type (i.e. JPEG, BMP, PNG etc) into a color image using any of the color images as a reference. These gray scale images can be enhanced by adding color. In resultant image only chromatic information is changed. Instead of adding all RGB color to the destination image, reference image it adds up details to a target image.

medical applications where sometime it is not possible for doctor to diagnose fracture in an- X-RAY image (i.e. Gray Scale image).To diagnose fracture properly, they need to convert it into RGB Color space, but still it is found that a Gray Scale image with noise is not accurately converted into RGB Color space. Many applications convert a gray scale image into RGB color space but fail to preserve the original contents of a Gray Scale image. project provides an emphasis and blur on noise

color is taken. After adding color to original image, This

removal,

color

conversion

removing

techniques. Colorization is a computerized process that adds color to a black and white print, movies Keywords: Color map, RGB Color space, and T.V program invented by Wilson MarkLey.It was initially used in 1970 to add color to footage of moon from the Apollo mission. The demand of adding color to gray scale image such as previous 1. Introduction: black and white movies, photos has been increasing. for e.g. in amusement field, many movies and video clips have been colorized by Lumminence

Gray scale image contains pixels which are not a RGB color pixels. This concept have more impact in

human labors and many gray scale images have been distributed as vivid images. In other fields such as archeology dealing with historical Gray scale data and security dealing with gray scale images by crime prevention camera, we can imagine easily that colorization techniques are useful. 2. Proposed Method: This project consists of following steps:
1.

Input an image. Input reference image. Resize a Gray Scale input image (200 X 200). Luminance comparison. Generating dummy image with RGB Color space with no Gray scale contents.

2.

3.

4.

5.

6.

Filling Gray Scale contents into dummy images. Fig 1.0 Data Flow Digram

7.

Removing Blur (if any) from resultant color 2.1 Input an Image (Gray Scale), Reference image and Resizing Gray Scale Image: image. Display resultant image. Select a Gray scale image of any type(i.e. JPEG,

8.

Lets consider following data flow diagram that elaborate working principle strategy

BMP, PNG etc).If an image is of large dimensions, we must need to resize it into a dimension of 200 X 200.The reason behind this is that, number of pixels are directly proportional to time required for color conversion.

Pi i--------------Eq 1.1 T

Where Pi=Number of pixels of input gray scale. Ti=Time required for color conversion. The reference image should be a color RGB image, because we are creating a dummy image with color contents of reference color image. 2.2 Noise reduction: We are assuming that an input image may contain pixel value either 0 or 1.to minimize the noise, we choose the pixels randomly and modify its new equation
---Eq 1.2

Lf=

--Eq 1.5

Li=Gray scale factor of original Gray scale image. Lf= RGB factor of original reference image. Pr=Red component decimal value of input Gray scale. Pg=Green component decimal value of input Gray scale. Pb=Blue component decimal value of input Gray scale.

paper white noise .This type of noise changes the Pfr=Red component decimal value of reference image.
Pfg=Green component decimal value of reference image.

value with pixels averaging method as per the Pfb=Blue component decimal value of reference image. If

0 Lfr 10---Eq 1.6


It means both the pixels have a relative matching color parameters else not.

2.3 Luminance Comparison: Luminance of an image is a factor that preserves

2.4

Generating Dummy image

From RGB

Reference Image: the originality of an image. The luminance factor A dummy image has a great impact on accurate colorization of gray scale image. Dummy image can be calculated as contains only color components of reference image. Lfr=| Li Lf|---------Eq 1.3 Where Li= --Eq 1.4
--Eq 1.7 . Of segments

A dummy image created with following steps: 1. Segment reference image according to color components. Reference image can be segmented using

2. Add a segment generated as per the Eq 1.7 into dummy image. 3. Put the contents of input Gray scale image into dummy image. It is observed that generated color image may have contents which are not properly synchronized with respect to colour. This project has accuracy 80 to 90% for correct image segmentations and for dummy image generation. Usually contents in an
Figure 1.1 Original and Blur Image

image are represented with pixels value either 0 or Our intention is to remove the blur using motion de1.This technique works on same concept. To have a blurring technique as shown in below equation. better accuracy, it should be necessary that luminance factor calculations, image segmentations should be correctly done. 2.5 Removing Blur: Blur is a one kind of noise that disturbs the contents conversion, motion blur mostly introduced. See the below imageNew modified value of pixels Pi will be as per equation 1.2

Pi=

of an image. Generally it is found that, while colour Image after removing Blur becomes as follows

Figure 1.2 Resultant Images

3 Experimental Results:

In this paper,fast simple technique is used to colorize a gray scale image to a color image using reference image.Original image is pre-processed to illuminate noise and then colorisation process is done.By using this technique a large number of Gray scale images are converted into color images with very less effort. 5 Future Work:
Figure 1.3 Resultant images

Execution time for running the algorithm to colorise the Gray scale image varies according to the number of pixels our future work is to make a system which should be independent on quantity of pixels. REFERENCES : [1] Colorization for Monochrome Image with

texture, in coloring Image Conference 2005, pp


Figure 1.4 Result Analyses(A)

245-250. [2] Converting Gray-Scale Image to Color Image in Proceedings of SPIT-IEEE Colloquium and International Conference, Mumbai, India, Vol. 1, 189. [3] K. S. Sim, C. P. Tso, and Y. Y. Tan, "Recursive sub-image histogram equalization applied to gray scale images", Pattern Recognition Letters, 28(10), pp. 1209-1221, 2007. [4]Mrs.V.Karthikeyani,Dr.K.Duraiswamy for Image Analysis,National Processing conference and & on P.Kamalakkannan,Evaluation of texture methods

Figure 1.5 Result Analyses (B)

Advance National 14,2004.

Image

Networking,

4 Conclusion:

Engineering

Colllege,Kovilpatti,Feb.,13-

[5]Mrs.V.Karthikeyani, P.Kamalakkannan,Single Texture Synthesis,

Dr.K.Duraiswamy and Multi-Pixel GESTS

& Based

International

Transactions on Computer Science and Engineering, ISSN 1738-6438, Vol.34, Nov2006, pp.142-150. [6]A. A. Efros and T. K. Leung, Texture synthesis by nonparametric sampling, In International Conference on Computer Vision, pages 10331038, Corfu, Greece, September 1999. [7]A. Hertzmann, C. E. Jacobs, N. Oliver, B. Curless, and D.H.Salesin, "Image analogies", In Proceedings of ACM SIGGRAPH,pp. 341- 346, 2002. [8]Reinhard, E. Ashikhmin, M., Gooch B. and Shirley, P., Color Transfer Graphics between and Images, IEEE Computer Applications, &

September/October 2001, 34-40. [9]Mrs.V.Karthikeyani, Dr.K.Duraiswamy P.Kamalakkannan, Texture Analysis Experiments with Meastex and Vistex Benchmarks, National Level Conference,Tech Fete 2004, KSR College of Technology, Feb.,24,2004. [10]Ruderman, D. L., Cronin, T. W. and Chiao, C. C., Statistics of Cone Responses to Natural Images: Implications for Visual Coding, J. Optical Soc. Of America, vol 15, no. 8, 2036-2045,1998.