Advanced Computer Graphics CSE 190 [Winter 2016], Lecture 2 Ravi Ramamoorthi

Slides:



Advertisements
Similar presentations
Sampling and Reconstruction
Advertisements

Digital Image Processing Lecture 3: Image Display & Enhancement
Color Physics –Light is E-M radiation of different frequencies. –Superposition principle Perception –3 cones -> 3D color space. (Metamers). –Convex subset.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 4 Ravi Ramamoorthi
2002 by Jim X. Chen: 1 Understand brightness, intensity, eye characteristics, and gamma correction, halftone technology,
Digital Imaging and Image Analysis
CS 551 / CS 645 Antialiasing. What is a pixel? A pixel is not… –A box –A disk –A teeny tiny little light A pixel is a point –It has no dimension –It occupies.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 5 Ravi Ramamoorthi
School of Computing Science Simon Fraser University
School of Computing Science Simon Fraser University
Advanced Computer Graphics (Fall 2010) CS 283, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi Some slides.
CS 4731: Computer Graphics Lecture 24: Color Science
CS248 Midterm Review. CS248 Midterm Mon, November 4, 7-9 pm, Terman Aud Mostly “short answer” questions – Keep your answers short and sweet! Covers lectures.
Advanced Computer Graphics (Spring 2006) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
CS248 Midterm Review. CS248 Midterm Mon, November 3, 7-9 pm, Gates B01 Mostly “short answer” questions – Keep your answers short and sweet! Covers lectures.
What is color for?.
Half Toning. Continuous Half Toning Color Half Toning.
Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.
Display Issues Ed Angel Professor of Computer Science, Electrical and Computer Engineering, and Media Arts University of New Mexico.
Advanced Computer Graphics (Spring 2005) COMS 4162, Lecture 3: Sampling and Reconstruction Ravi Ramamoorthi
Computer Vision Lecture 3: Digital Images
CS248 Midterm Review. CS248 Midterm Mon, November 5, 7-9 pm, Terman Aud Mon, November 5, 3-5 pm, Gates 392 Mostly “short answer” questions Covers through.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
School of Computer Science & Information Technology G6DPMM - Lecture 6 Colour Science & Colour Models.
9/14/04© University of Wisconsin, CS559 Spring 2004 Last Time Intensity perception – the importance of ratios Dynamic Range – what it means and some of.
Human Visual System 4c8 Handout 2. Image and Video Compression We have already seen the need for compression We can use what we have learned in information.
Advanced Computer Graphics CSE 190 [Spring 2015], Lecture 3 Ravi Ramamoorthi
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
The Digital Image.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
2001 by Jim X. Chen: 1 The purpose of a color model is to allow convenient specification of colors within some color gamut.
Page 18/30/2015 CSE 40373/60373: Multimedia Systems 4.2 Color Models in Images  Colors models and spaces used for stored, displayed, and printed images.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
Any questions about the current assignment? (I’ll do my best to help!)
IDL GUI for Digital Halftoning Final Project for SIMG-726 Computing For Imaging Science Changmeng Liu
IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Computer Science 631 Lecture 7: Colorspace, local operations
The Digital Image Dr. John Ryan.
CS6825: Point Processing Contents – not complete What is point processing? What is point processing? Altering/TRANSFORMING the image at a pixel only.
Week 6 Colour. 2 Overview By the end of this lecture you will be familiar with: –Human visual system –Foundations of light and colour –HSV and user-oriented.
Image Processing and Sampling
1 Introduction to Computer Graphics with WebGL Ed Angel Professor Emeritus of Computer Science Founding Director, Arts, Research, Technology and Science.
1 Chapter 2: Color Basics. 2 What is light?  EM wave, radiation  Visible light has a spectrum wavelength from 400 – 780 nm.  Light can be composed.
03/05/03© 2003 University of Wisconsin Last Time Tone Reproduction If you don’t use perceptual info, some people call it contrast reduction.
A pixel is not a little square & A voxel is not a little cube Chung ji hye.
Digital image processing Chapter 3. Image sampling and quantization IMAGE SAMPLING AND IMAGE QUANTIZATION 1. Introduction 2. Sampling in the two-dimensional.
Digital Image Processing Lecture 3: Image Display & Enhancement March 2, 2005 Prof. Charlene Tsai.
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
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.
CS654: Digital Image Analysis Lecture 29: Color Image Processing.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
1 CSCE441: Computer Graphics: Color Models Jinxiang Chai.
Introduction to Computer Graphics
02/05/2002 (C) University of Wisconsin 2002, CS 559 Last Time Color Quantization Mach Banding –Humans exaggerate sharp boundaries, but not fuzzy ones.
Image 2013, Fall. Image Processing Quantization  Uniform Quantization  Halftoning & Dithering Pixel Operation  Add random noise  Add luminance  Add.
Colors. Color Systems In computer graphics, we use RGB colors. But… –Can it represent all colors? –Is it linear? For example, (1.0, 1.0, 1.0) is white.
3-1 Chapter 3: Image Display The goodness of display of an image depends on (a) Image quality: i) Spatial resolution, ii) Quantization (b) Display device:
Graphics II Image Processing I. Acknowledgement Most of this lecture note has been taken from the lecture note on Multimedia Technology course of University.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
Advanced Computer Graphics
Half Toning Dithering RGB CMYK Models
Color Image Processing
Image Processing and Sampling
Achromatic and Colored Light
Advanced Computer Graphics
Computer Graphics (Spring 2003)
Digital Image Processing Lecture 3: Image Display & Enhancement
Presentation transcript:

Advanced Computer Graphics CSE 190 [Winter 2016], Lecture 2 Ravi Ramamoorthi

Course Outline  3D Graphics Pipeline Rendering (Creating, shading images from geometry, lighting, materials) Modeling (Creating 3D Geometry)

Course Outline  3D Graphics Pipeline Rendering (Creating, shading images from geometry, lighting, materials) Modeling (Creating 3D Geometry) Unit 1: Foundations of Signal and Image Processing Understanding the way 2D images are formed and displayed, the important concepts and algorithms, and to build an image processing utility like Photoshop Weeks 1 – 3. Assignment 1

To Do  Assignment 1, Due Jan 29.  Anyone need help finding partners?  Should already have downloaded code, skimmed assn  After today, enough to finish 3.2, 3.3 (first half)  Should START EARLY (this week) on assn  Second half next week.  Class participation, discussion important  If you have to miss a class, see last year’s podcast  Please sign up for Piazza

Outline  Intensity and Color (briefly)  Basic operations (3.2 in assignment [10 points])  Quantization, Halftoning and Dithering  (3.3 in assignment [10 points])  Next week: Sampling and Reconstruction  Including signal processing and fourier analysis  Implementation of simple digital filters, resizing  Second half of assignment  Lectures main source; will also try handout

Intensities: Human Perception  Human eye can perceive wide range of intensities  Dimly lit darkened room to bright sunlight  Radiance ratio in these cases is a million to one or more  How does it work? [image only 256 gray levels]  Nonlinear human response  Care about ratio of intensities (log scale). So jump from 0.1 to 0.11 as important as 0.50 to 0.55 (not.5 to.51)  E.g.: cycle through 50W,100W,150W (step from 50 to 100 much greater than from 100 to 150)  Technically, equispaced intensities multiplicative  0.02, , , … , [for 100 values]  Area of CG known as tonemapping (we ignore)

Gamma Correction  Website:  Practical problem: Images look too dark/bright…

Gamma Correction  Monitors were CRT displays with nonlinear resp.  NTSC, use 2.2 (camera pre-corrected)  Rendering linear (physical space) Gamma Correct γ=2.5+ Watt Page 440

Example  Say RGB is something like (1, 0.5, 0)  Values of 1 and 0 don’t change (black, white, primary colors unaffected by gamma correction)  Value of.5 becomes.707 (power of ½, gamma = 2)  Final color is (1, 0.707, 0) [brighter, less saturated]

Color  Already seen: RGB model (color cube)  Today: A very brief overview of real story  Intuitive specify: Hue, Saturation, Lightness  Hexacone  Can convert HSV to RGB  Many other fancy, perceptual spaces

Color: Tristimulus Theory  Perception: Tri-stimulus theory  3 types of cones: basis for RGB  Cone response functions  Luminous efficiency (G>R>B)  Color matching: Note “negative colors”  CIE overview Cone response Luminous efficiency Color Matching Match w CIE primaries

Basic Image Processing (HW 1: 3.2)  Brightness: Simply scale pixel RGB values (1 leaves image intact, 0 makes it black)  Gamma Correction  Crop (integer coords) to focus on important aspects

Basic Image Processing (HW 1: 3.2)  Contrast [0 is constant grey image, 1 is original]  Find constant grey image by averaging  Interpolate between this and original

Basic Image Processing (HW 1: 3.2)  Saturation [0 is greyscale, 1 is original colors]  Interpolate between grayscale (but not const) and orig.  Negative values correspond to inverting hues [negative]

Outline  Intensity and Color (briefly)  Basic operations (3.2 in assignment [10 points]  Quantization, Halftoning and Dithering  (3.3 in assignment [10 points])  Next week: Sampling and Reconstruction  Including signal processing and fourier analysis  Implementation of simple digital filters, resizing  Second half of assignment (and written part)

Images and Resolution  Image is a 2D rectilinear discrete array of samples  There are resolution issues:  Intensity resolution: Each pixel has only Depth bits  Spatial resolution: Image is only width*height pixels  Temporal resolution: Monitor refreshes only at some rate NTSC640x4808 bits30 Hz PC1280x bits RGB75 Hz Film3000x bits24 Hz Laser Printer7000x20001 (on or off) Some material for slides courtesy Greg Humphreys and Tom Funkhouser

Sources of Error or Artifacts  Quantization: Not enough intensity resolution (bits) Halftoning/dithering: Reduce visual artifacts due to quantization  Spatial and Temporal Aliasing: not enough resolution Sampling and reconstruction to reduce visual artifacts due to aliasing (next week)

Uniform Quantization 1 bit 2 bits: NOTE CONTOURS 8 bits 4 bits

Uniform Quantization 2 bits: NOTE CONTOURS

Reducing Quantization  Halftoning  Dithering  Random Dither  Error Diffusion (Floyd-Steinberg)

Halftoning  Motivation: bilevel printing. Trade off spatial resolution for more intensity levels  Dots of appropriate size to simulate grey levels  Area of dots proportional intensity

Halftone Patterns  Cluster of dots (pixels) to represent intensity (trading spatial resolution for increased intensity resolution)  Exploits spatial integration in eye

Reducing Quantization  Halftoning  Dithering (distribute errors among pixels)  Random Dither  Error Diffusion (Floyd-Steinberg)

Dithering 8 bits original 2 bits FLOYD STEINBERG 2 bits quantize: Note Contours 2 bits random dither: noise not contours

Random Dither  Randomize quantization errors [see assignment for exact details on adding random noise]  Seems silly (add random noise), but eye more tolerant of high-frequency noise than contours or aliasing  More complex algorithms (not considered here) are ordered dither with patterns of thresholds rather than completely random noise

Random Dither Image and example courtesy Tom Funkhouser

Error Diffusion  Spread quantization error to neighboring pixels to the right and below (later in the process)  Reduces net error, gives best results 3/165/161/16 7/16

Floyd Steinberg Results

Quantization (Sec 3.3 Ass 1)  Simple quantization (should be straightforward)  Random Dither (just add noise, pretty simple)  Floyd-Steinberg (trickiest)  Must implement a diffusion of error to other pixels (simply add in appropriate error to them)  Uses fractions, so must use floating point  And possibly negative numbers since error can be minus  Boundary conditions (what if no right etc.) toroidal [may not be relevant in this case] or change weights appropriately, but don’t darken boundaries