Images, Display, Perception

Slides:



Advertisements
Similar presentations
School of Computing Science Simon Fraser University
Advertisements

School of Engineering and Computer Science Victoria University of Wellington Copyright: Peter Andreae & david streader, VUW Images and 2D Graphics COMP.
1 Data Compression Engineering Math Physics (EMP) Steve Lyon Electrical Engineering.
Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.
1 Basics of Digital Imaging Digital Image Capture and Display Kevin L. Lorick, Ph.D. FDA, CDRH, OIVD, DIHD.
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 cgvr.korea.ac.kr.
Digital Images Chapter 8 Exploring the Digital Domain.
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.
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
CSCI-235 Micro-Computers in Science Hardware Part II.
Chapter 7 Digital Images and Video
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
1 Image Basics Hao Jiang Computer Science Department Sept. 4, 2014.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
DIGITAL Video. Video Creation Video captures the real world therefore video cannot be created in the same sense that images can be created video must.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
Image Processing and Sampling
Chapter 2 : Imaging and Image Representation Computer Vision Lab. Chonbuk National University.
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.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Image Processing Basics. What are images? An image is a 2-d rectilinear array of pixels.
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.
Greg Humphreys CS445: Intro Graphics University of Virginia, Fall 2003 Raster Graphics and Color Greg Humphreys University of Virginia CS 445, Fall 2003.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Computer Science 121 Scientific Computing Winter 2014 Chapter 14 Images.
Intelligent Robotics Today: Vision & Time & Space Complexity.
Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic.
8.1 hardware devices Output devices By Ranjit Bassi.
CS Spring 2014 CS 414 – Multimedia Systems Design Lecture 4 – Visual Perception and Digital Image Representation Klara Nahrstedt Spring 2014.
Vector vs. Bitmap. Vector Images Vector images (also called outline images) are images made with lines, text, and shapes. Test type is considered to be.
Image Processing F34IMP lecture 1
Color Models Light property Color models.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
COMP 9517 Computer Vision Digital Images 1/28/2018 COMP 9517 S2, 2009.
What is an image? a representation, likeness, or imitation of an object or thing a vivid or graphic description something introduced to represent something.
Image Processing Objectives To understand pixel based image processing
Images and 2D Graphics COMP
Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Vector vs. Bitmap.
Chapter 3 Graphics and Image Data Representations
Image Processing and Sampling
Digital 2D Image Basic Masaki Hayashi
IIS for Image Processing
Data Compression.
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
CS Computer Graphics Valdosta State University, Spring 2018
Digital Image Processing Introduction
Image Enhancement.
Software Equipment Survey
Fundamentals Data.
Introduction to Computer Graphics
Representing Images 2.6 – Data Representation.
Nuts and Bolts of Digital Imaging
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Multimedia System Image
Basic Concepts of Digital Imaging
Visuals are analog signals...
Lecture 2: Image filtering
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr.
Chapter 8 – Compression Aims: Outline the objectives of compression.
Lecture 5 - Bitmapped Images
Lecture 4 - Introduction to Computer Graphics
15 Data Compression Foundations of Computer Science ã Cengage Learning.
Templates and Image Pyramids
Image Processing 고려대학교 컴퓨터 그래픽스 연구실 kucg.korea.ac.kr.
Presentation transcript:

Images, Display, Perception CENG 538 Advanced Graphics and UIs Images, Display, Perception

Pipeline Recap

Display Hardware Video display devices Hard-copy devices Cathode Ray Tube (CRT) Liquid Crystal Display (LCD) Light-emitting Diodes (LED) https://www.youtube.com/watch?v=_O-2D5ryb2A Hard-copy devices Ink-jet printer Laser printer Pen plotter (3D printer idea)

Raster Displays Rectangular array (raster) of picture elements (pixels). The goal of CG is to populate this array with the correct color values such that the final image conveys the desired look.

Raster Displays Rectangular array (raster) of picture elements (pixels).

Raster Displays Frame buffer, double buffering

Raster Displays Generated images are sent to a display devices (CRT, LCD) through the video driver

Raster Displays Most display devices are not linear; i.e., there is a non-linear relationship between the input voltage and the output luminance Luminance is a photometric measure of the luminous intensity per unit area of light travelling in a given direction //brightness

Raster Displays This means that if you double a pixel value (i.e., the input voltage), you do not get twice the luminance

Raster Displays This means that if you double a pixel value (i.e., the input voltage), you do not get twice the luminance The relationship is generally modeled as: c contract, b brightness, gamma of the display device If we know gamma, we can correct our images before sending to the display device so that they appear correct to the viewer

Raster Displays If we know gamma, we can correct our images before sending to the display device so that they appear correct to the viewer I: input intensity

Raster Displays With and without gamma correction:

Raster Displays To estimate gamma of the display device Find the patch which matches in intensity to the blended value of the black-and-white stripes Read out the corresponding pixel value, Z, and solve for

Image An image is a 2D rectilinear array of pixels Continuous image Digital image

Image Pixels are samples from continuous function Photoreceptors in eye CCD cells in digital camera Rays in virtual camera

Image Sampling brings errors Errors due to limited intensity resolution //quantization Errors due to limited spatial resolution //aliasing Sampling Reconstruction (errors introduced)

Image Quantization Images with decreasing bits per pixel: (aka uniform quantization) How many bits for a color image?

Image Quantization A color image (24 bpp) How many bits for a color image?

Image Aliasing Use the average of neighboring intensities per pixel Aliased: Antialiased:

Image More image processing tools Filtering Warping Blurring Noise reduction Mean and median filters that reduce the noise, e.g., salt-pepper noise: Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Mean and median filters that reduce the noise, e.g., salt-pepper noise: Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Mean and median filters that reduce the noise, e.g., salt-pepper noise: Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Mean and median filters that reduce the noise, e.g., salt-pepper noise: Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Mean and median filters that reduce the noise, e.g., salt-pepper noise: Why works? Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Mean and median filters that reduce the noise, e.g., salt-pepper noise: Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Edge detection Filter that finds differences b/w neighbor pixels (high gradient = edge) Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Sharpening Edge/gradient image g(x,y) = f(x,y) – fsmooth(x,y). fsharp(x,y) = f(x,y) + k * g(x,y) Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Sharpening Edge/gradient image g(x,y) = use filter directly fsharp(x,y) = f(x,y) + k * g(x,y) Warping Scaling Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Edge detection Sharpening Warping Scaling: Rotating Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Edge detection Sharpening Warping Scaling Rotating: Deforming

Image More image processing tools Filtering Warping Blurring Noise reduction Edge detection Sharpening Warping Scaling Rotating Deforming: Warp Fish eye lens

Image More image processing tools Compositing Create background image Create foreground image with blue background Insert non-blue foreground pixels into background

Image More image processing tools Compositing Blues work as transparent pixels (alpha=0), others opaque (alpha=1) Apply weighted alpha for alpha matting (semi-transparent) Color = (1-alpha)*foregroundColor + alpha*backgroundColor Pixels with alpha channel: (r, g, b, alpha)

Image Image formats Typically images are represented with 8-bits per color channel giving rise to 24-bit pixels Images may be displayed directly (by sending it to the video card) or may be stored in a standard format (for offline viewing) There are hundreds of image formats, perhaps JPEG being the most commonly used In this class, we’ll use a simple file format called PPM to store our images (for ray tracing)

Image PPM format PPM is a very simple interleaved image format It has two flavors namely text and binary and we will use the text version for further simplicity Example:

Image PPM format Note that PPM is hugely inefficient as everything is stored as uncompressed ascii characters What would be the size of an 18MP PPM image file? 18 × 1024 × 1024 × 3 × 3.57/(1024 × 1024) MB ≈ 192 MB The last ×3.57 represents the expected value of the number of bytes that each component will occupy: (10 × 1 + 90 × 2 + 156 × 3)/256 + 1 where the last +1 represents the space occupied by white space (or the newline character between rows)

Image PPM format Note that PPM is hugely inefficient as everything is stored as uncompressed ascii characters What would be the size of an 18MP PPM image file? If we had a binary file, the file size would be 18 × 1024 × 1024 × 3/(1024 × 1024) MB ≈ 54 MB as each component will be saved as a single byte and white spaces would not be stored This is still lots of disk space for a single image More efficient file formats such as JPEG, TIFF, and PNG occupy much less space due to compression

Image Lossy vs. lossless formats Some image formats are lossy meaning that they cannot reconstruct the original signal exactly JPEG is a lossy file format (however, depending on the compression quality visually perceiving errors may be impossible) TIFF can be both lossy and lossless depending on the selected options PPM and PNG are lossless Let’s convert our simple.ppm to JPEG to observe the difference

Image JPEG format Discrete Cosine Transform on each 8x8 block of the image Ignore small coefficients

Image JPEG format Discrete Cosine Transform on each 8x8 block of the image Ignore small coefficients, quantize

Image JPEG format Discrete Cosine Transform on each 8x8 block of the image Ignore small coefficients, quantize, apply Huffman coding

Image JPEG format Discrete Cosine Transform on each 8x8 block of the image Ignore small coefficients, quantize, apply Huffman coding See https://youtu.be/Q2aEzeMDHMA for details

Image Lossy vs. lossless formats

Image A JPEG with different quality settings

Perception Human eye can distinguish about 10M different colors.

Perception Electromagnetic spectrum. Bees and many other insects can detect ultraviolet light, which helps them to find nectar in flowers. Bees’ visible spectrum, however, ends at about 590 nm, just before the orange wavelengths start. Birds, however, can see some red wavelengths, although not as far into the light spectrum as humans. Human spectrum: red (700nm) to violet (400nm). Goldfishes can see ultraviolet light (10nm).