1 / 33

Introduction

Introduction. Basic Sound Concepts Computer Representation of Sound Basic Image Concepts Image Representation and Formats Video Signal Representation Color Encoding Computer Video Format. Basic Sound Concepts. Acoustics

seth-hughes
Download Presentation

Introduction

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Introduction • Basic Sound Concepts • Computer Representation of Sound • Basic Image Concepts • Image Representation and Formats • Video Signal Representation • Color Encoding • Computer Video Format Introduction to Multimedia

  2. Basic Sound Concepts • Acoustics • study of sound - generation, transmission and reception of sound waves. • Sound is produced by vibration of matter. • During vibration, pressure variations are created in the surrounding air molecules. • Pattern of oscillation creates a waveform • the wave is made up of pressure differences. • Waveform repeats the same shape at intervals called a period. • Periodic sound sources - exhibit more periodicity, more musical - musical instruments, wind etc. • Aperiodic sound sources - less periodic - unpitched percussion, sneeze, cough. Introduction to Multimedia

  3. Basic Sound Concepts • Sound Transmission • Sound is transmitted by molecules bumping into each other. • Sound is a continuous wave that travels through air. • Sound is detected by measuring the pressure level at a point. • Receiving • Microphone in sound field moves according to the varying pressure exerted on it. • Transducer converts energy into a voltage level (i.e. energy of another form - electrical energy) • Sending • Speaker transforms electrical energy into sound waves. Introduction to Multimedia

  4. Frequency of a sound wave Frequency is the reciprocal value of the period. period Air pressure amplitude time Introduction to Multimedia

  5. Basic Sound Concepts • Wavelength is the distance travelled in one cycle • 20Hz is 56 feet, 20KHz is 0.7 in. • Frequency represents the number of periods in a second (measured in hertz, cycles/second). • Frequency is the reciprocal value of the period. • Human hearing frequency range: 20Hz - 20Khz, voice is about 500Hz to 2Khz. Infrasound from 0 - 20 Hz Human range from 20Hz - 20KHz Ultrasound from 20kHz - 1GHz Hypersound from 1GHz - 10THz Introduction to Multimedia

  6. Basic Sound Concepts • Amplitude of a sound is the measure of the displacement of the air pressure wave from its mean or quiescent state. • Subjectively heard as loudness. Measured in decibels. 0 db - essentially no sound heard 35 db - quiet home 70 db - noisy street 120db - discomfort Introduction to Multimedia

  7. Computer Representation of Audio • A transducer converts pressure to voltage levels. • Convert analog signal into a digital stream by discrete sampling. • Discretization both in time and amplitude (quantization). • In a computer, we sample these values at intervals to get a vector of values. • A computer measures the amplitude of the waveform at regular time intervals to produce a series of numbers (samples). Introduction to Multimedia

  8. Computer Representation of Audio • Sampling Rate: • rate at which a continuous wave is sampled (measured in Hertz) • CD standard - 44100 Hz, Telephone quality - 8000 Hz. • Direct relationship between sampling rate, sound quality (fidelity) and storage space. • Question • How often do you need to sample a signal to avoid losing information? • Answer • To decide a sampling rate - must be aware of difference between playback rate and capturing(sampling) rate. • It depends on how fast the signal is changing. In reality - twice per cycle (follows from the Nyquist sampling theorem). Introduction to Multimedia

  9. Sampling Sample Height samples Introduction to Multimedia

  10. Nyquist Sampling Theorem • If a signal f(t) is sampled at regular intervals of time and at a rate higher than twice the highest significant signal frequency, then the samples contain all the information of the original signal. • Example • Actual playback frequency for CD quality audio is 22050 Hz • Because of Nyquist Theorem - we need to sample the signal twice, therefore sampling frequency is 44100 Hz. Introduction to Multimedia

  11. Data Rate of a Channel • Noiseless Channel • Nyquist proved that if any arbitrary signal has been run through a low pass filter of bandwidth H, the filtered signal can be completely reconstructed by making only 2H (exact) samples per second. If the signal consists of V discrete levels, Nyquist’s theorem states: max datarate = 2 *H log_2 V bits/sec • noiseless 3kHz channel with quantization level 1 bit cannot transmit binary signal at a rate exceeding 6000 bits per second. • Noisy Channel • Thermal noise present is measured by the ratio of the signal power S to the noise power N (signal-to-noise ratio S/N). Representative unit of noisy channel is decibel 10 log (S/N). • Max datarate - H log_2 (1+S/N) Introduction to Multimedia

  12. Quantization • Sample precision - the resolution of a sample value • Quantization depends on the number of bits used measuring the height of the waveform. • 16 bit CD quality quantization results in 64K values. • Audio formats are described by sample rate and quantization. • Voice quality - 8 bit quantization, 8000 Hz mono(8 Kbytes/sec) • 22kHz 8-bit mono (22kBytes/s) and stereo (44Kbytes/sec) • CD quality - 16 bit quantization, 44100 Hz linear stereo (196 Kbytes/s) Introduction to Multimedia

  13. Quantization and Sampling Sample Height 0.75 0.5 0.25 samples Introduction to Multimedia

  14. Audio Formats • Audio formats are characterized by four parameters • Sample rate: Sampling frequency • Encoding: audio data representation • -law encoding corresponds to CCITT G.711 - standard for voice data in telephone companies in USA, Canada, Japan • A-law encoding - used for telephony elsewhere. • A-law and -law are sampled at 8000 samples/second with precision of 12bits, compressed to 8-bit samples. • Linear Pulse Code Modulation(PCM) - uncompressed audio where samples are proportional to audio signal voltage. • Precision: number of bits used to store audio sample • -law and A-law - 8 bit precision, PCM can be stored at various precisions, 16 bit PCM is common. • Channel: Multiple channels of audio may be interleaved at sample boundaries. Introduction to Multimedia

  15. Computer Representation of Voice • Best known technique for voice digitization is pulse-code-modulation (PCM). • Consists of the 2 step process of sampling and quantization. • Based on the sampling theorem. • If voice data are limited to 400Hz, then PCM samples 8000 samples per second which is sufficient for input voice signal. • PCM provides analog samples which must be converted to digital representation. • Each of these analog samples must be assigned a binary code. Each sample is approximated by being quantized. Introduction to Multimedia

  16. Computer Representation of Music • MIDI (Music Instrument Digital Interface) • standard that manufacturers of musical instruments use so that instruments can communicate musical information via computers. • The MIDI interface consists of: • Hardware - physical connection b/w instruments, specifies a MIDI port (plugs into computers serial port) and a MIDI cable. • Data format - has instrument specification, notion of beginning and end of note, frequency and sound volume. Data grouped into MIDI messages that specify a musical event. • An instrument that satisfies both is a MIDI device (e.g. synthesizer) • MIDI software applications include • music recording and performance applications, musical notations and printing applications, music education etc. Introduction to Multimedia

  17. Computer Representation of Speech • Human ear is most sensitive in the range 600Hz to 6000 Hz. • Speech Generation • real-time signal generation allows transformation of text into speech without lengthy processing • Limited vs. large vocabulary (depends on application) • Must be understandable, must sound natural • Speech Analysis • Identification and Verification - recognize speakers using acoustic fingerprint • Recognition and Understanding - analyze what has been said • How something was said - used in lie detectors. • Speech transmission - coding, recognition and synthesis methods - achieve minimal data rate for a given quality. Introduction to Multimedia

  18. Basic Concepts (Digital Image Representation) • An image is a spatial representation of an object, a 2D or 3D scene etc. • Abstractly, an image is a continuous function defining a rectangular region of a plane • intensity image - proportional to radiant energy received by a sensor/detector • range image - line of sight distance from sensor position. • An image can be thought of as a function with resulting values of the light intensity at each point over a planar region. Introduction to Multimedia

  19. Digital Image Representation • For computer representation, function (e.g. intensity) must be sampled at discrete intervals. • Sampling quantizes the intensity values into discrete intervals. • Points at which an image is sampled are called picture elements or pixels. • Resolution specifies the distance between points - accuracy. • A digital image is represented by a matrix of numeric values each representing a quantized intensity value. • I(r,c) - intensity value at position corresponding to row r and column c of the matrix. • Intensity value can be represented by bits for black and white images (binary valued images), 8 bits for monochrome imagery to encode color or grayscale levels, 24 bit (color-RGB). Introduction to Multimedia

  20. Image Formats • Captured Image Format • format obtained from an image frame grabber • Important parameters • Spatial resolution (pixels X pixels) • Color encoding (quantization level of a pixel - 8-bit, 24-bit) • e.g. “SunVideo” Video digitizer board allows pictures of 320 by 240 pixels with 8-bit grayscale or color resolution. Parallax-X video includes resolution of 640X480 pixels and 24-bit frame buffer. Introduction to Multimedia

  21. Image Formats • Stored Image Format - format when images are stored • Images are stored as 2D array of values where each value represents the data associated with a pixel in the image. • Bitmap - this value is a binary digit • For a color image - this value may be a collection of • 3 values that represent intensities of RGB component at that pixel, 3 numbers that are indices to table of RGB intensities, index to some color data structure etc. • Image file formats include - GIF (Graphical Interchange Format) , X11 bitmap, Postscript, JPEG, TIFF Introduction to Multimedia

  22. Image Formats • Graphics Format - • specifies graphics images through graphics primitives and attributes. • Graphics primitives - line, rectangle, circles, ellipses, specifications of 2D and 3D objects • Graphics attributes - line style, line width, color • Graphics formats represent a higher level of image representation, i.e., they are not represented by a pixel matrix initially. • Advantage - less storage space per graphical image • Disadvantage - more overhead during display time; must convert from a graphical image to the image format which may be a bitmap or pixmap. • E.g PHIGS (programmer’s hierarchical interactive graphics system), GKS (graphical kernel system). Introduction to Multimedia

  23. Basic Concepts (Video Representation) • Human eye views video • immanent properties of the eye determine essential conditions related to video systems. • Video signal representation consists of 3 aspects: • Visual Representation • objective is to offer the viewer a sense of presence in the scene and of participation in the events portrayed. • Transmission • Video signals are transmitted to the receiver through a single television channel • Digitalization • analog to digital conversion, sampling of gray(color) level, quantization. Introduction to Multimedia

  24. Visual Representation • The televised image should convey the spatial and temporal content of the scene • Vertical detail and viewing distance • Aspect ratio: ratio of picture width and height (4/3 = 1.33 is the conventional aspect ratio). • Viewing angle = viewing distance/picture height • Horizontal detail and picture width • Picture width (conventional TV service ) - 4/3 * picture height • Total detail content of the image • Number of pixels presented separately in the picture height = vertical resolution • Number of pixels in the picture width = horizontal resolution*aspect ratio • product equals total number of picture elements in the image. Introduction to Multimedia

  25. Visual Representation • Perception of Depth • In natural vision, this is determined by angular separation of images received by the two eyes of the viewer • In the flat image of TV, focal length of lenses and changes in depth of focus in a camera influence depth perception. • Luminance and Chrominance • Color-vision - achieved through 3 signals, proportional to the relative intensities of RED, GREEN and BLUE. • Color encoding during transmission uses one LUMINANCE and two CHROMINANCE signals • Temporal Aspect of Resolution • Motion resolution is a rapid succession of slightly different frames. For visual reality, repetition rate must be high enough (a) to guarantee smooth motion and (b) persistance of vision extends over interval between flashes(light cutoff b/w frames). Introduction to Multimedia

  26. Visual Representation • Continuity of motion • Motion continuity is achieved at a minimal 15 frames per second; is good at 30 frames/sec; some technologies allow 60 frames/sec. • NTSC standard provides 30 frames/sec - 29.97 Hz repetition rate. • PAL standard provides 25 frames/sec with 25Hz repetition rate. • Flicker effect • Flicker effect is a periodic fluctuation of brightness perception. To avoid this effect, we need 50 refresh cycles/sec. Display devices have a display refresh buffer for this. • Temporal aspect of video bandwidth • depends on rate of the visual system to scan pixels and on human eye scanning capabilities. Introduction to Multimedia

  27. Transmission (NTSC) • Video bandwidth is computed as follows • 700/2 pixels per line X 525 lines per picture X 30 pictures per second • Visible number of lines is 480. • Intermediate delay between frames is • 1000ms/30fps = 33.3ms • Display time per line is • 33.3ms/525 lines = 63.4 microseconds • The transmitted signal is a composite signal • consists of 4.2Mhz for the basic signal and 5Mhz for the color, intensity and synchronization information. Introduction to Multimedia

  28. Color Encoding • A camera creates three signals • RGB (red, green and blue) • For transmission of the visual signal, we use three signals • 1 luminance (brightness-basic signal) and 2 chrominance (color signals). • In NTSC, luminance and chrominance are interleaved • Goal at receiver • separate luminance from chrominance components • avoid interference between them prior to recovery of primary color signals for display. Introduction to Multimedia

  29. Color Encoding • RGB signal - for separate signal coding • consists of 3 separate signals for red, green and blue colors. Other colors are coded as a combination of primary color. (R+G+B = 1) --> neutral white color. • YUV signal • separate brightness (luminance) component Y and • color information (2 chrominance signals U and V) • Y = 0.3R + 0.59G + 0.11B • U = (B-Y) * 0.493 • V = (R-Y) * 0.877 • Resolution of the luminance component is more important than U,V • Coding ratio of Y, U, V is 4:2:2 Introduction to Multimedia

  30. Color Encoding(cont.) • YIQ signal • similar to YUV - used by NTSC format • Y = 0.3R + 0.59G + 0.11B • U = 0.60R - 0.28G + 0.32 B • V = 0.21R -0.52g + 0.31B • Composite signal • All information is composed into one signal • To decode, need modulation methods for eliminating interference b/w luminance and chrominance components. Introduction to Multimedia

  31. Digitalization • Refers to sampling the gray/color level in the picture at MXN array of points. • Once points are sampled, they are quantized into pixels • sampled value is mapped into an integer • quantization level is dependent on number of bits used to represent resulting integer, e.g. 8 bits per pixel or 24 bits per pixel. • Need to create motion when digitizing video • digitize pictures in time • obtain sequence of digital images per second to approximate analog motion video. Introduction to Multimedia

  32. Computer Video Format • Video Digitizer • A/D converter • Important parameters resulting from a digitizer • digital image resolution • quantization • frame rate • E.g. Parallax X Video - camera takes the NTSC signal and the video board digitizes it. Resulting video has • 640X480 pixels spatial resolution • 24 bits per pixel resolution • 20fps (lower image resolution - more fps) • Output of digital video goes to raster displays with large video RAM memories. • Color lookup table used for presentation of color Introduction to Multimedia

  33. Digital Transmission Bandwidth • Bandwidth requirement for images • raw image transmission b/w = size of image = spatial resolution x pixel resolution • compressed image - depends on compression scheme • symbolic image transmission b/w = size of instructions and primitives carrying graphics variables • Bandwidth requirement for video • uncompressed video = image size X frame rate • compressed video - depends on compression scheme • e.g HDTV quality video uncompressed - 345.6Mbps, compressed using MPEG (34 Mbps with some loss of quality). Introduction to Multimedia

More Related