Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007.

Slides:



Advertisements
Similar presentations
Motivation Application driven -- VoD, Information on Demand (WWW), education, telemedicine, videoconference, videophone Storage capacity Large capacity.
Advertisements

1 Rev 01/01/2015.  The main difference between analog and digital /discrete is that analog data is continuous and digital data is discrete.  We need.
Color Image Processing
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Capturing and optimising digital images for research Gilles Couzin.
School of Computing Science Simon Fraser University
School of Computing Science Simon Fraser University
Light to Electricity: lines begin and end in black (low signal level) called Blanking between blanking is the active video scanning is precisely controlled.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
1 Basics of Digital Imaging Digital Image Capture and Display Kevin L. Lorick, Ph.D. FDA, CDRH, OIVD, DIHD.
 Principles of Digital Audio. Analog Audio  3 Characteristics of analog audio signals: 1. Continuous signal – single repetitive waveform 2. Infinite.
Chapter 2:Multimedia information representation
Media File Formats Jon Ivins, DMU. Text Files n Two types n 1. Plain text (unformatted) u ASCII Character set is most common u 7 bits are used u This.
Digital Audio What do we mean by “digital”? How do we produce, process, and playback? Why is physics important? What are the limitations and possibilities?
Multimedia Specification Design and Production 2012 / Semester 1 / L2 Lecturer: Dr. Nikos Gazepidis
Fundamentals Rawesak Tanawongsuwan
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.
Computer Concepts – Illustrated 8th edition
Computing with Digital Media: A Study of Humans and Technology Mark Guzdial, School of Interactive Computing.
CSCI-235 Micro-Computers in Science Hardware Part II.
CSC361/661 Digital Media Spring 2002
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.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Color Color is a psychophysical concept depending both upon the spectral distribution of the radiant energy of the illumination source and the visual sensations.
1 Image Basics Hao Jiang Computer Science Department Sept. 4, 2014.
Multimedia I (Audio/Video Data) CS423, Fall 2007 Klara Nahrstedt/Sam King 9/19/20151.
Copyright 1998, S.D. Personick. All Rights Reserved1 Telecommunications Networking I Lectures 2 & 3 Representing Information as a Signal.
Chapter 4 Color in Image and Video Li & Drew1. Fundamentals of Multimedia, Chapter Color Science Light and Spectra Light is an electromagnetic wave.
MULTIMEDIA - WHAT IS IT? DEFINITION 1: Uses a VARIETY of media ELEMENTS for instruction Media elements are: text, sound, graphics, moving images (real.
Chapter 11 Fluency with Information Technology 4 th edition by Lawrence Snyder (slides by Deborah Woodall : 1.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
1 Multimedia Information Representation. 2 Analog Signals  Fourier transform and analysis Analog signal and frequency components Signal bandwidth and.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
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.
1 Imaging Techniques for Flow and Motion Measurement Lecture 2 Lichuan Gui University of Mississippi 2011 Digital Image & Image Processing.
M404 Multimedia Elements Form 4.
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.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
Chapter 4 Color in Image and Video Li & Drew1. Fundamentals of Multimedia, Chapter Color Science Light and Spectra Light is an electromagnetic wave.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
Media Types Information Systems can contain the following types of media: Sound, graphics, video & text.
CSCI-100 Introduction to Computing Hardware Part II.
Visual Computing Computer Vision 2 INFO410 & INFO350 S2 2015
Data Representation. What is data? Data is information that has been translated into a form that is more convenient to process As information take different.
Chapter 1 Background 1. In this lecture, you will find answers to these questions Computers store and transmit information using digital data. What exactly.
Visible Spectrum.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Intelligent Robotics Today: Vision & Time & Space Complexity.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
1 What is Multimedia? Multimedia can have a many definitions Multimedia means that computer information can be represented through media types: – Text.
HOW SCANNERS WORK A scanner is a device that uses a light source to electronically convert an image into binary data (0s and 1s). This binary data can.
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Information Systems Design and Development Media Types Computing Science.
1 Part A Multimedia Production Chapter 2 Multimedia Basics Digitization, Coding-decoding and Compression Information and Communication Technology.
8th Lecture – Intro to Bitmap or Raster Images
Chapter 8 Digital Media.
DIGITAL MEDIA FOUNDATIONS
Color Image Processing
Color Image Processing
Chapter 3 Graphics and Image Data Representations
Images, Display, Perception
Color Image Processing
Digital 2D Image Basic Masaki Hayashi
Perception and Measurement of Light, Color, and Appearance
LET’S LEARN ABOUT GRAPHICS!
CS 115: Computing for The Socio-Techno Web
Color Image Processing
Color Image Processing
Presentation transcript:

Digital Audio, Image and Video Hao Jiang Computer Science Department Sept. 6, 2007

Digital Media  In computers, audio, image and video are stored as files just like other text files.  For images, these files can have an extension like –BMP, JPG, GIF, TIF, PNG, PPM, …  For audios, the file extensions include –WAV, MP3, …  The videos files usually have extensions: –AVI, MOV, …

An Digital Image Example  Let’s open an image file is its “raw” format: P6: (this is a ppm image) Resolution: 512x512 Depth: 255 (8bits per pixel in each channel)

An image contains a header and a bunch of (integer) numbers.

Digital Media Capturing  To get a digital image, an audio or a video clip, we need some media capturing device such as –a digital camera or a scanner, –a digital audio recorder, –or a digital camcorder.  All these devices have to complete tasks: –Sampling: To convert a continuous media into discrete formats. –Digitization: To convert continuous samples into finite number of digital numbers. –There are probably some further compression process.

An Audio Signal

Sampling for an Audio Signal Sampling period Ts, fs =1/Ts Signal Period T, f = 1/T Intuitively T should >= 2Ts

fs = 2.5f fs = 1.67f Original signal A new component is added This is denoted as aliasing.

fs = 2f There are infinite number of possible sin waves going through the sampling points

Frequency Decomposition  Any signal can be represented as the summation of sin waves (possibly infinite number of them).  We can use “Fourier Transform” to compute these frequency components.  We can now extend our analysis to any signals.  If we have a signal has frequency components {f1 < f2 < f3 … < fn} so what is the minimum sampling frequency we should use?

Nyquist Theorem  Nyquist theorem –The necessary condition of reconstructing a continuous signal from the sampling version is that the sampling frequency fs > 2f max f max is the highest frequency component in the signal. –If a signal’s frequency components are restricted in [f1, f2], we need fs >2 (f2-f1).

Image Sampling  The sampling theorem applies to 2D signal (images) too. Sampling on a grid Sampling problem

The image of Barbara

Aliasing due to sampling

Digitization  The samples are continuous and have infinite number of possible values.  The digitization process approximates these values with a fixed number of numbers.  To represent N numbers, we need log 2 N bits.  So, what determines the number of bits we need for an audio clip or an image?

Digital Audio  You often hear that an audio is 16bits at 44kHz.  44KHz is the sampling frequency. Music has more high frequency components than speech. 8kHz sampling is good enough for telephone quality speech.  16bits means each sample is represented as a 16bit integer.  Digital audio could have more than one channels.

Digital Images An image contains 2D samples of a surface, which can be represented as matrices. Each sample in an image is called a pixel.

Types of Digital Images  Grayscale image –Usually we use 256 levels for each pixel. Thus we need 8bits to represent each pixel (2^8 == 256) –Some images use more bits per pixel, for example MRI images could use 16bits per pixel. A 8bit grayscale Image.

 Binary Image A binary image has only two values (0 or 1). Binary image is quite important in image analysis and object detection applications.

Bit Plane [ b7 b6 b5 b4 b3 b2 b1 b0] MSBLSB Each bit plane is a binary image.

Dithering  A technique to represent a grayscale image with a binary one. 0  1  2  3  Convert image to 4 levels: I’ = floor(I/64)

Dithering Matrix  Dithering matrix 0  1  2  3  The dithering matrix is

Color Image r g b There are other color spaces Like YUV, HSV etc. 24 bit image

Color Table Image with 256 colors r g b Clusters of colors It is possible to use much less colors To represent a color image without much degradation.

Human Vision Human eye has two kinds of light sensitive cells. The rods and The cones. Rods response curve (black and white vision) Cones response curve (color vision) R = s E( ) S r ( )d G = s E( ) S g ( )d B = s E( ) S b ( )d

Colors  Color matching function Colorimeter experiment

CIE Color Matching Functions  The amounts of R, G, B lighting sources to form single wavelength light forms the color matching curves. CIE color matching curvesCIE standard color matching functions.

Gamma Correction  Most display device’s brightness is not linearly related to the input. I’ = I    To compensate for the nonlinear distortion we need to raise it to a power again (I’) 1/ = I   for CRT is about 2.2.

Gamma Correction Linearly increasing intensity Without gamma correction Linearly increasing intensity with gamma correction

Video  Analog video Even frameOdd Frame 52.7us 10.9us 0v white black

Digital Video Frame N-1 Frame 0 time Digital video is digitized version of a 3D function f(x,y,t)

Color System in Video  YUV was used in PAL (an analog video standard) and also used for digital video.  Y is the luminance component (brightness) Y = R G B  U and V are color components U = B – Y V = R - Y Y U V

 YIQ is the color standard in NTSC.  YCbCr: A color system used in JPEG. I Q