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

Similar documents
CS635 Spring Department of Computer Science Purdue University

Computer Graphics 1, Fall 2005

3D graphics, raster and colors CS312 Fall 2010

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

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

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

Lecture 12 Color model and color image processing

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

The Elements of Colour

Fall 2015 Dr. Michael J. Reale

Game Programming. Bing-Yu Chen National Taiwan University

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

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

Lecture 1 Image Formation.

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

CS452/552; EE465/505. Color Display Issues

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

Lecture 11. Color. UW CSE vision faculty

CSE 167: Lecture #6: Color. Jürgen P. Schulze, Ph.D. University of California, San Diego Fall Quarter 2012

INTRODUCTION. Slides modified from Angel book 6e

Introduction to Computer Graphics with WebGL

Illumination and Shading

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

Introduction to color science

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

Computer Graphics. Bing-Yu Chen National Taiwan University

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

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

Light Transport Baoquan Chen 2017

Color Vision. Spectral Distributions Various Light Sources

Survey in Computer Graphics Computer Graphics and Visualization

Lecture 16 Color. October 20, 2016

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

Lecture 2 5 Aug 2004

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

Colour computer vision: fundamentals, applications and challenges. Dr. Ignacio Molina-Conde Depto. Tecnología Electrónica Univ.

Visualisatie BMT. Rendering. Arjan Kok

CS5670: Computer Vision

CS4670: Computer Vision

Digital Image Processing

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

Light. Properties of light. What is light? Today What is light? How do we measure it? How does light propagate? How does light interact with matter?

CS770/870 Spring 2017 Color and Shading

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

Color. Phillip Otto Runge ( )

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

CHAPTER 3 COLOR MEASUREMENT USING CHROMATICITY DIAGRAM - SOFTWARE

Reading. 4. Color. Outline. The radiant energy spectrum. Suggested: w Watt (2 nd ed.), Chapter 14. Further reading:

Spectral Color and Radiometry

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

Lenses: Focus and Defocus

Light. Computer Vision. James Hays

SNC 2PI Optics Unit Review /95 Name:

Lighting. Camera s sensor. Lambertian Surface BRDF

Image Formation. CS418 Computer Graphics Eric Shaffer.

Digital Image Processing. Introduction

Colour Reading: Chapter 6. Black body radiators

Animation & Rendering

Computer Graphics. Instructor: Oren Kapah. Office Hours: T.B.A.

Image Processing. Color

CS 464 Review. Review of Computer Graphics for Final Exam

ITP 140 Mobile App Technologies. Colors

CS6670: Computer Vision

Lecture #2: Color and Linear Algebra pt.1

Last update: May 4, Vision. CMSC 421: Chapter 24. CMSC 421: Chapter 24 1

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

Color Image Processing

Pipeline Operations. CS 4620 Lecture 10

Color. Reading: Optional reading: Chapter 6, Forsyth & Ponce. Chapter 4 of Wandell, Foundations of Vision, Sinauer, 1995 has a good treatment of this.

Why does a visual system need color? Color. Why does a visual system need color? (an incomplete list ) Lecture outline. Reading: Optional reading:

... Output System Layers. Application 2. Application 1. Application 3. Swing. UIKit SWT. Window System. Operating System

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

2003 Steve Marschner 7 Light detection discrete approx. Cone Responses S,M,L cones have broadband spectral sensitivity This sum is very clearly a dot

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

Graphics Hardware and Display Devices

CS6670: Computer Vision

Pop Quiz 1 [10 mins]

Chapter 4 Color in Image and Video

Graphics Systems and Models

COMP3421. Global Lighting Part 2: Radiosity

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

OXFORD ENGINEERING COLLEGE (NAAC Accredited with B Grade) DEPARTMENT OF COMPUTER SCIENCE & ENGINEERING LIST OF QUESTIONS

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

Scientific Visualization 1TD389, 5hp Fall 2012

Global Illumination. Frank Dellaert Some slides by Jim Rehg, Philip Dutre

TSBK 07! Computer Graphics! Ingemar Ragnemalm, ISY

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

CS2401 COMPUTER GRAPHICS ANNA UNIV QUESTION BANK

Computer Graphics Lecture 2

Color and Light CSCI 4229/5229 Computer Graphics Fall 2016

Spectral Adaptation. Chromatic Adaptation

Visual areas in the brain. Image removed for copyright reasons.

Distributed Algorithms. Image and Video Processing

Graphics for VEs. Ruth Aylett

Digital Image Processing. Week 4

Pick up Light Packet & Light WS

Module 3. Illumination Systems. Version 2 EE IIT, Kharagpur 1

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.

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

SRM INSTITUTE OF SCIENCE AND TECHNOLOGY

Transcription:

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 Camera or observer Transformation Shadow Clipping The Graphics Pipeline Polygon in The Display Pipeline The order may vary somewhat... Transform Clipping HSR Light calculations... Modelling, create objects (this is not really a part of the pipeline) Transformations, move, scale, rotate View transformation, put yourself in the origin of the world Clipping, cut away things outside the view volume Hidden surface removal - We do not see through things Light and illumination, shadows perhaps Projection 3D to 2D Rasterization, put things onto our digital screen Texture, shading, image based HSR... To draw images To write the right numbers at the right places in this large array (the screen buffer) This is often done by a function called write_pixel(x,y,color) or (if possible) by directly writing in the array buffer[y][x]=color; Triangles Using write_pixel, we can draw lines and we can draw polygons Tessellation: cutting polygons into smaller polygons In fact, we need solely triangles Triangularisation: cutting polygons into triangles Triangles are always flat, which is a nice property Patrick Karlsson 1

Object in World We put our triangles together to form objects We put the objects in a 3D world We use a camera model to view the world Transformations, etc. We use transformations to move around in the world, as well as to move objects around in the world We add light to get a nice 3D effect We remove things we cannot see Fixing some more Visualization We may speedup things using maps of different types, e.g. textures Starting from polygons, it is tedious to build a world. We need modelling tools. Splines and fractals are two such tools COLOR Elements of color Patrick Karlsson 2

Color = The eye s and the brain s impression of electromagnetic radiation in the visual spectra. How is color perceived? Visible spectrum light source s( ) reflecting object r( ) detector rods & cones red-sensitive r() green-sensitive g() blue-sensitive b() The Fovea There are three types of cones, S, M and L Rods Sense luminance, or brightness, but not color. Are spread out across the whole retina, and dominate when the pupil is large, i.e. night vision. Less color is seen at night. The response is not linear, but logarithmic. The appearance of an object s intensity depends on the surroundings; the sensation is relative and not absolute. Three kinds of cones red-sensitive r() green-sensitive g() blue-sensitive b() CIE standard (Commission Internationale de L Eclairage, 1931) b=435.8nm wavelength r=700nm g=546.1nm In order to standardize the description of color, a large number of people were instructed to say what combination of basic colors a certain color sample consisted of in standard lighting. This resulted in the color matching curves, i.e. transform r(),(),() g b x(),(),() y z Patrick Karlsson 3

Color perception Different spectra can result in identical sensations, called metamers Color perception results from the simultaneous stimulation of 3 cone types (trichromat) Our perception of color is affected by surrounding effects and adaptation standard lightsource object reflectance CIE 1931 standard observer s( ) r( ) z x x y x = CIE XYZ values X=14.27 Y=14.31 Z=71.52 400nm 700nm 400nm 700nm 400nm 700nm X = s( ) r( ) x( ) d Y = s( ) r( ) y( ) d Z = s( ) r( ) z( ) d Each color is represented by a point (X,Y,Z) in the 3D CIE color space. The point is called the tristimulus value. Projection of the CIE XYZ-space RGB/CMY color space Perceptual equal distances RGB - for additive color mixing, e.g. computer screen. CMY - for subtractive color mixing, e.g. printing or painting. RGB space RGB Three components: red (R) green (G) blue (B) Patrick Karlsson 4

Mixing light and mixing pigment Mixing light and mixing pigment Additive Subtractive green yellow yellow cyan red green red magenta blue magenta blue cyan R G B C M Y (K) R C G = M R+B+G=white (additive) R+G=Y [] B 1-[] Y C+M+Y=black (subtractive) C+M=B etc... (CMYK common in printing, where K is black pigment) RGB within CIE XYZ-space HLS color space Hue Lightness Saturation Hue=dominant wavelength, tone Lightness=intensity, brightness Saturation=purity, dilution by white Important aspects: Intensity decoupled from color Related to how humans perceive color HLS space L Hue (Swedish färgton ) Three components: hue (H) brightness (L) saturation (S) Limitation: if S ~ 0, then H undefined cyan green blue yellow H red magenta S Patrick Karlsson 5

HLS Segmentation of the H image YIQ color space Y= Lightness I= Inphase = amount red-green Q= Quadrature = amount blue-yellow Optimised for transmission (TV broadcast). Compatible with BW monitors (use only Y component) Human eye is more sensitive to variations in lightness than variations in hue and saturation and more bandwith (bits) is used for Y. NCS color description NCS=Natural Color System A psychological more than a physiological description of color. Common among artists, designers etc. 20 b w 2060-R50B= 20% white 60% black red with 50% blue 40 60 c Color is relative Hjärnan är lättlurad grön lila gul blå svart It is easy to trick the brain green purple yellow blue black Patrick Karlsson 6

Non-existing colors (without use of psychadelic drugs) Blind spot; look at left cross with your right eye Color context Shape context Chromatic adaption Patrick Karlsson 7

Mach bands Gamma correction Most displays have non-linear intensity scales. The most common correction method is called gamma correction (usually implemented with a lookup table) Sometimes in computer graphics this effect is exaggerated to compensate for the adaptation of the eye. True-color frame buffer Indexed-color frame buffer Store R,G,B values directly in the frame buffer. Each pixel requires at least 3 bytes => 2^24 colors. Store index into a color map in the frame buffer. Each pixel requires at least 1 bytes => 2^8 simultaneous colors. Enables color-map animations. Different blending versions (how to combine color values) Additive blending C=A+B e.g. combining light Subtractive blending C=A-(1-B) e.g. filter effect Patrick Karlsson 8

Average blending C=(A+B)/2 or C=uA+vB e.g. for anti-aliasing Multiplicative blending C=A*B e.g. combining light and matter Patrick Karlsson 9