IMAGES AND COLOR. N. C. State University. CSC557 Multimedia Computing and Networking. Fall Lecture # 10

Similar documents
Wireless Communication

Lecture 8. Color Image Processing

Imaging Process (review)

Color image processing

Colors in Images & Video

IMAGE PROCESSING: POINT PROCESSES

LECTURE 07 COLORS IN IMAGES & VIDEO

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

Introduction to Multimedia Computing

Digital Image Processing Color Models &Processing

Lecture 3: Grey and Color Image Processing

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

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

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

Computers and Imaging

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

COLOR and the human response to light

Visual Perception. Overview. The Eye. Information Processing by Human Observer

Digital Image Processing. Lecture # 8 Color Processing

COLOR. and the human response to light

Graphics and Image Processing Basics

Human Vision, Color and Basic Image Processing

Color images C1 C2 C3

Chapter 3 Part 2 Color image processing

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

Mahdi Amiri. March Sharif University of Technology

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

Andrea Torsello DAIS Università Ca Foscari via Torino 155, Mestre (VE) Color Vision

Color Image Processing

Image Processing. Michael Kazhdan ( /657) HB Ch FvDFH Ch. 13.1

YIQ color model. Used in United States commercial TV broadcasting (NTSC system).

Lecture Color Image Processing. by Shahid Farid

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

EECS490: Digital Image Processing. Lecture #12

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

Reading instructions: Chapter 6

Image Processing COS 426

Introduction to Computer Vision and image processing

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

Image Perception & 2D Images

Introduction to Color Theory

6 Color Image Processing

MULTIMEDIA SYSTEMS

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

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

Color Image Processing

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

Image Processing. Adam Finkelstein Princeton University COS 426, Spring 2019

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Color images C1 C2 C3

Oversubscription. Sorry, not fixed yet. We ll let you know as soon as we can.

Images and Colour COSC342. Lecture 2 2 March 2015

Digital Image Processing

Image Processing: An Overview

Introduction to Computer Vision CSE 152 Lecture 18

Color Image Processing. Gonzales & Woods: Chapter 6

Digital Image Processing. Lecture # 6 Corner Detection & Color Processing

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

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

CHAPTER 3 I M A G E S

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

Ch. 3: Image Compression Multimedia Systems

The Science Seeing of process Digital Media. The Science of Digital Media Introduction

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

CMVision and Color Segmentation. CSE398/498 Robocup 19 Jan 05

Camera Image Processing Pipeline: Part II

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

Waitlist. We ll let you know as soon as we can. Biggest issue is TAs

Camera Image Processing Pipeline: Part II

the eye Light is electromagnetic radiation. The different wavelengths of the (to humans) visible part of the spectra make up the colors.

Images. CS 4620 Lecture Kavita Bala w/ prior instructor Steve Marschner. Cornell CS4620 Fall 2015 Lecture 38

Fundamentals of Multimedia

IMAGE PROCESSING >COLOR SPACES UTRECHT UNIVERSITY RONALD POPPE

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

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

Introduction. The Spectral Basis for Color

Computer Graphics: Graphics Output Primitives Primitives Attributes

The human visual system

Image processing. Image formation. Brightness images. Pre-digitization image. Subhransu Maji. CMPSCI 670: Computer Vision. September 22, 2016

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

CSSE463: Image Recognition Day 2

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

Digital Image Processing (DIP)

Overview of graphics

Performance Analysis of Color Components in Histogram-Based Image Retrieval

IMAGE PROCESSING: AREA OPERATIONS (FILTERING)

ENGG1015 Digital Images

ENEE408G Multimedia Signal Processing

Computer Graphics Si Lu Fall /27/2016

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

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

INSTITUTIONEN FÖR SYSTEMTEKNIK LULEÅ TEKNISKA UNIVERSITET

Image is a spatial representation of an object or a scene. (image of a person, place, object)

Assistant Lecturer Sama S. Samaan

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

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

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

CSE1710. Big Picture. Reminder

05 Color. Multimedia Systems. Color and Science

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

Transcription:

IMAGES AND COLOR N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 10

IMAGES AND COLOR N. C. State University CSC557 Multimedia Computing and Networking Fall 2001 Lecture # 10

Questions / Problems / Announcements 3???

Converting Light to/from Digital Images 4 Devices for converting analog-to-digital Digital cameras Scanners Devices for converting digital-to-analog Monitors Projectors Samples of light = pixels of an image Sampling rate / spatial resolution how many pixels are there in the image? Quantization of light = bits / pixel Color resolution how many colors can be represented?

Physics of Light 5 Spectrum of light which frequencies are present Energy, or intensity, of each frequency Source: http://www.handprint.com/hp/wcl/color1.html

Perception of Light: Color 6 Hue is determined by the dominant frequency What color is it? black, gray, and white have no dominant frequency, thus no hue Brightness, or intensity, or luminance, is related to total energy from all frequencies present Is the color bright or dark? relationship is roughly logarithmic We can see (and tolerate) a range of brightness that spans at least 9 orders of magnitude Saturation (or purity) is determined by the ratio of (dominant_frequency_energy) / (total_energy) Is the color deep/intense, or is it pale or washed out? Stronger dominant frequency or less other frequencies more saturated color

Sensitivity of Cones (Receptors) in Human Eye 7

Opponent Model of Color Vision 8

The Opponent Model (cont d) 9 1. The combined stimulation to the R and G cones is interpreted as the brightness or lightness of a color. Luminosity is the dominant visual information recorded by the eye. 2. The relative proportion of stimulation received by the R cones in contrast to the G cones creates the perception of red or green. (The B cones contribute slightly to clarify warm color saturation.) 3. If the R and G cones are stimulated approximately equally (and much more than the B cones), we see the color yellow. 4. The relative proportion of stimulation received by the B cones, in contrast to the R and G cones combined, creates the perception of blue. 5. If all three types of cones are stimulated approximately equally, we see no specific hue -- that is, we see white, gray or black.

The HSI Color System 10 Advantage: corresponds naturally to our perception of color Hue = shade of color ranging from 0 to 2*Pi Radians (or 0 to 360 degrees) Saturation = purity of color ranging from 0 to 1 Intensity = intensity of color ranging from 0 to 1

The HSI Color System Example 11

The Gray-Scale Color System 12 Gray-scale = intensity component of color only No hue or saturation information Resolution 8 bits / pixel is gray-scale 1 bit / pixel is monochrome (black and white)

Grayscale 13 8 bits 6 bits 5 bits 4 bits

Primary Colors 14 Any 3 independent colors describe a region (a triangle) of color The 3 corners of the triangle = the primary colors No triangle, no matter what primaries are picked, contains all the visible colors

The CIE Color System 15 An international color standard Represents saturation and luminance only (not brightness) Source: http://www.photo.net/photo/edscott/vis00020.htm

The RGB Color System 16 An additive (emitted light) color system How much R, G, or B is emitted by the light source? Advantage: this is the system our retinas are based on and it s the way that monitors are constructed Color resolution 8 bits for each primary 24 bits / pixel

RGB Color Specification 17 Source: http://www.photo.net/photo/edscott/vis00020.htm

The RGB Cube 18 Source: http://www.photo.net/photo/edscott/vis00020.htm

RGB Mixing 19 Source: http://www.photo.net/photo/edscott/vis00020.htm

Converting HSI from RGB 20 Ranges Let R, G, and B be normalized to be in the range 0 1 H = 0 2π radians S, I = 0 1 θ =cos -1 (1/2*[(R-G) + (R-B)] / [(R-G) 2 + (R-B)*(G-B)] 1/2 ) H = θ if G B, otherwise H = 2π θ S = 1 3 * min(r,g,b)/(r+g+b) I = (R+G+B)/3

Example 21 R = 53/255 =.2078 G = 190/255 =.7451 B = 206/255 =.8078 θ = cos -1 (1/2*[(.2078-.7451) + (.2078-.8078)] / [(.2078-.7451) 2 + (.2078-.8078)*(.7451-.8078) 1/2 ]) = cos -1 (-.5687/ [.2887 + (-.6)*(-.0627)] 1/2 ) = 3.046 H = 2*π θ = 3.23 radians = 185 degrees S = 1 3* min(.2078,.7451,.8078) / (.2078+.7451+.8078) =.6459, or 65% I = (.2078+.7451+.8078) / 3 =.5869, or 59%

The YCbCr Color System 22 The standard used for JPEG, MPEG, etc. Y = brightness or luminance Cb, Cr = chrominance (color) information Ranges Let R, G, and B be normalized to be in the range 0..1 Y = 0..1 Cb, Cr = -.5..+.5

23 Converting RGB YCbCr Y =.299R +.587G +.114B Cb = -.169R -.331G +.500B Cr =.500R -.419G -.081B Example R = 1.000Y + 1.402Cr G = 1.000Y -.344Cb -.714Cr B = 1.000Y + 1.772Cb R = 53/255 =.2078 G = 190/255 =.7451 B = 206/255 =.8078 Y =.592 Cb =.122 Cr = -.274

24 The YIQ Color System Used in the NTSC color TV standard One luminance channel, two color (chroma) channels Conversion from RGB Y =.30R +.59G +.11B I =.60R -.28G -.32B Q =.21R -.52G +.31B The YUV color system Used in the PAL color TV standard Another color system with one luminance channel and two primaries

Color Channel Subsampling 25 Goal: compress an image by taking fewer samples The eye is more sensitive to brightness (Y) than hue or saturation (Cb, Cr) therefore, take more samples for Y, fewer samples for Cb and Cr Subsampling is used in many image compression formats

4:4:4 Format 26 For every pixel, there is 1 sample of Y, 1 sample of Cb, and 1 sample of Cr

4:2:0 Format 27 For every pixel, there is 1 sample of Y For every 4 pixels is 1 sample of Cb, 1 sample of Cr

Color Lookup Tables 28 Array, or table, of possible color values quantization of color saves memory Improves compression effectiveness Palette = the set of colors in the table 8 bits / pixel 256-color pallette Pixel value rather than being a color, it is an index into this array

Color Lookup Example 29

30 Choosing a Palette What is the best set of colors to use for the palette? One technique: recursive bisection Divide 3-D color space into regions containing approximately the same number of pixels per region Substitute for all pixel colors in this region one of the colors examples: center point in rectangular space, center of mass,

0 1 Red Copyright 2001 Douglas S. Reeves (http://reeves.csc.ncsu.edu) Example (2-D only, R and B, G=0) Blue 1 #3 #1 31 Goal: replace 17 distinct colors with only 4 values #2

Diffusing, or Dithering, the Error 32 Color sampling introduces errors If errors are spatially clustered, errors are obvious bands of color Solution: spread the errors out Low-pass filter (blur) the error terms For c p = next pixel p s color, scanning from left to right, top to bottom c q = quantized color of p (from color palette) compute c e = c p c q = error in c q diffuse c e to the c p values of the pixels below and to the right replace pixels p s color c p with c q endfor

Diffusion Example (Floyd-Steinberg Algorithm) 33 diffuse c e to the c p values of the pixels below and to the right add 3/8* c e to pixel immediately below add 3/8* c e to pixel immediately to right add 1/4* c e to pixel diagonally below and to right Example Input Pixel Values (red only) = Upper left hand pixel value replaced by 160 Error (200-160=40) diffused to neighbors 200 150 160 150 160 165 70 30 70 30 85 40

Graphics File Info 34 Size of image Pixel size and shape Bits per pixel, and pallette information Compression method Color value per pixel See: graphics file encyclopedias

Processing Image Files 35 1. Read headers 2. Read palette into 1-D array 3. Read pixel values into 3-D array look up colors in palette array (RGB triple) 4. Process image pixels in 3-D array 5. Write to image buffer

Sources of Info 36 [http://www.handprint.com/hp/wcl/color1.html] Light and the Eye: Color [Crane97] A Simplified Approach to Image Processing [Watt89] Fundamentals of 3-D Computer Graphics Section 14-4 on color models