Visible Color. 700 (red) 580 (yellow) 520 (green)

Size: px
Start display at page:

Download "Visible Color. 700 (red) 580 (yellow) 520 (green)"

Transcription

1 Color Theory

2 Physical Color Visible energy - small portion of the electro-magnetic spectrum Pure monochromatic colors are found at wavelengths between 380nm (violet) and 780nm (red) Color Theory - Center for Graphics and Geometric Computing, Technion 2

3 Visible Color Eye can perceive other colors as combination of several pure colors Most colors may be obtained as combination of small number of primaries Output devices exploits this phenomena 580 (yellow) 520 (green) 700 (red) Color Theory - Center for Graphics and Geometric Computing, Technion 3

4 Gamma Correction The CRT devices are not linear The amount of light emitted from the CRT screen is not linearly proportional to the voltage applied to its tube. If V min and V max are considered black and white intensities, respectively, (V min + V max ) / 2 is not 50% gray. Color Theory - Center for Graphics and Geometric Computing, Technion 4

5 Gamma Correction (cont d) A little bit of electronics: The electronic tube s (including CRT s) characteristic graph of the current I with respect to its voltage V is a polynomial function of the form I = kv β (for semiconductor devices, I = k e dv ) The power reaching the eye is W = IV =V kv β = kv γ Assume n intensity levels, I j, 1 j n on a linear scale. We seek the voltage require for each of these intensity levels, I j Color Theory - Center for Graphics and Geometric Computing, Technion 5

6 We have I j =kv j γ or Gamma Correction (cont d) V j = (I j / k) 1/γ This voltage computation that compensates for the nonlinearity of the CRT is denoted Gamma Correction Each CRT has its own γ value that the manufacturer provides with the CRT. Typically γ [2, 3] Color Theory - Center for Graphics and Geometric Computing, Technion 6

7 Non-Linearity of the Eye The human eye is sensitive to intensity of light logarithmically. Given four light sources of relative intensities of 1, 2, 9 and 10, the eye will distinguish between 1 and 2 much easier than between 9 and 10. It is therefore better to select our intensity levels on an exponential scale: I j+1 = r I j for some unknown constant r. Assume we have n = 256 intensity levels. Question: How can we derive r? Color Theory - Center for Graphics and Geometric Computing, Technion 7

8 Non-Linearity of the Eye (cont d) If I 0 =L 0 and I 255 =L 1, then, Or L 1 = I 255 = I 0 r 255 = L 0 r 255 r = (L 1 / L 0 ) 1/255 The factor of (L 1 / L 0 ) is know as the dynamic range of the CRT From practical tests r should be at most 1.01 for the eye to see the different gray levels continuously Color Theory - Center for Graphics and Geometric Computing, Technion 8

9 Mach Banding Another (very important to predators) property of animal and human eyes is the ability to perform edge/motion detection Named after Mach who discovered this phenomena in 1865, Mach banding could be seen in poor imagery Mach bands are seen in conjunction with C -1 and C 0 continuous surfaces. Color Theory - Center for Graphics and Geometric Computing, Technion 9

10 Dynamic Range The Human eye has a huge dymanic range See in full day light See in moon light 8 Bits has difficulties covering such a large range Modern graphics systems supports more bits per color (New NVidia/ATI graphics cards support 32 bits per color or 128 bits per pixel!) Algorithms were developed in recent years to support and merge several low range images into one image and display it on contemporary hardware Color Theory - Center for Graphics and Geometric Computing, Technion 10

11 Dynamic Range (cont d) Color Theory - Center for Graphics and Geometric Computing, Technion 11

12 Dynamic Range (cont d) Color Theory - Center for Graphics and Geometric Computing, Technion 12

13 Dynamic Range (cont d) Color Theory - Center for Graphics and Geometric Computing, Technion 13

14 Dynamic Range (cont d) Color Theory - Center for Graphics and Geometric Computing, Technion 14

15 The CIE Diagram (1931 & 1976) Universal standard Color (ignoring intensity) represented as affine combination of 3 primaries X, Y, Z x = X / (X + Y + Z). Same for y and z. Note x + y + z = 1 Y is selected to specifically follow the human-eye sensitivity. Z Y X 400nm 500nm 600nm 700nm Color Theory - Center for Graphics and Geometric Computing, Technion 15

16 CIE Diagram (1931 & 1976) Universal standard Color (ignoring intensity) represented as affine combination of 3 primaries X, Y, Z 3D vector (x,y,z) s. t. x+y+z=1 Colors are in the interior of rightangle unit triangle formed by two of the primaries Not all possible colors are visible Visible colors contained in horseshoe region Pure colors (hues) located on boundary of the region Color Theory - Center for Graphics and Geometric Computing, Technion 16

17 The CIE Diagram (cont d) In 3 space the plot of x, y, z looks as in the drawing on the right Not all possible colors are visible Visible colors contained in horse-shoe region Pure colors (hues) located on boundary of the region Consider the plot of x, y only once x, y are known so is z. 400nm Z Y X 500nm 600nm 700nm Color Theory - Center for Graphics and Geometric Computing, Technion 17

18 The CIE Diagram (cont d) Color white is point W=(1/3,1/3,1/3) Any visible color C is blend of a hue C and W Purity of color measured by its saturation: y D W C C d 1 d 2 x saturation(c) = d 1 d + 1 d 2 Complement of C is (only) other hue D on line through C and W Color Theory - Center for Graphics and Geometric Computing, Technion 18

19 The CIE Diagram (cont d) Color enhancement of an image increasing the saturation of the colors moves them towards the boundary of the visible region unsaturated saturated Color Theory - Center for Graphics and Geometric Computing, Technion 19

20 Color Gamuts Not every color output device is capable of generating all visible colors in CIE diagram y Usually color generated as affine combination of three primaries P, Q, R Possible colors bounded by triangle in XYZ space with vertices P, Q, R This triangle is called the output device s gamut P W Q R x Color Theory - Center for Graphics and Geometric Computing, Technion 20

21 Color Gamuts (cont d) Example: Primaries of low quality color monitor: y RED P = = GREEN Q BLUE R x Different color displays use different P, Q, R Same RGB image data, displayed on two monitors will look different! Question: Given P,Q,R of two color monitors and image I, what must be done in order for I to look the same on both monitors? Color Theory - Center for Graphics and Geometric Computing, Technion 21

22 The RGB Color Model Common in describing emissive color displays Red, Green and Blue are the primary colors in this model Color (including intensity) described as combination of primaries colormodels Color Theory - Center for Graphics and Geometric Computing, Technion 22

23 The RGB Color Model C G B W M Y colormixing R Col = rr + gg + bb r,g,b [0, 1] Yellow = Red+Green (1, 1, 0) Cyan = Green+Blue (0, 1, 1) Magenta = Red+Blue (1, 0, 1) White = Red+Green+Blue (1, 1, 1) Gray = 0.5 Red+0.5 Blue+0.5 Green (0.5, 0.5, 0.5) Main diagonal of RGB cube represents shades of gray Color Theory - Center for Graphics and Geometric Computing, Technion 23

24 The CMY Color Model Used mainly in color printing, where the primary colors are subtracted from the background white. Cyan, Magenta and Yellow primaries are the complements of Red, Green and Blue Primaries (dyes) subtracted from white paper which absorbs no energy Red = White-Cyan = White-Green-Blue (0, 1, 1) Green = White-Magenta = White-Red-Blue (1, 0, 1) Blue = White-Yellow = White-Red-Green (1, 1, 0) (r,g,b) = (1-c,1-m,1-y) C G Bl B Y R M Color Theory - Center for Graphics and Geometric Computing, Technion 24

25 The YIQ Color Model Human eye more sensitive to changes in luminance (intensity) than to changes in hue or saturation Luminance useful for displaying grayscale version of color signal (e.g. B&W TV) Luminance Y affine combination of R,G & B I & Q null blend (zero sum) of R,G & B Conversion 0.30 ( y, i, q) = ( r, g, b) Green component dominates luminance value Color Theory - Center for Graphics and Geometric Computing, Technion 25

26 The HSV Color Model People naturally mix colors based on Hue, Saturation and Value Resulting coordinate system is cylindrical H angle around V axis S [0,1] distance from V axis V [0,1] - luminance R Y M V 1.0 W G B colormodels 0 C Color Theory - Center for Graphics and Geometric Computing, Technion 26 H S

27 Color Quantization High-quality color resolution for images - 8 bits per primary = 24 bits = 16.7M different colors Reducing number of colors select subset (colormap/pallete) and map all colors to the subset Used for devices capable of displaying limited number of different colors simultaneously. E.g. an 8 bit display. R 0 quantization to 4 colors reps B Color Theory - Center for Graphics and Geometric Computing, Technion 27

28 Color Quantization Example 256 colors 64 colors 16 colors 4 colors Color Theory - Center for Graphics and Geometric Computing, Technion 28

29 Color Quantization Issues How are the representative colors chosen? Fixed representatives, image independent - fast Image content dependent - slow Which image colors are mapped to which representatives? Nearest representative - slow By space partitioning - fast R 0 quantization to 4 colors reps B Color Theory - Center for Graphics and Geometric Computing, Technion 29

30 Choosing the Representatives R uniform quantization to 4 colors image-dependent quantization to 4 colors R 0 B 0 B large quantization error small quantization error Color Theory - Center for Graphics and Geometric Computing, Technion 30

31 Uniform Quantization Fixed representatives - lattice structure on RGB cube Image independent - no need to analyze input image Some representatives may be wasted Fast mapping to representatives by discarding least significant bits of each component Common way for 24 8 bit quantization retain most significant bits of R, G and B components R uniform quantization to 4 colors 0 B large quantization error Color Theory - Center for Graphics and Geometric Computing, Technion 31

32 Median-Cut Quantization Image colors partitioned into n cells, s.t. each cell contains approximately same number of image colors Recursive algorithm Image representatives - centroids of image colors in each cell Image color mapped to rep. of containing cell not necessarily nearest representative R image-dependent quantization to 4 colors 0 B small quantization error Color Theory - Center for Graphics and Geometric Computing, Technion 32

33 Quantization uniform 256 colors median-cut 8 colors Color Theory - Center for Graphics and Geometric Computing, Technion 33

34 Binary Dithering Improve quality of quantized image by distributing quantization error original threshold dithered Color Theory - Center for Graphics and Geometric Computing, Technion 34

35 Binary Dithering B&W Threshold map upper half of gray-level scale to white and lower half to black If else 1 I ( i, j) > 2 I ( i, j) = 1; I ( i, Each pixel produces some quantization error Distribute quantization error use local threshold Use matrix of thresholds for each n n pixels If else end; I ( i, I ( i, I ( i, j) j) j) > = = M 1 0 mod n, Color Theory - Center for Graphics and Geometric Computing, Technion 35 ( i j) j = 0; mod n )

36 Dithering For four color input use 2 2 matrix (gray levels 0 to 255) threshold dither dither For 16 gray-levels use 4 4 matrix (gray levels 0 to 255) How to build n n matrix for n 2 gray-levels? Build matrix to generate 2 k final colors? Build 4 4 matrix from 256 gray-levels? Color Theory - Center for Graphics and Geometric Computing, Technion 36

37 Halftoning Displaying (printing) image on device with lower color range & higher resolution Most common in printing (high dpi) Pixels grouped together group pattern used to replace color-scale E.g. 2x2 blocks emulating 5 gray-scale levels Color Theory - Center for Graphics and Geometric Computing, Technion 37

38 Quantization + Dithering uniform uniform + dithering median-cut 8 colors median-cut + dithering Color Theory - Center for Graphics and Geometric Computing, Technion 38

39 Error Diffusion Reduce quantization error by propagating accumulated error from pixel to (some of) its neighbors in scanline order before thresholding FloydSteinberg(I) For x := 1 to XMax do For y := 1 to YMax do err := I(x,y)-(I(x,y)>128)*255; I(x,y) := (I(x,y)>128)*255; I(x+1,y) := I(x+1,y)+err*7/16; I(x-1,y+1) := I(x-1,y+1)+err*3/16; I(x,y+1) := I(x,y+1)+err*5/16; I(x+1,y+1) := I(x+1,y+1)+err*1/16; end end dither error-diffusion Note: error propagation weights must sum to one Color Theory - Center for Graphics and Geometric Computing, Technion 39

40 Error Diffusion (cont d) Here are more examples of FS dithering the Utah teapot: Color Theory - Center for Graphics and Geometric Computing, Technion 40

Physical Color. Color Theory - Center for Graphics and Geometric Computing, Technion 2

Physical Color. Color Theory - Center for Graphics and Geometric Computing, Technion 2 Color Theory Physical Color Visible energy - small portion of the electro-magnetic spectrum Pure monochromatic colors are found at wavelengths between 380nm (violet) and 780nm (red) 380 780 Color Theory

More information

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception

Color and Shading. Color. Shapiro and Stockman, Chapter 6. Color and Machine Vision. Color and Perception Color and Shading Color Shapiro and Stockman, Chapter 6 Color is an important factor for for human perception for object and material identification, even time of day. Color perception depends upon both

More information

CS452/552; EE465/505. Color Display Issues

CS452/552; EE465/505. Color Display Issues CS452/552; EE465/505 Color Display Issues 4-16 15 2 Outline! Color Display Issues Color Systems Dithering and Halftoning! Splines Hermite Splines Bezier Splines Catmull-Rom Splines Read: Angel, Chapter

More information

CS635 Spring Department of Computer Science Purdue University

CS635 Spring Department of Computer Science Purdue University Color and Perception CS635 Spring 2010 Daniel G Aliaga Daniel G. Aliaga Department of Computer Science Purdue University Elements of Color Perception 2 Elements of Color Physics: Illumination Electromagnetic

More information

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo

Computer Graphics. Bing-Yu Chen National Taiwan University The University of Tokyo Computer Graphics Bing-Yu Chen National Taiwan University The University of Tokyo Introduction The Graphics Process Color Models Triangle Meshes The Rendering Pipeline 1 What is Computer Graphics? modeling

More information

Lecture 12 Color model and color image processing

Lecture 12 Color model and color image processing Lecture 12 Color model and color image processing Color fundamentals Color models Pseudo color image Full color image processing Color fundamental The color that humans perceived in an object are determined

More information

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15.

Reading. 2. Color. Emission spectra. The radiant energy spectrum. Watt, Chapter 15. Reading Watt, Chapter 15. Brian Wandell. Foundations of Vision. Chapter 4. Sinauer Associates, Sunderland, MA, pp. 69-97, 1995. 2. Color 1 2 The radiant energy spectrum We can think of light as waves,

More information

Illumination and Shading

Illumination and Shading Illumination and Shading Light sources emit intensity: assigns intensity to each wavelength of light Humans perceive as a colour - navy blue, light green, etc. Exeriments show that there are distinct I

More information

Game Programming. Bing-Yu Chen National Taiwan University

Game Programming. Bing-Yu Chen National Taiwan University Game Programming Bing-Yu Chen National Taiwan University What is Computer Graphics? Definition the pictorial synthesis of real or imaginary objects from their computer-based models descriptions OUTPUT

More information

Fall 2015 Dr. Michael J. Reale

Fall 2015 Dr. Michael J. Reale CS 490: Computer Vision Color Theory: Color Models Fall 2015 Dr. Michael J. Reale Color Models Different ways to model color: XYZ CIE standard RB Additive Primaries Monitors, video cameras, etc. CMY/CMYK

More information

Main topics in the Chapter 2. Chapter 2. Digital Image Representation. Bitmaps digitization. Three Types of Digital Image Creation CS 3570

Main topics in the Chapter 2. Chapter 2. Digital Image Representation. Bitmaps digitization. Three Types of Digital Image Creation CS 3570 Main topics in the Chapter Chapter. Digital Image Representation CS 3570 Three main types of creating digital images Bitmapping, Vector graphics, Procedural modeling Frequency in digital image Discrete

More information

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images.

The Display pipeline. The fast forward version. The Display Pipeline The order may vary somewhat. The Graphics Pipeline. To draw images. View volume The fast forward version The Display pipeline Computer Graphics 1, Fall 2004 Lecture 3 Chapter 1.4, 1.8, 2.5, 8.2, 8.13 Lightsource Hidden surface 3D Projection View plane 2D Rasterization

More information

Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini

Digital Image Processing COSC 6380/4393. Lecture 19 Mar 26 th, 2019 Pranav Mantini Digital Image Processing COSC 6380/4393 Lecture 19 Mar 26 th, 2019 Pranav Mantini What is color? Color is a psychological property of our visual experiences when we look at objects and lights, not a physical

More information

Digital Image Processing. Introduction

Digital Image Processing. Introduction Digital Image Processing Introduction Digital Image Definition An image can be defined as a twodimensional function f(x,y) x,y: Spatial coordinate F: the amplitude of any pair of coordinate x,y, which

More information

Digital Image Processing

Digital Image Processing Digital Image Processing 7. Color Transforms 15110191 Keuyhong Cho Non-linear Color Space Reflect human eye s characters 1) Use uniform color space 2) Set distance of color space has same ratio difference

More information

Lecture 1 Image Formation.

Lecture 1 Image Formation. Lecture 1 Image Formation peimt@bit.edu.cn 1 Part 3 Color 2 Color v The light coming out of sources or reflected from surfaces has more or less energy at different wavelengths v The visual system responds

More information

Computer Graphics. Bing-Yu Chen National Taiwan University

Computer Graphics. Bing-Yu Chen National Taiwan University Computer Graphics Bing-Yu Chen National Taiwan University Introduction The Graphics Process Color Models Triangle Meshes The Rendering Pipeline 1 INPUT What is Computer Graphics? Definition the pictorial

More information

The Elements of Colour

The Elements of Colour Color science 1 The Elements of Colour Perceived light of different wavelengths is in approximately equal weights achromatic.

More information

Visualisatie BMT. Rendering. Arjan Kok

Visualisatie BMT. Rendering. Arjan Kok Visualisatie BMT Rendering Arjan Kok a.j.f.kok@tue.nl 1 Lecture overview Color Rendering Illumination 2 Visualization pipeline Raw Data Data Enrichment/Enhancement Derived Data Visualization Mapping Abstract

More information

3D graphics, raster and colors CS312 Fall 2010

3D graphics, raster and colors CS312 Fall 2010 Computer Graphics 3D graphics, raster and colors CS312 Fall 2010 Shift in CG Application Markets 1989-2000 2000 1989 3D Graphics Object description 3D graphics model Visualization 2D projection that simulates

More information

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico

Image Formation. Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico Image Formation Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico 1 Objectives Fundamental imaging notions Physical basis for image formation

More information

Introduction to Computer Graphics with WebGL

Introduction to Computer Graphics with WebGL Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science Laboratory University of New Mexico Image Formation

More information

Colour Reading: Chapter 6. Black body radiators

Colour Reading: Chapter 6. Black body radiators Colour Reading: Chapter 6 Light is produced in different amounts at different wavelengths by each light source Light is differentially reflected at each wavelength, which gives objects their natural colours

More information

Color, Edge and Texture

Color, Edge and Texture EECS 432-Advanced Computer Vision Notes Series 4 Color, Edge and Texture Ying Wu Electrical Engineering & Computer Science Northwestern University Evanston, IL 628 yingwu@ece.northwestern.edu Contents

More information

Image Analysis. 1. A First Look at Image Classification

Image Analysis. 1. A First Look at Image Classification Image Analysis Image Analysis 1. A First Look at Image Classification Lars Schmidt-Thieme Information Systems and Machine Learning Lab (ISMLL) Institute for Business Economics and Information Systems &

More information

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology

(0, 1, 1) (0, 1, 1) (0, 1, 0) What is light? What is color? Terminology lecture 23 (0, 1, 1) (0, 0, 0) (0, 0, 1) (0, 1, 1) (1, 1, 1) (1, 1, 0) (0, 1, 0) hue - which ''? saturation - how pure? luminance (value) - intensity What is light? What is? Light consists of electromagnetic

More information

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011

CSE 167: Lecture #7: Color and Shading. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011 CSE 167: Introduction to Computer Graphics Lecture #7: Color and Shading Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2011 Announcements Homework project #3 due this Friday,

More information

Chapter 4 Color in Image and Video

Chapter 4 Color in Image and Video Chapter 4 Color in Image and Video 4.1 Color Science 4.2 Color Models in Images 4.3 Color Models in Video 4.4 Further Exploration 1 Li & Drew c Prentice Hall 2003 4.1 Color Science Light and Spectra Light

More information

Color and Light CSCI 4229/5229 Computer Graphics Fall 2016

Color and Light CSCI 4229/5229 Computer Graphics Fall 2016 Color and Light CSCI 4229/5229 Computer Graphics Fall 2016 Solar Spectrum Human Trichromatic Color Perception Color Blindness Present to some degree in 8% of males and about 0.5% of females due to mutation

More information

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision

Color. making some recognition problems easy. is 400nm (blue) to 700 nm (red) more; ex. X-rays, infrared, radio waves. n Used heavily in human vision Color n Used heavily in human vision n Color is a pixel property, making some recognition problems easy n Visible spectrum for humans is 400nm (blue) to 700 nm (red) n Machines can see much more; ex. X-rays,

More information

Lecture 11. Color. UW CSE vision faculty

Lecture 11. Color. UW CSE vision faculty Lecture 11 Color UW CSE vision faculty Starting Point: What is light? Electromagnetic radiation (EMR) moving along rays in space R(λ) is EMR, measured in units of power (watts) λ is wavelength Perceiving

More information

CS 445 HW#6 Solutions

CS 445 HW#6 Solutions CS 445 HW#6 Solutions Text problem 6.1 From the figure, x = 0.43 and y = 0.4. Since x + y + z = 1, it follows that z = 0.17. These are the trichromatic coefficients. We are interested in tristimulus values

More information

Light Transport Baoquan Chen 2017

Light Transport Baoquan Chen 2017 Light Transport 1 Physics of Light and Color It s all electromagnetic (EM) radiation Different colors correspond to radiation of different wavelengths Intensity of each wavelength specified by amplitude

More information

Chapter 5 Extraction of color and texture Comunicação Visual Interactiva. image labeled by cluster index

Chapter 5 Extraction of color and texture Comunicação Visual Interactiva. image labeled by cluster index Chapter 5 Extraction of color and texture Comunicação Visual Interactiva image labeled by cluster index Color images Many images obtained with CCD are in color. This issue raises the following issue ->

More information

Introduction to color science

Introduction to color science Introduction to color science Trichromacy Spectral matching functions CIE XYZ color system xy-chromaticity diagram Color gamut Color temperature Color balancing algorithms Digital Image Processing: Bernd

More information

Image Analysis and Formation (Formation et Analyse d'images)

Image Analysis and Formation (Formation et Analyse d'images) Image Analysis and Formation (Formation et Analyse d'images) James L. Crowley ENSIMAG 3 - MMIS Option MIRV First Semester 2010/2011 Lesson 4 19 Oct 2010 Lesson Outline: 1 The Physics of Light...2 1.1 Photons

More information

Image Processing. Color

Image Processing. Color Image Processing Color Material in this presentation is largely based on/derived from presentation(s) and book: The Digital Image by Dr. Donald House at Texas A&M University Brent M. Dingle, Ph.D. 2015

More information

INTRODUCTION. Slides modified from Angel book 6e

INTRODUCTION. Slides modified from Angel book 6e INTRODUCTION Slides modified from Angel book 6e Fall 2012 COSC4328/5327 Computer Graphics 2 Objectives Historical introduction to computer graphics Fundamental imaging notions Physical basis for image

More information

Color and Light. CSCI 4229/5229 Computer Graphics Summer 2008

Color and Light. CSCI 4229/5229 Computer Graphics Summer 2008 Color and Light CSCI 4229/5229 Computer Graphics Summer 2008 Solar Spectrum Human Trichromatic Color Perception Are A and B the same? Color perception is relative Transmission,Absorption&Reflection Light

More information

Computer Graphics Lecture 2

Computer Graphics Lecture 2 1 / 16 Computer Graphics Lecture 2 Dr. Marc Eduard Frîncu West University of Timisoara Feb 28th 2012 2 / 16 Outline 1 Graphics System Graphics Devices Frame Buffer 2 Rendering pipeline 3 Logical Devices

More information

Mech 296: Vision for Robotic Applications

Mech 296: Vision for Robotic Applications Mech 296: Vision for Robotic Applications Lecture 2: Color Imaging 2. Terminology from Last Week Data Files ASCII (Text): Data file is human readable Ex: 7 9 5 Note: characters may be removed when transferring

More information

ITP 140 Mobile App Technologies. Colors

ITP 140 Mobile App Technologies. Colors ITP 140 Mobile App Technologies Colors Colors in Photoshop RGB Mode CMYK Mode L*a*b Mode HSB Color Model 2 RGB Mode Based on the RGB color model Called an additive color model because adding all the colors

More information

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision.

Announcements. Lighting. Camera s sensor. HW1 has been posted See links on web page for readings on color. Intro Computer Vision. Announcements HW1 has been posted See links on web page for readings on color. Introduction to Computer Vision CSE 152 Lecture 6 Deviations from the lens model Deviations from this ideal are aberrations

More information

ECE-161C Color. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth)

ECE-161C Color. Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth) ECE-6C Color Nuno Vasconcelos ECE Department, UCSD (with thanks to David Forsyth) Color so far we have talked about geometry where is a 3D point map mapped into, in terms of image coordinates? perspective

More information

The Viewing Pipeline Coordinate Systems

The Viewing Pipeline Coordinate Systems Overview Interactive Graphics System Model Graphics Pipeline Coordinate Systems Modeling Transforms Cameras and Viewing Transform Lighting and Shading Color Rendering Visible Surface Algorithms Rasterization

More information

Pop Quiz 1 [10 mins]

Pop Quiz 1 [10 mins] Pop Quiz 1 [10 mins] 1. An audio signal makes 250 cycles in its span (or has a frequency of 250Hz). How many samples do you need, at a minimum, to sample it correctly? [1] 2. If the number of bits is reduced,

More information

Introduction to Video and Image Processing

Introduction to Video and Image Processing Thomas В. Moeslund Introduction to Video and Image Processing Building Real Systems and Applications Springer Contents 1 Introduction 1 1.1 The Different Flavors of Video and Image Processing 2 1.2 General

More information

CS 111: Digital Image Processing Fall 2016 Midterm Exam: Nov 23, Pledge: I neither received nor gave any help from or to anyone in this exam.

CS 111: Digital Image Processing Fall 2016 Midterm Exam: Nov 23, Pledge: I neither received nor gave any help from or to anyone in this exam. CS 111: Digital Image Processing Fall 2016 Midterm Exam: Nov 23, 2016 Time: 3:30pm-4:50pm Total Points: 80 points Name: Number: Pledge: I neither received nor gave any help from or to anyone in this exam.

More information

Color Dithering with n-best Algorithm

Color Dithering with n-best Algorithm Color Dithering with n-best Algorithm Kjell Lemström, Jorma Tarhio University of Helsinki Department of Computer Science P.O. Box 26 (Teollisuuskatu 23) FIN-00014 University of Helsinki Finland {klemstro,tarhio}@cs.helsinki.fi

More information

CS770/870 Spring 2017 Color and Shading

CS770/870 Spring 2017 Color and Shading Preview CS770/870 Spring 2017 Color and Shading Related material Cunningham: Ch 5 Hill and Kelley: Ch. 8 Angel 5e: 6.1-6.8 Angel 6e: 5.1-5.5 Making the scene more realistic Color models representing the

More information

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY SRM INSTITUTE OF SCIENCE AND TECHNOLOGY DEPARTMENT OF INFORMATION TECHNOLOGY QUESTION BANK SUB.NAME: COMPUTER GRAPHICS SUB.CODE: IT307 CLASS : III/IT UNIT-1 2-marks 1. What is the various applications

More information

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation

Lecture #13. Point (pixel) transformations. Neighborhood processing. Color segmentation Lecture #13 Point (pixel) transformations Color modification Color slicing Device independent color Color balancing Neighborhood processing Smoothing Sharpening Color segmentation Color Transformations

More information

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted.

The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when time is announced or risk not having it accepted. CS 184: Foundations of Computer Graphics page 1 of 10 Student Name: Class Account Username: Instructions: Read them carefully! The exam begins at 2:40pm and ends at 4:00pm. You must turn your exam in when

More information

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception

Image Formation. Camera trial #1. Pinhole camera. What is an Image? Light and the EM spectrum The H.V.S. and Color Perception Image Formation Light and the EM spectrum The H.V.S. and Color Perception What is an Image? An image is a projection of a 3D scene into a 2D projection plane. An image can be defined as a 2 variable function

More information

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions

Noise Model. Important Noise Probability Density Functions (Cont.) Important Noise Probability Density Functions Others -- Noise Removal Techniques -- Edge Detection Techniques -- Geometric Operations -- Color Image Processing -- Color Spaces Xiaojun Qi Noise Model The principal sources of noise in digital images

More information

Image Acquisition Image Digitization Spatial domain Intensity domain Image Characteristics

Image Acquisition Image Digitization Spatial domain Intensity domain Image Characteristics Image Acquisition Image Digitization Spatial domain Intensity domain Image Characteristics 1 What is an Image? An image is a projection of a 3D scene into a 2D projection plane. An image can be defined

More information

Motivation. Intensity Levels

Motivation. Intensity Levels Motivation Image Intensity and Point Operations Dr. Edmund Lam Department of Electrical and Electronic Engineering The University of Hong ong A digital image is a matrix of numbers, each corresponding

More information

Color Space Transformations

Color Space Transformations Color Space Transformations Philippe Colantoni and Al 2004 1 Introduction This document defines several color concepts and all the mathematic relations used in ColorSpace. The first version of this document

More information

UNIT-2 IMAGE REPRESENTATION IMAGE REPRESENTATION IMAGE SENSORS IMAGE SENSORS- FLEX CIRCUIT ASSEMBLY

UNIT-2 IMAGE REPRESENTATION IMAGE REPRESENTATION IMAGE SENSORS IMAGE SENSORS- FLEX CIRCUIT ASSEMBLY 18-08-2016 UNIT-2 In the following slides we will consider what is involved in capturing a digital image of a real-world scene Image sensing and representation Image Acquisition Sampling and quantisation

More information

Graphics Hardware and Display Devices

Graphics Hardware and Display Devices Graphics Hardware and Display Devices CSE328 Lectures Graphics/Visualization Hardware Many graphics/visualization algorithms can be implemented efficiently and inexpensively in hardware Facilitates interactive

More information

CSE 167: Introduction to Computer Graphics Lecture #6: Colors. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013

CSE 167: Introduction to Computer Graphics Lecture #6: Colors. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013 CSE 167: Introduction to Computer Graphics Lecture #6: Colors Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2013 Announcements Homework project #3 due this Friday, October 18

More information

Basic relations between pixels (Chapter 2)

Basic relations between pixels (Chapter 2) Basic relations between pixels (Chapter 2) Lecture 3 Basic Relationships Between Pixels Definitions: f(x,y): digital image Pixels: q, p (p,q f) A subset of pixels of f(x,y): S A typology of relations:

More information

CIE L*a*b* color model

CIE L*a*b* color model CIE L*a*b* color model To further strengthen the correlation between the color model and human perception, we apply the following non-linear transformation: with where (X n,y n,z n ) are the tristimulus

More information

this is processed giving us: perceived color that we actually experience and base judgments upon.

this is processed giving us: perceived color that we actually experience and base judgments upon. color we have been using r, g, b.. why what is a color? can we get all colors this way? how does wavelength fit in here, what part is physics, what part is physiology can i use r, g, b for simulation of

More information

CS 464 Review. Review of Computer Graphics for Final Exam

CS 464 Review. Review of Computer Graphics for Final Exam CS 464 Review Review of Computer Graphics for Final Exam Goal: Draw 3D Scenes on Display Device 3D Scene Abstract Model Framebuffer Matrix of Screen Pixels In Computer Graphics: If it looks right then

More information

Polytechnic Institute of NYU Fall 2012 EL5123/BE DIGITAL IMAGE PROCESSING

Polytechnic Institute of NYU Fall 2012 EL5123/BE DIGITAL IMAGE PROCESSING Polytechnic Institute of NYU Fall EL53/BE63 --- DIGITAL IMAGE PROCESSING Yao Wang Midterm Exam (/4, 3:-5:3PM) Closed book, sheet of notes (double sided) allowed. No peeking into neighbors or unauthorized

More information

What is it? How does it work? How do we use it?

What is it? How does it work? How do we use it? What is it? How does it work? How do we use it? Dual Nature http://www.youtube.com/watch?v=dfpeprq7ogc o Electromagnetic Waves display wave behavior o Created by oscillating electric and magnetic fields

More information

National Chiao Tung Univ, Taiwan By: I-Chen Lin, Assistant Professor

National Chiao Tung Univ, Taiwan By: I-Chen Lin, Assistant Professor Computer Graphics 1. Graphics Systems National Chiao Tung Univ, Taiwan By: I-Chen Lin, Assistant Professor Textbook: Hearn and Baker, Computer Graphics, 3rd Ed., Prentice Hall Ref: E.Angel, Interactive

More information

Hue, Saturation & Intensity

Hue, Saturation & Intensity Spectral Colours Spectral colours are pure unmixed colours, related to the wavelength of the light. F r o m : h tt p :/ / w w w 2. n c s u.e d u / s c i v is/lessons/colormodels/color_models2.html Hue,

More information

Introduction to Computer Science (I1100) Data Storage

Introduction to Computer Science (I1100) Data Storage Data Storage 145 Data types Data comes in different forms Data Numbers Text Audio Images Video 146 Data inside the computer All data types are transformed into a uniform representation when they are stored

More information

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting.

Color to Binary Vision. The assignment Irfanview: A good utility Two parts: More challenging (Extra Credit) Lighting. Announcements Color to Binary Vision CSE 90-B Lecture 5 First assignment was available last Thursday Use whatever language you want. Link to matlab resources from web page Always check web page for updates

More information

CHAPTER 3 FACE DETECTION AND PRE-PROCESSING

CHAPTER 3 FACE DETECTION AND PRE-PROCESSING 59 CHAPTER 3 FACE DETECTION AND PRE-PROCESSING 3.1 INTRODUCTION Detecting human faces automatically is becoming a very important task in many applications, such as security access control systems or contentbased

More information

Survey in Computer Graphics Computer Graphics and Visualization

Survey in Computer Graphics Computer Graphics and Visualization Example of a Marble Ball Where did this image come from? Fall 2010 What hardware/software/algorithms did we need to produce it? 2 A Basic Graphics System History of Computer Graphics 1200-2008 Input devices

More information

Computer Graphics MTAT Raimond Tunnel

Computer Graphics MTAT Raimond Tunnel Computer Graphics MTAT.03.015 Raimond Tunnel The Road So Far... Last week This week Color What is color? Color We represent color values with 3 channels: Red Green Blue Color We represent color values

More information

All forms of EM waves travel at the speed of light in a vacuum = 3.00 x 10 8 m/s This speed is constant in air as well

All forms of EM waves travel at the speed of light in a vacuum = 3.00 x 10 8 m/s This speed is constant in air as well Pre AP Physics Light & Optics Chapters 14-16 Light is an electromagnetic wave Electromagnetic waves: Oscillating electric and magnetic fields that are perpendicular to the direction the wave moves Difference

More information

Lighting. Camera s sensor. Lambertian Surface BRDF

Lighting. Camera s sensor. Lambertian Surface BRDF Lighting Introduction to Computer Vision CSE 152 Lecture 6 Special light sources Point sources Distant point sources Strip sources Area sources Common to think of lighting at infinity (a function on the

More information

Spectral Color and Radiometry

Spectral Color and Radiometry Spectral Color and Radiometry Louis Feng April 13, 2004 April 13, 2004 Realistic Image Synthesis (Spring 2004) 1 Topics Spectral Color Light and Color Spectrum Spectral Power Distribution Spectral Color

More information

COMP3421. Global Lighting Part 2: Radiosity

COMP3421. Global Lighting Part 2: Radiosity COMP3421 Global Lighting Part 2: Radiosity Recap: Global Lighting The lighting equation we looked at earlier only handled direct lighting from sources: We added an ambient fudge term to account for all

More information

Sources, Surfaces, Eyes

Sources, Surfaces, Eyes Sources, Surfaces, Eyes An investigation into the interaction of light sources, surfaces, eyes IESNA Annual Conference, 2003 Jefferey F. Knox David M. Keith, FIES Sources, Surfaces, & Eyes - Research *

More information

When this experiment is performed, subjects find that they can always. test field. adjustable field

When this experiment is performed, subjects find that they can always. test field. adjustable field COLORIMETRY In photometry a lumen is a lumen, no matter what wavelength or wavelengths of light are involved. But it is that combination of wavelengths that produces the sensation of color, one of the

More information

Laboratory of Applied Robotics

Laboratory of Applied Robotics Laboratory of Applied Robotics OpenCV: Shape Detection Paolo Bevilacqua RGB (Red-Green-Blue): Color Spaces RGB and HSV Color defined in relation to primary colors Correlated channels, information on both

More information

Digital Image Processing. Week 4

Digital Image Processing. Week 4 Morphological Image Processing Morphology deals with form and structure. Mathematical morphology is a tool for extracting image components that are useful in the representation and description of region

More information

Color Image Processing

Color Image Processing Color Image Processing Inel 5327 Prof. Vidya Manian Introduction Color fundamentals Color models Histogram processing Smoothing and sharpening Color image segmentation Edge detection Color fundamentals

More information

CS 4495 Computer Vision. Segmentation. Aaron Bobick (slides by Tucker Hermans) School of Interactive Computing. Segmentation

CS 4495 Computer Vision. Segmentation. Aaron Bobick (slides by Tucker Hermans) School of Interactive Computing. Segmentation CS 4495 Computer Vision Aaron Bobick (slides by Tucker Hermans) School of Interactive Computing Administrivia PS 4: Out but I was a bit late so due date pushed back to Oct 29. OpenCV now has real SIFT

More information

Scalar Visualization

Scalar Visualization Scalar Visualization 5-1 Motivation Visualizing scalar data is frequently encountered in science, engineering, and medicine, but also in daily life. Recalling from earlier, scalar datasets, or scalar fields,

More information

CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE

CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE 49 CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE 3.1 PREAMBLE Software has been developed following the CIE 1931 standard of Chromaticity Coordinates to convert the RGB data into its

More information

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13

Lecture 1. Computer Graphics and Systems. Tuesday, January 15, 13 Lecture 1 Computer Graphics and Systems What is Computer Graphics? Image Formation Sun Object Figure from Ed Angel,D.Shreiner: Interactive Computer Graphics, 6 th Ed., 2012 Addison Wesley Computer Graphics

More information

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11

Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11 Midterm Exam CS 184: Foundations of Computer Graphics page 1 of 11 Student Name: Class Account Username: Instructions: Read them carefully! The exam begins at 2:40pm and ends at 4:00pm. You must turn your

More information

Lecture 17: Shading in OpenGL. CITS3003 Graphics & Animation

Lecture 17: Shading in OpenGL. CITS3003 Graphics & Animation Lecture 17: Shading in OpenGL CITS3003 Graphics & Animation E. Angel and D. Shreiner: Interactive Computer Graphics 6E Addison-Wesley 2012 Objectives Introduce the OpenGL shading methods - per vertex shading

More information

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane.

What is an Image? Image Acquisition. Image Processing - Lesson 2. An image is a projection of a 3D scene into a 2D projection plane. mage Processing - Lesson 2 mage Acquisition mage Characteristics mage Acquisition mage Digitization Sampling Quantization mage Histogram What is an mage? An image is a projection of a 3D scene into a 2D

More information

3. Raster Algorithms. 3.1 Raster Displays. (see Chapter 1 of the Notes) CRT LCD. CS Dept, Univ of Kentucky

3. Raster Algorithms. 3.1 Raster Displays. (see Chapter 1 of the Notes) CRT LCD. CS Dept, Univ of Kentucky 3. Raster Algorithms 3.1 Raster Displays CRT LCD (see Chapter 1 of the Notes) 1 3.2 Monitor Intensities & Gamma Compute intensity values by an illumination model Computed intensity values then are converted

More information

Image Processing: Final Exam November 10, :30 10:30

Image Processing: Final Exam November 10, :30 10:30 Image Processing: Final Exam November 10, 2017-8:30 10:30 Student name: Student number: Put your name and student number on all of the papers you hand in (if you take out the staple). There are always

More information

Chapter - 2 : IMAGE ENHANCEMENT

Chapter - 2 : IMAGE ENHANCEMENT Chapter - : IMAGE ENHANCEMENT The principal objective of enhancement technique is to process a given image so that the result is more suitable than the original image for a specific application Image Enhancement

More information

Digital Halftoning. Prof. George Wolberg Dept. of Computer Science City College of New York

Digital Halftoning. Prof. George Wolberg Dept. of Computer Science City College of New York Digital Halftoning Prof. George Wolberg Dept. of Computer Science City College of New York Objectives In this lecture we review digital halftoning techniques to convert grayscale images to bitmaps: - Unordered

More information

Extensions of One-Dimensional Gray-level Nonlinear Image Processing Filters to Three-Dimensional Color Space

Extensions of One-Dimensional Gray-level Nonlinear Image Processing Filters to Three-Dimensional Color Space Extensions of One-Dimensional Gray-level Nonlinear Image Processing Filters to Three-Dimensional Color Space Orlando HERNANDEZ and Richard KNOWLES Department Electrical and Computer Engineering, The College

More information

Scalar Field Visualization I

Scalar Field Visualization I Scalar Field Visualization I What is a Scalar Field? The approximation of certain scalar function in space f(x,y,z). Image source: blimpyb.com f What is a Scalar Field? The approximation of certain scalar

More information

CS130 : Computer Graphics Lecture 2: Graphics Pipeline. Tamar Shinar Computer Science & Engineering UC Riverside

CS130 : Computer Graphics Lecture 2: Graphics Pipeline. Tamar Shinar Computer Science & Engineering UC Riverside CS130 : Computer Graphics Lecture 2: Graphics Pipeline Tamar Shinar Computer Science & Engineering UC Riverside Raster Devices and Images Raster Devices - raster displays show images as a rectangular array

More information

Multimedia Databases. 2. Summary. 2 Color-based Retrieval. 2.1 Multimedia Data Retrieval. 2.1 Multimedia Data Retrieval 4/14/2016.

Multimedia Databases. 2. Summary. 2 Color-based Retrieval. 2.1 Multimedia Data Retrieval. 2.1 Multimedia Data Retrieval 4/14/2016. 2. Summary Multimedia Databases Wolf-Tilo Balke Younes Ghammad Institut für Informationssysteme Technische Universität Braunschweig http://www.ifis.cs.tu-bs.de Last week: What are multimedia databases?

More information

Computing for Scientists Visualization (VIS) (April 02, 2013 April 18, 2013) Jie Zhang Copyright

Computing for Scientists Visualization (VIS) (April 02, 2013 April 18, 2013) Jie Zhang Copyright Computing for Scientists Visualization (VIS) (April 02, 2013 April 18, 2013) Jie Zhang Copyright CDS 130-003 Spring, 2013 Where We are? The Tool: MATLAB (partial) 0. Introduction & Syllabus Section 1.

More information

11. Image Data Analytics. Jacobs University Visualization and Computer Graphics Lab

11. Image Data Analytics. Jacobs University Visualization and Computer Graphics Lab 11. Image Data Analytics Motivation Images (and even videos) have become a popular data format for storing information digitally. Data Analytics 377 Motivation Traditionally, scientific and medical imaging

More information