Image Representation using RGB Color Space

Similar documents
Image Perception & 2D Images

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

2. Color spaces Introduction The RGB color space

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

Computer Graphics: Graphics Output Primitives Primitives Attributes

SYDE 575: Introduction to Image Processing. Adaptive Color Enhancement for Color vision Deficiencies

Evaluating the Gaps in Color Constancy Algorithms

EECS490: Digital Image Processing. Lecture #12

Chapter 3 Part 2 Color image processing

Digital Image Processing. Lecture # 8 Color Processing

Color Constancy Using Standard Deviation of Color Channels

Color images C1 C2 C3

2. Color spaces Introduction The RGB color space

Color and More. Color basics

Color Image Processing. Gonzales & Woods: Chapter 6

CSE1710. Big Picture. Reminder

Lecture 3: Grey and Color Image Processing

Wireless Communication

Calibration-Based Auto White Balance Method for Digital Still Camera *

Detection and Verification of Missing Components in SMD using AOI Techniques

Capturing Light in man and machine

IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

For a long time I limited myself to one color as a form of discipline. Pablo Picasso. Color Image Processing

CSE1710. Big Picture. Reminder

Unit 8: Color Image Processing

Computers and Imaging

CS 565 Computer Vision. Nazar Khan PUCIT Lecture 4: Colour

Chapter 4. Incorporating Color Techniques

DESIGN & DEVELOPMENT OF COLOR MATCHING ALGORITHM FOR IMAGE RETRIEVAL USING HISTOGRAM AND SEGMENTATION TECHNIQUES

Capturing Light in man and machine

the eye Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors.

Colors in Images & Video

Digital Image Processing (DIP)

Achim J. Lilienthal Mobile Robotics and Olfaction Lab, AASS, Örebro University

Introduction. The Spectral Basis for Color

Color Image Segmentation using FCM Clustering Technique in RGB, L*a*b, HSV, YIQ Color spaces

Urban Feature Classification Technique from RGB Data using Sequential Methods

YIQ color model. Used in United States commercial TV broadcasting (NTSC system).

Color Image Processing

LECTURE 07 COLORS IN IMAGES & VIDEO

Color and Color Model. Chap. 12 Intro. to Computer Graphics, Spring 2009, Y. G. Shin

PERCEPTUALLY-ADAPTIVE COLOR ENHANCEMENT OF STILL IMAGES FOR INDIVIDUALS WITH DICHROMACY. Alexander Wong and William Bishop

Keywords- Color Constancy, Illumination, Gray Edge, Computer Vision, Histogram.

Fig Color spectrum seen by passing white light through a prism.

Multimedia Systems Color Space Mahdi Amiri March 2012 Sharif University of Technology

Face Detection System on Ada boost Algorithm Using Haar Classifiers

Contrast, Luminance and Colour

Image processing & Computer vision Xử lí ảnh và thị giác máy tính

Color. Used heavily in human vision. Color is a pixel property, making some recognition problems easy

Color Image Processing EEE 6209 Digital Image Processing. Outline

Introduction to Color Theory

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

DIGITAL IMAGING FOUNDATIONS

Augmented Reality using Hand Gesture Recognition System and its use in Virtual Dressing Room

Introduction to Computer Vision and image processing

6 Color Image Processing

Introduction to computer vision. Image Color Conversion. CIE Chromaticity Diagram and Color Gamut. Color Models

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

Colour Theory Basics. Your guide to understanding colour in our industry

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics

Imaging Process (review)

Follower Robot Using Android Programming

Human Vision, Color and Basic Image Processing

Color image processing

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

A Methodology to Create a Fingerprint for RGB Color Image

Color Image Processing

Capturing Light in man and machine

Stamp Colors. Towards a Stamp-Oriented Color Guide: Objectifying Classification by Color. John M. Cibulskis, Ph.D. November 18-19, 2015

Understanding Color Theory Excerpt from Fundamental Photoshop by Adele Droblas Greenberg and Seth Greenberg

Image and video processing (EBU723U) Colour Images. Dr. Yi-Zhe Song

12 Color Models and Color Applications. Chapter 12. Color Models and Color Applications. Department of Computer Science and Engineering 12-1

Performance Analysis of Color Components in Histogram-Based Image Retrieval

Image Representation and Processing

8.2 IMAGE PROCESSING VERSUS IMAGE ANALYSIS Image processing: The collection of routines and

Adapted from the Slides by Dr. Mike Bailey at Oregon State University

Lecture 8. Color Image Processing

Comparison of Two Pixel based Segmentation Algorithms of Color Images by Histogram

IMAGE INTENSIFICATION TECHNIQUE USING HORIZONTAL SITUATION INDICATOR

Additive Color Synthesis

The IQ3 100MP Trichromatic. The science of color

Sampling and Reconstruction. Today: Color Theory. Color Theory COMP575

Introduction to Lighting

Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology, Understand general usage of color

Lecture 2: An Introduction to Colour Models

APPLICATION OF COMPUTER VISION FOR DETERMINATION OF SYMMETRICAL OBJECT POSITION IN THREE DIMENSIONAL SPACE

The Elements of Art: Photography Edition. Directions: Copy the notes in red. The notes in blue are art terms for the back of your handout.

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

Fast, Robust Colour Vision for the Monash Humanoid Andrew Price Geoff Taylor Lindsay Kleeman

ABSTRACT I. INTRODUCTION

International Journal of Advance Engineering and Research Development

Image and video processing

Digital Images. Back to top-level. Digital Images. Back to top-level Representing Images. Dr. Hayden Kwok-Hay So ENGG st semester, 2010

The human visual system

Image Extraction using Image Mining Technique

Color and Perception. CS535 Fall Daniel G. Aliaga Department of Computer Science Purdue University

Cvision 2. António J. R. Neves João Paulo Silva Cunha. Bernardo Cunha. IEETA / Universidade de Aveiro

Introduction & Colour

Colour. Cunliffe & Elliott, Chapter 8 Chapman & Chapman, Digital Multimedia, Chapter 5. Autumn 2016 University of Stirling

Transcription:

ISSN 2278 0211 (Online) Image Representation using RGB Color Space Bernard Alala Department of Computing, Jomo Kenyatta University of Agriculture and Technology, Kenya Waweru Mwangi Department of Computing, Jomo Kenyatta University of Agriculture and Technology, Kenya George Okeyo Department of Computing, Jomo Kenyatta University of Agriculture and Technology, Kenya Abstract: There is an ever-increasing demand for attaining full colour digital images. Colour is an inevitable property in recognizing certain objects in an image. The growth in color imaging technology has led to the emergence of different color management techniques. These techniques require color models so that images produced in one medium and viewed in a certain background may be reproduced in a second medium and viewed under a different condition. This paper presents a method for determining color pixel intensity in an image using RGB color model. The model helps us understand the distribution of colours within an image. This is important in image processing techniques where color representation is the major problem that has remained unresolved for decades. The algorithm first extracts color pixels from a bitmap image; the luminance value is then computed to get the brightness of the image. The third step splits RGB color into color plane, if the color plane is equal to or greater than three, color image is extracted else a grayscale tone is extracted. The algorithm proposed in this paper is suitable for all kinds of image enhancement techniques. Keywords: RGB Color model, Pixel intensity and Luminance value 1. Introduction For decades, image processing techniques have become more important in a wide number of research and industrial fields. Image processing is based on the acquisition and manipulation of digital raster images which is composed of a rectangular grid of pixels with assigned color values. Most of the tools used in image processing are not sufficiently developed as they cannot handle full color images. Color is a key element of visual information and is a real problem that has been addressed by a number of authors but still far to be exhaustively worked out. One typical simple question may be whether each pixel of an image has variable intensity.to answer this question one needs to have an effective method for determining pixel intensity. In this paper, we analyze how an image is represented on output devices. We use RGB color model; we then propose a method for determining pixel intensity based on our data analysis. 2. Related Work Kamboj et al., 2012, presents an algorithm that extracts the edge information of color images in RGB color space with fixed threshold value. The algorithm uses an automatic threshold detection method based on histogram data to estimate the threshold value. The algorithm can detect major portion of the image. However, the algorithm produces black and white images. Brown et al. (2012) presents color strength information which is a combination of saturation and intensity to determine when hue in information in a scene is reliable. They verified that color strength information can be used to improve color correction accuracy. Gijsenij et al. (2012) presents a method that extends existing algorithms by applying color constancy locally to image patches rather than globally to the entire image. After local (patch-based) illuminant estimation, the estimates are combined into more robust estimations, and a local correction is applied based on modified diagonal model. Their technique reduces the influence of two light sources simultaneously present in one scene. Moreno et al. (2010) presents an approach that is based on the angular distance between pixel colour representations in the RGB space. The method is invariant to intensity magnitude, implying high robustness against bright spots produced by specular reflections and dark regions of low intensity. INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 322

3. Methodology This study employs descriptive research design for it to portray an accurate profile of situations. Normally what one wants to study is the entire population. However, it is unfeasible to do this and therefore one must settle for a sample. The target population for this research comprised of academic authors of image processing techniques. The study used secondary data from selected scholarly work. The collected data contributed towards the formation of background information needed for the reader to comprehend the study outcome. The data collection was administered over a period of four months, between February and May 2014. Eight pixels were randomly selected from a bitmap image (flower.bmp). The researchers then used imagej and VischeckJ1 software to analyze how pixels are displayed on the screen. An algorithm for extracting pixel intensity from image was then proposed based on the data analysis. Data collection and analysis were organized as follows: Color image formation using RGB model RGB Color Luminance Splitting colours according to color plane 3.1. Color image formation using RGB model The RGB colour model is an additive color model in which each pixel is represented as a three numerical values. First value is the amount of red, second stands for green and the third one is blue. Those values are used to create color presented on the screen. Every other mix of values stands for different color. The most basic rule of mixing in RGB color cube is as follows (Koirala, 2009): R+G+B = White R+G = Yellow R+ B = Magenta G+B =Cyan Mixing the colors forms an image that is made up of different colors as shown in figure 1. Figure 1: A digital image of a two dimensional array of pixels Each pixel has an intensity value represented by a digital number and a location address referenced by its row and column numbers. The diagram was drawn to show how a digital image is formed. Figure 2 shows two portions of the image (flower.bmp) that we analyzed. The image was extracted from the internet, courtesy of Lai et al., (2009). Figure 2: Parts of flower.bmp Eight pixels were randomly picked within the marked regions (Yellow and Green) and theirvalues are shown in table 1. INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 323

No Pixel size Color Red Green Blue 1. 150 *177 Portion of yellow 205 198 086 2. 153*178 color 211 200 073 3. 271*233 219 201 061 4. 153*173 207 192 062 1. 28* 213 Potion of green 028 048 032 2. 35*213 color 022 048 029 3. 38*207 024 045 023 4. 44*203 013 031 013 Table 1: pixels color for a portion of flower.bmp image. Color variations in RGB are represented in a scale of values ranging from 0 to 255 with 0 having the least intensity and 255 having the greatest. When the 3 components are combined, there are 256 x 256 x 256 possible combinations or 16,777,216 possible colors for a 24bit color (Besser, 2003). From table 1,note that each portion is represented by a combination of different colors. It is also evident that when an image is displayed on a screen, its colors are reduced. For instance, the first pixel (150*177) has a total of 3,490,740(205*198*086) colors. This means that its color has been reduced by 13,286,476(16,777,216-3,490,740) colors.figure 3 illustrates the analysis of a bitmap image (flower.bmp) Figure 3: Analysis of pixels color on a bitmap image The image was analyzed with image J software which is open source software (Rasban, 2010). The histograms for the total pixel value for red, green and blue are given below: (a) Red histogram of flower.bmp (b) Green histogram of flower.bmp INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 324

(c) Blue histogram of flower.bmp (d) Gray scale histogram of flower.bmp Figure 4: Histogram of the three channels (R, G, B) and grayscale for flower.bmp From the analysis, we can see some gray scale values in the image, area of the pixels, minimum and maximum values of RGB colors and the mean of the colors that make up the image. This affirms that an image contains shades of gray and colour. 3.2. RGB Color Luminance Luminance is the measure of light radiating from a source, measuredin candela per square meter (Hiscocks, 2011). Human viewer perceives luminance as the brightness of a light source.in other words, brightness is the perception obtained by the luminance of visual target which is subjective property of an object being observed. The computer display has a certain luminance based on how much light it is able to throw onto your retina. We have to control this light in order to get the color of the image. To determine the RGB color luminance in an image, we sample 8 random pixels from the image (flower.bmp). We then use the standard relative luminance formula from En-Nasr(2012) and from our analysis to get the values. Y= (0.299 * R) + (0.587 * G) + (0.114 * B) (1) Table 2 shows the luminance intensity of the eight pixels Color Pixel Size RGB Color Luminance Intensity RGB Luminance value= 0.3 R + 0.59 G + 0.11 B r g r Total 150 *177 205 198 086 62 117 9 188 153*178 211 200 073 63 118 8 189 271*233 219 201 061 66 119 7 192 153*173 207 192 062 62 113 7 182 28* 213 028 048 032 8 28 4 40 35*213 022 048 029 7 28 3 38 38*207 024 045 023 7 27 3 37 44*203 013 031 013 4 18 1 23 Table 2: RGB Luminance value INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 325

For each input pixel from the image, we compute RGB color luminance and then normalize its intensity using formula (2) from Finlayson (1998). From table2, we can plot a graph for color distribution using formula (2) The formula was used by Finlayson et al. 1998 and it shows the color distribution in an image. (2) Figure 5: A graph of pixel intensity verses pixel Brightness From the graph, we can say that humans are capable to distinguish shades of green than any other color. 3.3. Grayscale Image For gray scale images, the pixel value is one number that represents the brightness of the pixel. RGB color for grayscale has equal red, green and blue values, that is, R = G = B. The same gray scale level can be achieved by getting the average of RGB values(r + G + B) / 3(En-Nasr, 2012). 3.4. Splitting colours according to color plane Image in RGB colour model consist of three independent image planes one for each primary color (Khotre, 2012). To enhance an image we subject each of the three image plane to histogram modeling separately.from figure 3, we derive an algorithm that determines pixel intensity in an image. Figure 6: Proposed algorithm for extracting color intensity from a raster image INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 326

4. Discussion Normally, a picture or image has got so many pixels.each pixel for a 24 bit image has got 16,777,216 possible colors. Most output devices cannot handle all these colors in an image. Therefore, images aredisplayed on output devices with fewer colours as illustrated in table 1. Digital images are enhanced so as to extract the additional information that is not by itself perceivable prior to enhancement. It is believed that the human eye has Red, Green and Blue cones that sense color. From figure 5, it is evident that humans perceive Green and Red colors more than Blue. For that reason, image processing algorithm should sense colours as human beings do. This can be a bit tricky since the ability to distinguish colours varies from individual to individual. This disparity is credited to factors such as the presence of colour blindnes. For examplefigure (b) shows how a person with a red/green color deficit (deuteranopia)views the original image (flower.bmp) image, figure (c)shows how the picture looks to a person with green/red deficit (Protanope) and figure (d) shows how the same image looks to a person with blue/yellow color deficit (Tritanope). 271*233 pixels (b) (c) (d) Original image (flower.bmp)deuteranopia Protanope Tritanope Figure 7: Illustration of how image is viewed by people with RGB deficiencies The same test was done using a different image (Dolphin.bmp) and figure (b) shows how a person with a red/green color deficit (deuteranopia) views the original image, figure c shows how the picture looks to a person with green/red deficit (Protanope) and figure (d) shows how the same image looks to a person with blue/yellow color deficit (Tritanope) Original image (Dolphin.bmp) Deuteranopia Protanope Triatanope Figure 8: Illustration of how image is viewed by people with RGB deficiencies. The original image was extracted from the internet. The original picture was extracted from the internet (Information from the amazing pictures). The proposed algorithm was used to enhance a bitmap image and our result is shown in figure 9(b). Original image reconstructed image Color bleeding effects Figure 9: Illustration of the image reconstructed using the proposed method INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 327

The algorithm reproduces color bitmap image. However, there is some color bleeding effects as shown in figure 9(c). The red marks indicate the most affected areas of the image. 5. Conclusion The goal of this study was to investigate pixel intensity in an image.the proposed method first extracts pixel color from input image; the luminance value is then computed to get the brightness of the image. The third step splits RGB color into color plane, if the color plane is equal to or greater than three, color image is extracted else a grayscale tone is extracted. The proposed method may be handy in any computer vision technique that enhances image color. It was observed that enhancing image color can significantly improve image quality. On the contrary it can produce an image that is worse than the problem due to light variations in images. A further research should be carried out to eliminate the color bleeding effects on reconstructed bitmap images. 6. References 1. Besser, H. (2003). Introduction to Imaging. Westlake village, Carlifonia. 2. Brown, L., Datta, A., Pankanti, S. (2012). Exploiting Color Correction. IEE International Symposium on Multimedia,12, 179-182. 3. En-Nasr, O. (2012). Converting Image to Grayscale Using C#. 4. http://www.egr.msu.edu/classes/ece480/capstone/fall12/group03/documents/applicationnote_osamaen-nasr.pdf. [Accessed, 27 th August, 2014]. 5. Finlayson, G., Schiele, B., Crowley, J. (1998). Comprehensive Colour Image Normalization. Proceedings of the 5 th European Conference on Computer Vision,1, 475-490. 6. Gijsenij, A., Lu, R., Gevers, T. (2012). Color Constancy for Multiple Light Sources. IEE Transactions on Image Processing,21, No.2. 7. Hiscocks, P. (2011). Measuring Luminance with a Digital Camera. Syscomp Electronic Design Limited: 8. https://www.atecorp.com/atecorp/media/pdfs/data-sheets/tektronix-j16_application.pdf 9. Information from the amazing pictures: http://www.theamazingpics.com/page/5/#.u_6reyes31x. [Accessed, 27 th August, 2014]. 10. Kamboj, A., Grewal, K., Mittal, R. (2012). Color Edge Detection in RGB Color Space Using Automatic Threshold Detection. International Journal of Innovative Technology and Exploring Engineering,1, 41-45. 11. Khotre, R. (2012). Histogram Modification of Colour Images. International Journal of Engineering Research and Application 2248-9622. 12. Koirala, P. (2007). RGB Color Space. Department of Computer Science and Statistics. Brigham University of Joensuu. 13. Lai, Y., HU, B., Martin, R. (2009). Automatic and Topology Preserving Gradient Mesh Generation for Image Verification, 28. 14. Moreno, R., Grana, M., Anjou, A. (2010). An Image Color Gradient Preserving Color Constancy. IEE International Conference on Fuzzy Systems (FUZZ), pp. 1-5. 15. Vischeck People. (1997). VischeckJ1 software. http://vischeck.com. [Accessed, 27 th August, 2014]. 16. Wayne Rasban. (2010). ImageJ software. http://rsb.info.nih.gov/ij/docs/intro.html. [Accessed, 27 th August, 2014] INTERNATIONAL JOURNAL OF INNOVATIVE RESEARCH & DEVELOPMENT Page 328