Color Image Representation

Slides:



Advertisements
Similar presentations
Laboratory of Image Processing Pier Luigi Mazzeo
Advertisements

CGA 115 Professor Mary A. Malinconico. Questions from Last Week ????????
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
Fundamentals of Digital Imaging
School of Computing Science Simon Fraser University
SWE 423: Multimedia Systems Chapter 4: Graphics and Images (2)
Colour Theory and Application B.Sc. (Hons) Multimedia ComputingMedia Technologies.
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
© 2002 by Yu Hen Hu 1 ECE533 Digital Image Processing Color Imaging.
Color.
Fundamentals of Multimedia Chapter 4 Color in Image and Video Ze-Nian Li and Mark S. Drew 건국대학교 인터넷미디어공학부 임 창 훈.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Color Models AM Radio FM Radio + TV Microwave Infrared Ultraviolet Visible.
Color Model AbdelRahman Abu_absah Teacher: Dr. Sana'a Alsayegh.
CS 376 Introduction to Computer Graphics 01 / 26 / 2007 Instructor: Michael Eckmann.
Digital Images The digital representation of visual information.
1 Color Processing Introduction Color models Color image processing.
Version 1.0, 30 June 2004 APPLICATIONS OF METEOSAT SECOND GENERATION (MSG) RGB IMAGES: PART 02 INTRODUCTION TO RGB COLOURS Author:Jochen Kerkmann (EUMETSAT)
Digital Images Chapter 8, Exploring the Digital Domain.
CS 101 – Sept. 16 Finish color representation –RGB √ –CMY –HSB –Indexed color Chapter 4 – how computers think –Begin with basic building blocks.
I-1 Steps of Image Generation –Create a model of the objects –Create a model for the illumination of the objects –Create an image (render) the result I.
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
Do Now: Do Not Log In. Take out your notebook and a pen. Good morning! Do Now: Do Not Log In. Take out your notebook and a pen. Good morning! Aim: Review.
A color model is a specification of a 3D color co-ordinate system and a visible subset in the co-ordinate System within all colors in a particular color.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
DIGITAL IMAGE. Basic Image Concepts An image is a spatial representation of an object An image can be thought of as a function with resulting values of.
Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli
PRIMARY COLOURS Primary Colours: The 3 primary colours are red, yellow and blue. They are three colours that can't be made by mixing any other colours,
© UNT in partnership with TEA1 Advanced AV Production Color Theory.
June 14, ‘99 COLORS IN MATLAB.
HSB to RGB to HEX.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
Computer Graphics: Achromatic and Coloured Light.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny
CS 418 : EXAM 2 REVIEW TA: Ryan Freedman Sushma Kini Chi Zhou.
Colour CPSC Colour ● Models ● RGB ● CMY(K) ● HSB (or HSV) ● RYB ● Harmonies ● Monochrome ● Complementary ● Analogous ● Triadic.
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging
© 2016 Pearson Education, Inc., Hoboken, NJ. All rights reserved.
Half Toning Dithering RGB CMYK Models
Design Concepts: Module A: The Science of Color
Color Theory.
Color Image Processing
Advanced AV Production
COLOR space Mohiuddin Ahmad.
The Colour of Light: Additive colour theory.
Images In Matlab.
Chapter 6: Color Image Processing
CITA 342 Section 7 Working with Color.
RGB Color Model CMY Color Model.
COMS 161 Introduction to Computing
Color Representation Although we can differentiate a hundred different grey-levels, we can easily differentiate thousands of colors.
Colour Theories.
Slides taken from Scott Schaefer
Two ways to discuss color 1) Addition 2) Subtraction
Color Visualization in Matlab
Advanced AV Production
Color Model By : Mustafa Salam.
Digital Image Processing
Primary and secondary There are two theories about how we can organize the different colours. Physicists explain color as a function of light. This is.
Color Models l Ultraviolet Infrared 10 Microwave 10
Color Theory What is color? How do we perceive it?
Created for CVCA Physics by Dick Heckathorn 31 May 2K+4
Created for CVCA Physics by Dick Heckathorn 31 May 2K+4
METEOSAT SECOND GENERATION (MSG) INTRODUCTION TO RGB COLOURS
Presentation transcript:

Color Image Representation The image processing toolbox handles color images either as indexed images or RGB images. RGB Images: An RGB color image is an M x N x 3 array of color pixels, where each color triplet corresponding to the red, green and blue components of an RGB image at a specific spatial location.

RGB Image An RGB image may be viewed as a stack of three gray scale images that, when fed into the red, green and blue input of color monitor, produce a color image on the screen. By convention, the three images forming an RGB color image are referred to as the red, green and blue component image. An RGB image is of class double, in the range of values is [0,1]. Similarly the range of values is [0, 255] or [0, 65535] for uint8 or uint16.

RGB Image

RGB Image Let fR,fG and fB represent three RGB image components, the RGB image formed from these image by using the cat operator to stack the image. rgb_image=cat(3,fR,fG,fB); The image components can be identify using fR=rgb_image(:,:,1); fG=rgb_image(:,:,2); fB=rgb_image(:,:,3);

RGB Image Plotting RGB color cubes: >>rgbcube(vx,vy,vz); COLOR PLANE ( vx, vy, vz) Blue-Magenta-White-Cyan ( 0, 0, 10) Red-Yellow-White-Magenta ( 10, 0, 0) Green-Cyan-White-Yellow ( 0, 10, 0) Black-Red-Magenta-Blue ( 0, -10, 0) Black-Blue-Cyan-Green (-10, 0, 0) Black-Red-Yellow-Green ( 0, 0, -10)

Indexed Image An indexed image has two components: a data matrix of integers, X and a color map matrix map. A Matrix map ia an m x 3 array of class double containing floating point values in the range [0, 1]. The map matrix each row specifies the red, green and blue color component of a single color.Processing an rgb image to indexed image: >>[X, map]=rgb2ind(rgb,128); >>imshow(X,map); or >> image(X) >>colormap(map)

Indexed Image

Indexed Image The background color of the image show box can be changed by using the function whitebg and has the following syntax: whitebg(‘g) or whitebg(‘green’) or whitebg([0 1 0])

IPT Functions

IPT Functions I=imread(‘cameraman.tif’); Bw=dither(I); Imshow(Bw) I=imread(‘snowflakes.png’); x=grayslice(I,16); Imview(I) Imview(x,jet(16))

Converting to other color spaces NTSC color space: The NTSC (National Television System Committee) color space is used in television in the united states. The main advantage of this format is that gray-scale information is separate form color data, so the same signal can be used for both color and monochrome television set. The NTSC format image consists of three components, luminance (Y), hue (I) and saturation (Q) where the choice of the letters YIQ is conventional.

Converting to other color spaces NTSC color space: The YIQ components can be obtained from RGB as follows: The function rgb2ntsc performs the transformation yiq_image=rgb2ntsc(rgb_image)

Converting to other color spaces NTSC color space: >> f=imread('rgb.jpg'); >> I=rgb2ntsc(f); >> imshow(I) >> figure, imshow(f) >> y=I(:,:,1); >> figure, imshow(y) >> i=I(:,:,2); >> q=I(:,:,3); >> figure, imshow(i) >> figure, imshow(q) >> R=ntsc2rgb(I); >> figure, imshow(R)

Converting to other color spaces HSV Color space: HSV (hue, saturation, value) used by people to select color form a color wheel or palette. This is a way in which humans experience and describe color sensations. Image colors can be transformed by H=rgb2hsv(rgb_image) R=hsv2rgb(hsv_image)

Converting to other color spaces CMY and CMYK color space: Cyan, Magenta and Yellow are the secondary colors of light or primary color pigments. The function imcomplement used to convert RGB to CMY and vise versa. cmy=imcomplement(rgb_image) rgb=imcomplement(cmy_image)