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.

Slides:



Advertisements
Similar presentations
13- 1 Chapter 13: Color Processing 。 Color: An important descriptor of the world 。 The world is itself colorless 。 Color is caused by the vision system.
Advertisements

Digital Image Processing
Image Processing IB Paper 8 – Part A Ognjen Arandjelović Ognjen Arandjelović
COLORCOLOR A SET OF CODES GENERATED BY THE BRAİN How do you quantify? How do you use?
Color Image Processing
Light Light is fundamental for color vision Unless there is a source of light, there is nothing to see! What do we see? We do not see objects, but the.
Color Vision Our visual system interprets differences in the wavelength of light as color Rods are color blind, but with the cones we can see different.
Multimedia communications EG-371Dr Matt Roach Multimedia Communications EG 371 and EG 348 Dr Matthew Roach Lecture 2 Digital.
Why is this hard to read. Unrelated vs. Related Color Unrelated color: color perceived to belong to an area in isolation (CIE 17.4) Related color: color.
School of Computing Science Simon Fraser University
Human Color Perception
Video enhances, dramatizes, and gives impact to your multimedia application. Your audience will better understand the message of your application.
CS 4731: Computer Graphics Lecture 24: Color Science
Why is this hard to read. Unrelated vs. Related Color Unrelated color: color perceived to belong to an area in isolation (CIE 17.4) Related color: color.
What is color for?.
Comp :: Fall 2003 Video As A Datatype Ketan Mayer-Patel.
UMCP ENEE631 Slides (created by M.Wu © 2004)
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
1 Color Processing Introduction Color models Color image processing.
Klara Nahrstedt Spring 2009
Any questions about the current assignment? (I’ll do my best to help!)
Sensation and Perception Sensations: take it in Sensations: take it in Perception: what we do with it Perception: what we do with it.
Multimedia Data Video Compression The MPEG-1 Standard
Chapter 6: Color Image Processing Digital Image Processing.
1 © 2010 Cengage Learning Engineering. All Rights Reserved. 1 Introduction to Digital Image Processing with MATLAB ® Asia Edition McAndrew ‧ Wang ‧ Tseng.
Visual Perception How We See Things.
Mr. Koch AP Psychology Forest Lake High School
Computer Vision – Fundamentals of Human Vision Hanyang University Jong-Il Park.
ELE 488 Fall 2006 Image Processing and Transmission Syllabus 1. Human Visual System 2. Image Representations (gray level, color) 3. Simple Processing:
Topic 5 - Imaging Mapping - II DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
© by Yu Hen Hu 1 Human Visual System. © by Yu Hen Hu 2 Understanding HVS, Why? l Image is to be SEEN! l Perceptual Based Image Processing.
Color. Contents Light and color The visible light spectrum Primary and secondary colors Color spaces –RGB, CMY, YIQ, HLS, CIE –CIE XYZ, CIE xyY and CIE.
.  Sensation: process by which our sensory receptors and nervous system receive and represent stimulus energy  Perception: process of organizing and.
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.
Color Theory ‣ What is color? ‣ How do we perceive it? ‣ How do we describe and match colors? ‣ Color spaces.
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.
Chapter 6 Section 2: Vision. What we See Stimulus is light –Visible light comes from sun, stars, light bulbs, & is reflected off objects –Travels in the.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
Digital Image Processing Part 1 Introduction. The eye.
CSC361/ Digital Media Burg/Wong
COLORCOLOR Angel 1.4 and 2.4 J. Lindblad
1 Computational Vision CSCI 363, Fall 2012 Lecture 5 The Retina.
Graphics Lecture 4: Slide 1 Interactive Computer Graphics Lecture 4: Colour.
G52IIP, School of Computer Science, University of Nottingham 1 Summary of Topic 2 Human visual system Cones Photopic or bright-light vision Highly sensitive.
Three-Receptor Model Designing a system that can individually display thousands of colors is very difficult Instead, colors can be reproduced by mixing.
Color Color Color Tsung-Yi Wu.
Introduction to Computer Graphics
Color Models. Color models,cont’d Different meanings of color: painting wavelength of visible light human eye perception.
CS Spring 2012 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2012.
Human Visual System.
09/10/02(c) University of Wisconsin, CS559 Fall 2002 Last Time Digital Images –Spatial and Color resolution Color –The physics of color.
Color Measurement and Reproduction Eric Dubois. How Can We Specify a Color Numerically? What measurements do we need to take of a colored light to uniquely.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
CSE 185 Introduction to Computer Vision
Multimedia systems Lecture 5: Color in Image and Video.
Color Models Light property Color models.
Human Visual System.
Color Image Processing
Color Image Processing
Color Image Processing
Color Image Processing
Colour Theory Fundamentals
Perception and Measurement of Light, Color, and Appearance
Digital Image Processing
Introduction to Perception and Color
Color Image Processing
Slides taken from Scott Schaefer
Color Image Processing
Image Perception and Color Space
Color Model By : Mustafa Salam.
Presentation transcript:

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 theory to exploit spatial and temporal redundancy but it is not enough We must determine ways in which we can exploit redundancy in the way we perceive images. To do so it is important to understand some relevant aspects of the HVS.

Vision : The Human Visual System (HVS) Light is focused onto the retina Retina consist of two types of cell – cones – sensitive to colour and luminance, located near the centre of the retina (fovea) – rods – located near the periphery of the retina, much more sensitive to light, luminance only, more sensitive to motion, less resolution Lens Pupil Retina Optic Nerve Blind Spot

Vision : The Human Visual System (HVS) Electrical Impulses from the retina are chanelled by the optic nerve to the Visual Cortex The Visual Cortex does a whole bunch of smart things including filtering, object recognition, edge detection. Lens Pupil Retina Optic Nerve Blind Spot

Intensity Sensitivity of HVS just noticeable difference in intensity a constant defining a quantum for perceived intensity Given a background Intensity I, the user is asked to increase the intensity of the circle until it is barely visible. This experiment demonstrates a phenomenon known as Weber’s Law intensity is the power of the incident visible light

Intensity Sensitivity of HVS We can express this as a differential equation The solution is p defines a perceptual intensity scale. Our perception of intensity is linear wrt p. When we talk about intensity values in images we are referring to this scale. 256 levels are sufficient and hence 8-bits numbers are commonly used to define intensity ranges in images. (10 bit on the way)

Colour Sensitivity Cone Cells in the eyes convert wavelengths of life into 3 values known as a tri-stimulus The tri stimulus values encode the relative strengths of each of the 3 colour basis. Different colours correspond to different mixtures of tri-stimulus values.

The CIE RGB Colour Space attempts to mimic HVS – requires the definition of 3 colour primaries CIE RGB red = 700 nm, green = nm, blue = nm – must determine tristimulus (ie. RGB) values for a mono-chromatic light source as a function of its wavelength. (perceptual studies) These functions are known as colour matching functions and can be used to estimate RGB values for any combination of colours.

YUV and related colour spaces

YUV contd.

Examples of Conversions Black (rgb = [0 0 0]) has yuv = [0 0 0] White (rgb = [ ]) has yuv = [ ] Shade of Gray (rgb = [x x x]) has yuv = [x 0 0] Red (rgb = ) has yuv = [ ] Green (rgb = [ ]) has yuv = [ ] Note: It is common to scale the U and V components so that it fits inside the range 0 to 255 (add 128 to both values)

YUV Colour Spaces There are many variations on the YUV colour space – YUV – used in PAL colour TV – YIQ – used in NTSC colour TV – YDbDr – used in SECAM colour TV – YCbCr/YPbPr – used for digital TV and still image / video compression Conversion from RGB to each of these colour spaces is linear but the conversion coefficients can vary slightly.

RGB v YUV RGB YUV

HSV Colour Space Often used in for image analysis – H – hue = the shade of a colour (red, green, purple etc.) – S – saturation = colour depth (from “washed out”/grey to vivid) – V – Value = brightness of the colour

HSV Colour Space

RGB v HSV HSV HueSaturationValue RGB

Colour Spaces for Compression JPEG/MPEG etc. use the YUV (YCbCr) colour space because spatial frequency sensitivity of the HVS can be exploited Spatial frequency is measured in cycles per degree. It can be measured at any orientation. N cycles θ

Spatial Frequency Sensitivity (Horizontal) Grating increases in freq. Left to Right Intensity decreases vertically. Sensitivity is given by the perceived height of the columns.

Spatial Frequency Sensitivity HVS less sensitive to chrominance than luminance – chrominance frequencies > 10 cycles/degree are not perceived – nominal max for luminance is 100 cycles per degree Max sensitivity is at about 5 cycles/degree Vertical Frequency Sensitivity is similar but HVS is less sensitive to lower frequencies

Spatial Freq. Response Mach Banding Bands appear to be brighter on the left than on the right. This is due to spatial filtering in the visual cortex. This phenomenon is simulated with simple filtering of an image row using Unsharp Masking.

Consequences of Colour Sensitivity 512 x 512 x 3 = 0.64 MB Original Image

Subsampling Colour Planes 2:1 in both directions KeepDiscard Downsample the U and V chrominance channels and leave the Y channel alone

4:1 Colour Downsampling OK 512 x x 256 x 2 = 0.31 MB (1/2 bandwidth of original) Downsample the U and V chrominance channels and leave the Y channel alone

16:1 Colour Downsampling Still OK 512 x x 128 x 2 = 0.24 MB (1/3 bandwidth of original) Downsample the U and V chrominance channels and leave the Y channel alone

16:1 Luminance Downsampling Not good 128 x 128 x 3 = 0.04 MB (1/16 bandwidth of original) Latex Downsample all 3 channels evenly

Chrominance Downsampling You will often see ratios in the description of codecs – 4:2:0 – means 4:1 Chrominance downsampling (2:1 along rows and columns) – 4:2:2 – 2:1 Chrominance downsampling only along the rows. ie. half the colour samples are kept – 4:1:1 – 4:1 Chrominance downsampling along rows. No downsampling along rows. – 4:4:4 – no Chrominance downsampling

Consequences of Spatial Frequency Selectivity Activity Masking Noise harder to see in Textured areas due to reduction in contrast sensitivity at higher spatial frequencies.

Measuring Picture Quality

Objective Measures of Quality do not in general align well with the HVS A 100 x 100 block of noise has been added to each image at two locations. Because of activity masking it is much less visible in right image. Hence perceived quality of the right image should be higher.

Measuring Picture Quality However, the MSE and PSNR for both images will be the same because the variance of the noise is the same in both images.

Measuring Picture Quality Conclusion: Objective measures are of limited use. Better measures exist than MSE (eg. VQM and SSIM) Subjective Measures of Quality are necessary 5 point CCIR 500 scale 1.Impairment not noticeable 2.Impairment is just noticeable 3.Impairment is definitely noticeable but not objectionable 4.Impairment is objectionable 5.Impairment is extremely objectionable Lots of subjects required to get reliable measurements. Also subjectivity implies that there will be disagreements between subjects.

Summary We discussed HVS factors that influence compression – human contrast sensitivity depends drops as spatial frequency increases – contrast sensitivity is less for chrominance than luminance We discussed ways of measuring image quality – necessary to quantify levels of degradation in compressed images.