COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 5 Lecture 5 - Bitmapped Images.

Slides:



Advertisements
Similar presentations
T.Sharon-A.Frank 1 Multimedia Compression Basics.
Advertisements

V Material obtained from a July, 2014 summer workshop in Guildford County.
School of Computing Science Simon Fraser University
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Processing Digital Images. Filtering Analysis –Recognition Transmission.
Nigel Chapman & Jenny Chapman
T.Sharon-A.Frank 1 Multimedia Image Compression 2 T.Sharon-A.Frank Coding Techniques – Hybrid.
Multimedia Data The DCT and JPEG Image Compression Dr Mike Spann Electronic, Electrical and Computer.
Introduction to Computer Graphics
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Image Compression JPEG. Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg and can be embedded.
V Obtained from a summer workshop in Guildford County July, 2014
Trevor McCasland Arch Kelley.  Goal: reduce the size of stored files and data while retaining all necessary perceptual information  Used to create an.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Fundamentals Rawesak Tanawongsuwan
School of Computer Science & Information Technology G6DPMM - Lecture 4 Graphics & Still Image Representation.
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.
Lecture 3. Fundamentals of Computer Graphics. Computer Graphics, a very broad term Fields Related to Computer Graphics Bitmap/Vector graphics, 2D/3D graphics,
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
1 Image Compression. 2 GIF: Graphics Interchange Format Basic mode Dynamic mode A LZW method.
Lecture 4 - Introduction to Computer Graphics
Image Processing and Computer Vision: 91. Image and Video Coding Compressing data to a smaller volume without losing (too much) information.
Multimedia Data DCT Image Compression
Chapter 5 Bitmapped Images Multimedia Systems. Key Points For displayed images, physical dimension = pixel dimension/device resolution. For displayed.
© De Montfort University, Vector and Bitmapped graphics Howell Istance School of Computing De Montfort University.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 5 This presentation © 2004, MacAvon Media Productions Bitmapped Images.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Digital Image Processing Image Compression
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Digital Media Dr. Jim Rowan ITEC Up Next! In the next several lectures we will be covering these topics: –Vector graphics –Bitmapped graphics –Color.
Digital Media Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
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.
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.
The task of compression consists of two components, an encoding algorithm that takes a file and generates a “compressed” representation (hopefully with.
The Digital Revolution Changing information. What is Digital?  Discrete values used for  Input  Processing  Transmission  Storage  Display  Derived.
Digital Media Dr. Jim Rowan ITEC 2110 Images: Chapters 3, 4 & 5.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
STATISTIC & INFORMATION THEORY (CSNB134) MODULE 11 COMPRESSION.
 Lecture 4. Image Resolution  The resolution of an image is the number of pixels per unit length (pixels/inch or pixels/cm).  You must change either.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM M ULTIMEDIA OF D ATA C OMPRESSION Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
13 June – Session : Graphics Different types of Graphics for the web Features of image editing software Good practice for image editing.
ITEC2110, Digital Media Chapter 2 Fundamentals of Digital Imaging 1 GGC -- ITEC Digital Media.
 The concept of resolution is simple, but it differ according to where it is used.
Masaki Hayashi 2015, Autumn Visualization with 3D CG Digital 2D Image Basic.
IS502:M ULTIMEDIA D ESIGN FOR I NFORMATION S YSTEM D IGITAL S TILL I MAGES Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny Winter.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Computer Science Higher
Images, Display, Perception
Digital 2D Image Basic Masaki Hayashi
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Dr. Jim Rowan ITEC 2110 Bitmapped Images
Introduction to Computer Graphics
Chapter 3 Capturing and Editing Digital Images
Chapter 8, Exploring the Digital Domain
Dr. Jim Rowan ITEC 2110 Bitmapped Images
Image Coding and Compression
Lecture 5 - Bitmapped Images
Lecture 4 - Introduction to Computer Graphics
Review and Importance CS 111.
Presentation transcript:

COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 5 Lecture 5 - Bitmapped Images

COMP135/COMP535 Also known as raster graphics Record a value for every pixel in the image Often created from an external source –Scanner, digital camera, … Painting programs allow direct creation of images with analogues of natural media, brushes, … Bitmapped Images

COMP135/COMP535 Printers, scanners: specify as dots per unit length, often dots per inch (dpi) –Desktop printer 600dpi, typesetter 1270dpi, scanner 300– 3600dpi,… Video, monitors: specify as pixel dimensions –PAL TV 768x576px, 17" CRT monitor 1024x768px,… –dpi depends on physical size of screen Device Resolution

COMP135/COMP535 Array of pixels has pixel dimensions, but no physical dimensions By default, displayed size depends on resolution (dpi) of output device –physical dimension = pixel dimension/resolution Can store image resolution (ppi) in image file to maintain image's original size –Scale by device resolution/image resolution Image Resolution

COMP135/COMP535 If image resolution < output device resolution, must interpolate extra pixels –Always leads to loss of quality If image resolution > output device resolution, must downsample (discard pixels) –Quality will often be better than that of an image at device resolution (uses more information) –Image sampled at a higher resolution than that of intended output device is oversampled Changing Resolution

COMP135/COMP535 Image files may be too big for network transmission, even at low resolutions Use more sophisticated data representation or discard information to reduce data size Effectiveness of compression will depend on actual image data For any compression scheme, there will always be some data for which 'compressed' version is actually bigger than the original Compression

COMP135/COMP535 Always possible to decompress compressed data and obtain an exact copy of the original uncompressed data –Data is just more efficiently arranged, none is discarded Run-length encoding (RLE) Huffmann coding Dictionary-based schemes – LZ77, LZ78, LZW (LZW used in GIF, licence fee charged) Lossless Compression

COMP135/COMP535 Lossy technique, well suited to photographs, images with fine detail and continuous tones Consider image as a spatially varying signal that can be analysed in the frequency domain Experimental fact: people do not perceive the effect of high frequencies in images very accurately Hence, high frequency information can be discarded without perceptible loss of quality JPEG Compression

COMP135/COMP535 Discrete Cosine Transform –Similar to Fourier Transform, analyses a signal into its frequency components –Takes array of pixel values, produces an array of coefficients of frequency components in the image –Computationally expensive process – time proportional to square of number of pixels Apply to 8x8 blocks of pixels DCT

COMP135/COMP535 Applying DCT does not reduce data size –Array of coefficients is same size as array of pixels Allows information about high frequency components to be identified and discarded Use fewer bits (distinguish fewer different values) for higher frequency components Number of levels for each frequency coefficient may be specified separately in a quantization matrix JPEG – Quantization

COMP135/COMP535 After quantization, there will be many zero coefficients –Use RLE on zig-zag sequence (maximizes runs) Use Huffman coding of other coefficients (best use of available bits) JPEG – Encoding

COMP135/COMP535 Expand runs of zeros and decompress Huffman- encoded coefficients to reconstruct array of frequency coefficients Use Inverse Discrete Cosine Transform to take data back from frequency to spatial domain Data discarded in quantization step of compression procedure cannot be recovered Reconstructed image is an approximation (usually very good) to the original image JPEG – Decompression

COMP135/COMP535 If use low quality setting (i.e. coarser quantization), boundaries between 8x8 blocks become visible If image has sharp edges these become blurred –Rarely a problem with photographic images, but especially bad with text –Better to use good lossless method with text or computer- generated images Compression Artefacts

COMP135/COMP535 Many useful operations described by analogy with darkroom techniques for altering photos Correct deficiencies in image –Remove 'red-eye', enhance contrast,… Create artificial effects –Filters: stylize, distort,… Geometrical transformations –Scale (change resolution), rotate,… Image Manipulation

COMP135/COMP535 No distinct objects (contrast vector graphics) Selection tools define an area of pixels –Draw selection (pen tool, lasso) –Select regular shape (rectangular, elliptical, 1px marquee tools) –Select on basis of colour/edges (magic wand, magnetic lasso) Adjustments &c restricted to selected area Selection

COMP135/COMP535 Area not selected is protected, as if masked by stencil Can represent on/off mask as array of 1 bit per pixel (b/w image) Generalize to greyscale image (semi-transparent mask) – alpha channel –Feathered and anti-aliased selections –Use as layer mask to modify layer compositing Masks

COMP135/COMP535 Compute new value for pixel from its old value –p' = f(p), f is a mapping function In greyscale images, ppp alters brightness and contrast –Compensate for poor exposure, bad lighting, bring out detail –Use with mask to adjust parts of image (e.g. shadows and highlights) Pixel Point Processing

COMP135/COMP535 Brightness and contrast sliders –Adjust slope and intercept of linear f Levels dialogue –Adjust endpoints by setting white and black levels –Use image histogram to choose values visually Curves dialogue –Interactively adjust shape of graph of f Adjustments in Photoshop

COMP135/COMP535 Compute new value for pixel from its old value and the values of surrounding pixels –Filtering operations Compute weighted average of pixel values –Array of weights k/a convolution mask –Pixels used in convolution k/a convolution kernel Computationally intensive process Pixel Group Processing

COMP135/COMP535 Classic simple blur –Convolution mask with equal weights Unnatural effect –Gaussian blur Convolution mask with coefficients falling off gradually (Gaussian bell curve) –More gentle, can set amount and radius Blurring

COMP135/COMP535 Low frequency filter –3x3 convolution mask coefficients all equal to -1, except centre = 9 –Produces harsh edges Unsharp masking –Copy image, apply Gaussian blur to copy, subtract it from original Enhances image features Sharpening

COMP135/COMP535 Scaling, rotation, etc. –Simple operations in vector graphics –Requires each pixel to be transformed in bitmapped image Transformations may 'send pixels into gaps' –i.e. interpolation is required Equivalent to reconstruction & resampling; tends to degrade image quality Geometrical Transformations

COMP135/COMP535 Nearest neighbour –Use value of pixel whose centre is closest in the original image to real coordinates of ideal interpolated pixel Bilinear interpolation –Use value of all four adjacent pixels, weighted by intersection with target pixel Bicubic interpolation –Use values of all four adjacent pixels, weighted using cubic splines Interpolation