Colour (1) Graphics 2

Similar documents
Raster Graphics. Overview קורס גרפיקה ממוחשבת 2008 סמסטר ב' What is an image? What is an image? Image Acquisition. Image display 5/19/2008.

קורס גרפיקה ממוחשבת 2008 סמסטר ב' Raster Graphics 1 חלק מהשקפים מעובדים משקפים של פרדו דוראנד, טומס פנקהאוסר ודניאל כהן-אור

Introduction & Colour

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

Color Image Processing. Gonzales & Woods: Chapter 6

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

Introduction. The Spectral Basis for Color

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

Digital Image Processing Color Models &Processing

Figure 1: Energy Distributions for light

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

COLOR. Elements of color. Visible spectrum. The Human Visual System. The Fovea. There are three types of cones, S, M and L. r( λ)

Images and Colour COSC342. Lecture 2 2 March 2015

Interactive Computer Graphics

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

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

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

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

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

Colors in images. Color spaces, perception, mixing, printing, manipulating...

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

Digital Image Processing

COLOR. Elements of color. Visible spectrum. The Fovea. Lecture 3 October 30, Ingela Nyström 1. There are three types of cones, S, M and L

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

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

Mahdi Amiri. March Sharif University of Technology

MATH 5300 Lecture 3- Summary Date: May 12, 2008 By: Violeta Constantin

Colors in Images & Video

Color Image Processing EEE 6209 Digital Image Processing. Outline

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

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

Color Image Processing

Color images C1 C2 C3

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

Hello, welcome to the video lecture series on Digital image processing. (Refer Slide Time: 00:30)

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

Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

Color Image Processing

Light waves. VCE Physics.com. Light waves - 2

Color. Chapter 6. (colour) Digital Multimedia, 2nd edition

LECTURE 07 COLORS IN IMAGES & VIDEO

Image Perception & 2D Images

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

Lecture Color Image Processing. by Shahid Farid

Unit 8: Color Image Processing

Digital Image Processing COSC 6380/4393. Lecture 20 Oct 25 th, 2018 Pranav Mantini

Digital Image Processing (DIP)

Basics of Colors in Graphics Denbigh Starkey

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

COLOR and the human response to light

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

VIDEO AND IMAGE PROCESSING USING DSP AND PFGA. Chapter 1: Introduction to Image Processing. Contents

What is Color? Chapter 9: Color. Color Mixtures. Color Mixtures 10/29/2012. What is color? Color vocabulary

Introduction to Computer Vision and image processing

05 Color. Multimedia Systems. Color and Science

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

Color Reproduction. Chapter 6

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

CPSC 4040/6040 Computer Graphics Images. Joshua Levine

Announcements. Electromagnetic Spectrum. The appearance of colors. Homework 4 is due Tue, Dec 6, 11:59 PM Reading:

Introduction to Color Science (Cont)

Digital Image Processing Lec.(3) 4 th class

Introduction to Computer Vision CSE 152 Lecture 18

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

The Principles of Chromatics

Multimedia Systems and Technologies

Computer Graphics. Rendering. Rendering 3D. Images & Color. Scena 3D rendering image. Human Visual System: the retina. Human Visual System

Chapter 16 Light Waves and Color

any kind, you have two receptive fields, one the small center region, the other the surround region.

Lecture 8. Color Image Processing

Digital Image Processing. Lecture # 8 Color Processing

LECTURE III: COLOR IN IMAGE & VIDEO DR. OUIEM BCHIR

Color Theory: Defining Brown

Color vision and representation

Chapter 3 Part 2 Color image processing

COLOR. and the human response to light

Brief Introduction to Vision and Images

Wireless Communication

Chapter 9: Color. What is Color? Wavelength is a property of an electromagnetic wave in the frequency range we call light

Introduction to Multimedia Computing

In a physical sense, there really is no such thing as color, just light waves of different wavelengths.

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

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

Color Image Processing. Jen-Chang Liu, Spring 2006

Computer Graphics: Graphics Output Primitives Primitives Attributes

Colorimetry and Color Modeling

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

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

Human Vision, Color and Basic Image Processing

Color image processing

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

EECS490: Digital Image Processing. Lecture #12

Slide 1. Slide 2. Slide 3. Light and Colour. Sir Isaac Newton The Founder of Colour Science

Color Perception. Color, What is It Good For? G Perception October 5, 2009 Maloney. perceptual organization. perceptual organization

Computers and Imaging

Computer Graphics Si Lu Fall /27/2016

Digital Images. CCST9015 Oct 13, 2010 Hayden Kwok-Hay So

Light, Color, Spectra 05/30/2006. Lecture 17 1

Introduction to Color Theory

CHAPTER 3 I M A G E S

Transcription:

Colour (1) raphics 2 06-02408 Level 3 10 credits in Semester 2 Professor Aleš Leonardis Slides by Professor Ela Claridge Colours and their origin - spectral characteristics - human visual perception Colour spaces aster data - colour models - image representations - single and multi-band (multi-channel) images - colour lookup tables iven Object surfaces Light sources Camera endering: Colour What is colour Light a part of electromagnetic spectrum Compute Colour of each pixel on the screen This is colour that bounces off the surface point and goes in the direction of the camera (viewer) 1

What is colour Colour spectrum visible light What is colour Newton s experiment Ultraviolet Infrared 400 nm 700 nm Conclusion: White light is a combinations of many different light wavelengths What is colour What is colour Spectrum of white light Surface absorption spectrum Surface reflectance spectrum Absorption curve ed object Spectral reflectance 2

What is colour Human colour perception What is colour Colour is a percept White is a colour, the perception which is evoked by light that stimulates all three types of colour sensitive cone cells in the human eye in nearly equal amounts and with high brightness. [Wikipedia] ed is a colour, the perception of which is evoked by light that stimulates red sensitive cones in the human eye, and no other cones ( green or blue ) Colour images Acquisition Colour images Colour images have two components: raster data - an array of pixels; colour model - a description of how pixels are mapped to colours. A pixel is defined in terms of its components in a particular colour space 3

Colour spaces Colour spaces A colour space represents a system for measuring colours Most colours can be represented using three colour components They are called the primary colours (or the primaries) There are many colour spaces. The choice of a particular space depends on the context in which we want to describe colours. The four most common colour spaces are: HSV CMY XYZ Primaries: ed - reen - lue Similar to colours detected by colour receptors in the eye Used in display technology Magenta (0,0,1) lue (1,1,1) White Cyan lue Cyan Magenta ed lack White reen Yellow (1,0,0) ed (0,0,0) lack Yellow (0,1,0) reen 4

an additive system Vector notation for colours (1) [ Primary1 Primary2 Primary 3 ] [ ] red = [ 1 0 0 ] green = [ 0 1 0 ] blue = [ 0 0 1 ] HSV / HSL Primaries: Hue - Saturation Value Or: Hue Saturation Lightness Colour space related to subjective description of colours Cyan reen White Yellow ed yellow = red + green = [ 1 1 0 ] magenta = [ 1 0 1 ] cyan = [ 0 1 1 ] orange = [ 1 0.5 0 ] HSV lue Magenta lack 5

reen HSV Value Yellow HSV Cyan lue White ed (*,0,1) (1,1,1) Magenta lack (*,0,0) Hue Saturation CMY CMY subtractive system Primaries: Cyan - Magenta Yellow Used in printing technology Complement of Mixing is subtractive 6

[ C M Y ] CMY subtractive system cyan = [ 1 0 0 ] CMY magenta = [ 0 1 0 ] CMY yellow = [ 0 0 1 ] CMY Example: A surface appears yellow because, given white light [1 1 1] yellow pigment absorbs blue component of the spectrum [1 1 1] [0 0 1] = [1 1 0] so a mixture of red and green (i.e. yellow) is reflected [1 1 0] CIE XYZ CIE: Commission Internationale de l'eclairage Primaries: X, Y, Z ased on colour perception by humans Device independent The most common representation of the CIE XYZ space is the CIE chromacity diagram CIE XYZ CIE XYZ colour matching functions: a standard observer Chromacity diagram amut 7

Vector notation for colours (2) Colour space conversion [ Primary1 Primary2 Primary 3 ] [ ] pink = [ 1 0.7 0.7] [ H S V ] pink = [ 0 0.3 1 ] [ C M Y ] pink = [ 0 0.3 0.3 ] Colours can be converted from one space to another Conversion from to CMY: [ C M Y ] = [ 1 1 1 ] - [ ] Example: Convert green from to CMY [ C M Y ] = [ 1 1 1 ] - [ 0 1 0 ] = [ 1 0 1 ] Conversion from to XYZ Conversion from to XYZ Each of the, and primaries is a weighted sum of X, Y and Z primaries Weights expressed in matrix notation, e.g. 0.41 0.21 0.02 0.36 0.71 0.12 0.18 0.07 0.95 Conversion implemented as a matrix multiplication [ X Y Z ] = [ ] đ 0.584 0.311 0.047 0.188 0.614 0.103 0.179 0.075 0.939 The matrix values are characteristic for a given graphics device 8

Colour (2) Colours and their origin - spectral characteristics - human visual perception Colour spaces aster data - computer architecture for colour display - colour models - image representations - single and multi-band (multi-channel) images - colour lookup tables raphics commands Computer architecture for colour displays aster conversion aster processor Frame buffer Colour lookup table Image display Display controller Monitor Colour mapping Frame buffer Frame buffer Display Frame (display) buffer A specially designated area of memory Direct access by a display processor (but not by an application) Pixel value Display processor scans the display buffer and passes the contents to a DAC Colour lookup table Colour definition DAC converts values into voltages for individual, and pixel cells The colour lookup table is a block of fast AM 9

Pixel cells aster data - pixel structure Each individual pixel is divided into three cells, or subpixels (, and ) Each pixel cell receives a voltage from DAC Pixel cells generate colour on a display monitor using various methodologies: Phosphors Filters Liquid crystals, etc aster data - raster array - a rectangular array of picture elements (pixels) aster array forms a picture The structure of a pixel depends on the colour space the colour model aster array Pixel structure Colour models values A colour model describes how pixels are mapped into colours. index 10

Direct Colour (True Colour) Image is an array of vectors three integers at each pixel location Each vector directly encodes values of the three primaries Direct Colour (True Colour) Image is represented by three colour planes (channels) three integer arrays, one for each primary Each plane directly encodes values of one of the three primaries PixelValue(x,y,r) = PixelValue(x,y) = [ ] e.g. red: [ FF 0 0 ] (in hexadecimal notation) PixelValue = PixelValue = PixelValue = PixelValue(x,y,g) = PixelValue(x,y,b) = e.g. red PixelValue(x,y,r) = 255 PixelValue(x,y,g) = 0 PixelValue(x,y,b) = 0 Packed Colour Model (Packed Array) Image is an array of values, each encoding a colour Examples: 4-byte integer aaaaaaaa bbbbbbbb gggggggg rrrrrrrr 1-byte integer rrrgggbb 11

Indexed Colour Model Colour Map A pixel value (or a value of a pixel component) is an index (a pointer) to a table containing colour definitions Synonyms: Colour Lookup Table CLUT LUT Each location in a LUT stores a colour definition for a pixel with a given value aster array LUT Display Source: Wikipedia Colour mapping for 1-byte pixels Colour mapping for 1-byte pixels aster array 117 PixelValue(x,y) = 117 Number of colours simultaneously available in one image? 2 8 = 256 Colour lookup table 117 0 255 0 1 1 Display amut (total number of colours available for use)? 2 3x8 = 2 24 = 16,777,216 0 255 12

Colour mapping for 3-dimensional pixel vectors PixelVector(x,y) = [0 255 0] Colour mapping for 3-dimensional pixel vectors Number of colours simultaneously available in one image? 2 24 = 16,777,216 Colour lookup table 0 255 = 1 = 0.5 = 0 amut (total number of colours available for use)? 2 24 = 16,777,216 0 255 Colour channel / plane Defining pixel colours Colour channel / plane - a component of a colour vector : red channel, green channel and blue channel A pixel vector can have more than three channels Examples alpha channel (often used to describe transparency of a pixel) z channel (in 3D graphics, the depth of the pixel, used in hidden surface removal) Changing pixel colours is very easy within the Indexed Colour Model A raster array containing pixel values (or pixel vectors) stays unchanged. Only colour definitions in the LUT are changing 13

Colour mapping functions Next topic Implementing virtual camera Output Input 14