Comparative Analysis of RGB and HSV Color Models in Extracting Color Features of Green Dye Solutions

Similar documents
Color Image Processing

Imaging Process (review)

The human visual system

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

Color images C1 C2 C3

USE OF COLOR IN REMOTE SENSING

CSE1710. Big Picture. Reminder

Digital Image Processing. Lecture # 8 Color Processing

Capturing Light in man and machine. Some figures from Steve Seitz, Steve Palmer, Paul Debevec, and Gonzalez et al.

Estimation of spectral response of a consumer grade digital still camera and its application for temperature measurement

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

Color Science. What light is. Measuring light. CS 4620 Lecture 15. Salient property is the spectral power distribution (SPD)

Capturing Light in man and machine

Capturing Light in man and machine

Working with the BCC Jitter Filter

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Computer Graphics: Graphics Output Primitives Primitives Attributes

Capturing Light in man and machine

Geography 360 Principles of Cartography. April 24, 2006

Brief Introduction to Vision and Images

Color and More. Color basics

CS101 Lecture 12: Digital Images. What You ll Learn Today

Face Detection System on Ada boost Algorithm Using Haar Classifiers

Image Extraction using Image Mining Technique

A simulation tool for evaluating digital camera image quality

Bettina Selig. Centre for Image Analysis. Swedish University of Agricultural Sciences Uppsala University

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

Computer Graphics Si Lu Fall /27/2016

Capturing Light in man and machine

Light. intensity wavelength. Light is electromagnetic waves Laser is light that contains only a narrow spectrum of frequencies

Color & Graphics. Color & Vision. The complete display system is: We'll talk about: Model Frame Buffer Screen Eye Brain

CSSE463: Image Recognition Day 2

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

CSE1710. Big Picture. Reminder

Characterization of LF and LMA signal of Wire Rope Tester

Color Science. CS 4620 Lecture 15

Visual Perception. human perception display devices. CS Visual Perception

CS 4300 Computer Graphics. Prof. Harriet Fell Fall 2012 Lecture 4 September 12, 2012

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

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

Reference Free Image Quality Evaluation

To discuss. Color Science Color Models in image. Computer Graphics 2

Figure 1: Energy Distributions for light

Introduction. The Spectral Basis for Color

Colour. Why/How do we perceive colours? Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!

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

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

LECTURE 07 COLORS IN IMAGES & VIDEO

Capturing Light in man and machine

Lecture 8. Color Image Processing

Urban Feature Classification Technique from RGB Data using Sequential Methods

Migration from Contrast Transfer Function to ISO Spatial Frequency Response

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

DIGITAL IMAGE PROCESSING (COM-3371) Week 2 - January 14, 2002

A Step-wise Approach for Color Matching Material that Contains Effect Pigments. Dr. Breeze Briggs, BASF Colors & Effects USA LLC, ANTEC 2017

Colour. Electromagnetic Spectrum (1: visible is very small part 2: not all colours are present in the rainbow!) Colour Lecture!

Lane Detection in Automotive

Vision, Color, and Illusions. Vision: How we see

Additive Color Synthesis

Colors in Images & Video

Color Theory: Defining Brown

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

Visual Perception. Overview. The Eye. Information Processing by Human Observer

Digital Image Processing

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

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

An Efficient Color Image Segmentation using Edge Detection and Thresholding Methods

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

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

Camera identification by grouping images from database, based on shared noise patterns

Color: Readings: Ch 6: color spaces color histograms color segmentation

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

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

Segmentation using Saturation Thresholding and its Application in Content-Based Retrieval of Images

Histograms& Light Meters HOW THEY WORK TOGETHER

12/02/2017. From light to colour spaces. Electromagnetic spectrum. Colour. Correlated colour temperature. Black body radiation.

Digital Image Processing Color Models &Processing

COMPARATIVE PERFORMANCE ANALYSIS OF HAND GESTURE RECOGNITION TECHNIQUES

Lecture Color Image Processing. by Shahid Farid

Visual Perception. Jeff Avery

Prof. Feng Liu. Winter /09/2017

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

AGRICULTURE, LIVESTOCK and FISHERIES

The techniques with ERDAS IMAGINE include:

Acquisition and representation of images

IMAGE INTENSIFICATION TECHNIQUE USING HORIZONTAL SITUATION INDICATOR

Technology and digital images

SECTION I - CHAPTER 2 DIGITAL IMAGING PROCESSING CONCEPTS

Introduction to DSP ECE-S352 Fall Quarter 2000 Matlab Project 1

Frequencies and Color

Saturation And Value Modulation (SVM): A New Method For Integrating Color And Grayscale Imagery

Overview. Pinhole camera model Projective geometry Vanishing points and lines Projection matrix Cameras with Lenses Color Digital image

Dynamic Range. H. David Stein

Objective Evaluation of Edge Blur and Ringing Artefacts: Application to JPEG and JPEG 2000 Image Codecs

ME 6406 MACHINE VISION. Georgia Institute of Technology

According to the proposed AWB methods as described in Chapter 3, the following

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

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

Color Image Processing. Gonzales & Woods: Chapter 6

EECS490: Digital Image Processing. Lecture #12

Transcription:

Comparative Analysis of RGB and HSV Color Models in Extracting Color Features of Green Dye Solutions Prane Mariel B. Ong 1,3, * and Eric R. Punzalan 2,3 1Physics Department, De La Salle University, 2401 Taft Avenue, Manila 2Chemistry Department, De La Salle University, 2401 Taft Avenue, Manila 3CENSER, De La Salle University, 2401 Taft Avenue, Manila *Corresponding Author: prane.ong@dlsu.edu.ph Abstract: RGB (Red, Green, Blue) and HSV (Hue, Saturation, Value) color models were compared with respect to their effectivity in color feature extraction. Varying concentration levels of green dye solutions were prepared, and their digital images were obtained in a controlled environment. The green dye was chosen to mimic the color of algae. Matlab was utilized for color feature extraction and analysis. The result showed that it is easier to observe and classify colors given clustered data points in HSV color model than in RGB color model. And there is a direct correlation between the concentration level and digital colors in both color models. 1. INTRODUCTION Color plays a role on how we perceive and analyze things around us. It is a result of the interaction between the electromagnetic radiation (visible light), and the object s surface properties (i.e. reflectance and transmittance) (Waldman, 2002). In the human eye, there are photoreceptors that respond to the incident light for color perception. These are the cones. Cones are sensitive to any of the three primary colors (Red, Green or Blue) (Chudler, 2013). Based on this aspect, a lot of color models were established to quantitatively measure color. Quantitative color measurement is one of the key components in color science, scene analysis, detection and tracking. RGB and HSV color models are one of the simple color models that are widely used today in detection and tracking (Tathe and Narote, 2012, Ong, Mascardo, and Pobre, 2010; Dutta and Chaudhuri, 2009). In the present work, comparison between the RGB color model and HSV color model was made with respect to varying concentration levels of green dye solutions. Green dye solution was selected to mimic the color appearance of algae. In a previous study (Punzalan, Ong, Carandang, Santos, 2013), only the RGB color model was utilized in validating the correlation between dye solution and concentration level. 2. METHODOLOGY Stock solutions of 14 varying concentration levels following the serial dilution method were prepared using a commercial green dye powder (see Table 1). Each solution was placed in a clear-matte rectangular container, as shown in Fig. 1. Sony Cybershot DSC-TX5 camera, mounted on a tripod, was used to capture still images of the stock solutions. The camera sensor was about 51cm above the surface of the solution, just enough height 1

for the container to fit the field of view of the camera. The camera settings was set to automatic mode, and set to capture a 2-megapixel resolution image. Each still image was captured given an ambient lighting condition in a controlled environment. Fig. 1.Experiment Setup. A 500x200 region of interest was identified in every still image of each stock solution. The cropped image was then rendered in RGB color space and HSV color space for the collection of color features in Matlab. Graphical representation of each image was then observed and analyzed in both color spaces. Table 1. Green dye solution in varying concentration levels with their image counterpart arranged in decreasing concentration level (C1 to C14). Solution C1 C2 C3 C4 C5 C6 C7 Concentration 7.68 6.92 6.22 5.60 5.04 4.54 4.08 (x10-3 M) Image Solution C8 C9 C10 C11 C12 C13 C14 Concentration (x10-3 M) 3.67 3.31 2.98 2.68 2.41 2.17 1.95 Image 2

3. RESULTS AND DISCUSSION Fourteen green dye solutions of varying concentration levels were redered in RGB color space and HSV color space using Matlab. The concentration level together with its counterpart image is labeled from C1 to C14 as shown in Table 1, and arranged in decreasing concentration level. Figures 2 and 4 are the graphical representation of the cluster/spread of RGB values and HSV values, respectively, of specific concentration level (C1 to C14) with respect to the number of pixels in each image. The colormap on the side of each graph represents the pixel count. The cluster/spread in each graph could be associated with how homogenous the region of interest is, in terms of the color it reflects towards the camera sensor. Wider spread could be due to the unavoidable glare, total internal reflection of light, and shadows, which are visible in some of the images in Table 1. 3

Fig. 2. Graphical representation of the cluster of RGB combination given their pixel count in every concentration level (C1 to C14). The colormap on the side of each graph represents the pixel count. In RGB color model, a (0.00,0.00,0.00) combination represents a black color and (1.00,1.00,1.00) combination represents a white color. The values in between are the shades of gray of each RGB combination, from darker shades (0.01,0.01,0.01) to lighter shades (0.99,0.99,0.99). In HSV color model, the hue represents the color, the saturation is attributed to the different shades of that color, and value/brightness describes the intensity of lightness/darkness. Figure 3 shows a circular hue spread, which has a range of value from 0.00 to 1.00. It can be seen from this representation that a green hue has a range of approximately 0.20 to 0.40. Fig. 3. Hue representation in a circular spread from 0.00 to 1.00 or 0 o to 360 o (Capitan-Vallvey). 4

Fig. 4. Graphical representation of the cluster of HSV combination given their pixel count in every concentration level (C1 to C14). The colormap on the side of each graph represents the pixel count. It is apparent in all the graphs in Fig. 4 that the data points in the hue-axis did not deviate much from one concentration to the next, and it fits the numerical range of green given in Fig 3; and only in the saturation-axis that the movement of the cluster of data points is apparent. As the level of concentration decreases, the color information in the saturationaxis increases. Based from the two sets of graph (Fig. 2 and Fig. 4), it can be seen that it is easier to perceive the color information in the HSV representation than that of the RGB representation. It might also be due 5

to the fact that in RGB color space, it follows an additive color mixing of the primary colors. Different combination could produce a different color. And it is not perceivable given the above representation. From the cluster/spread of each RGB and HSV pixel combinations, their mean were computed. To see the relationship between the concentration levels and their color features in both RGB and HSV space, another plot was done and can be seen in Fig. 5a and 5b, respectively. 1 Fig. 5: (a) mean R, mean G, mean V vs concentration levels, and (b) mean H, mean S, mean V vs concentration levels. Table 2: Statistical result based on the best curve fit of the mean R,G,B and mean H,S,V with respect to their concentration levels. This result is generated using the SigmaPlot ver. 12.5 (Systat Software, Inc. 2014). R Global Goodness of Fit Rsqr Adj Rsqr (a) Standard Error of Estimate PRESS Statistical Tests Normality Test (Shapiro-Wilk) Constant Variance Test RGB 0.9980 0.9959 0.9944 0.0093 0.0055 P = 0.4996 P = 0.5358 HSV 0.9989 0.9978 0.9970 0.0129 0.0108 P = 0.1828 P = 0.4619 (b) The y-coordinate represents the mean value of each Red, Green, Blue, and Hue, Saturation, Value with respect to the concentration level it represents. For each graph, vertical error bars were also included, with maximum standard deviation: for mean R = 0.022859, for mean G = 0.03727, for mean B = 0.023597; for mean H = 0.047844, for mean S = 0.06022, and for mean V = 0.037296. This error bars takes into account the fact that even if the dye solution is homogenous, some natural stimuli, such 6

as glare, total internal reflection and shadows, could influence the color information that the camera sensor captures. In Table 2, the color information in both color models with respect to the concentration levels passed the Normality Test using the Shapiro-Wilk and the Constant Variance Test. Also, the statistical results showed that the best curve fit for each color models has R-squared = 0.09959 for the mean RGB values and R-squared = 0.9978 for the mean HSV values. This only shows that the color features with respect to the concentration values are close to the best curve fit in both color models. 4. CONCLUSION This paper showed that graphical cluster/spread representation of color features in both color models could quantify the homogeneity of each solution as perceived by the camera sensor. As for the representation and interpretation of clustered data points with respect to color classification, HSV color model gives more perceivable information than in the RGB color model. The result further showed in both color models that the concentration has a direct correlation with digital colors given a polynomial equation. 5. REFERENCES Capitan-Vallvey, L. F. (n.d.). Colorimetry. Retrieved August 20, 2014, from Solid Phase Spectrometry Group: http://wdb.ugr.es/~efasesol/wordpress/?page_id=3 75 Chudler, E. H. (2013). The Retina. Retrieved February 3, 2014, from Nueroscience for Kids: http://faculty.washington.edu/chudler/retina.htm l Eric R. Punzalan, Prane Mariel B. Ong, Jose Santos R. Carandang, Gil Nonato C. Santos, Isa Mae C. Mulingbayan, Azzedine Erika C. Sanchez, Natasha Pauline A. Go, and Jialing L. Huang. (2013). Feature Extraction from Digitized Images of Dye Solutions as a Model for Algal Bloom Remote Sensing. DLSU Research Congress. King, T. (2005). Human Color Perception, Cognition, and Culture: Why "Red" is Always Red. The Reporter, The Society for Imaging Science and Technology, 20(1), 1-11. Prane Mariel B. Ong, Elizabeth D. Mascardo, and Romeric F. Pobre. (2010). Feature Extraction of a Synchronized Swimmer from Underwater Videos. The Manila Journal of Science, 6(1), 36-43. Soumya Dutta and Bidyut B. Chaudhuri. (2009). A Color Edge Detection Algorithm in RGB Color Space. 2009 International Conference on Advances in Recent Technologies in Communication and Computing (pp. 337-340). IEEE Computer Society. Swapnil V. Tathe and Sandipan P. Narote. (2012). Face detection using color models. World Journal of Science and Technology, 2(4), 182-185. Systat Software, Inc. (2014). SigmaPlot for Windows Version 12.5. G, Germany. Waldman, G. (2002). Introduction to Light: The Physics of Light, Vision, and Color. Mineola: Dover Publications. 7