Fundamentals of Multimedia

Similar documents
Chapter 3 Graphics and Image Data Representations

3.1 Graphics/Image age Data Types. 3.2 Popular File Formats

1 Li & Drew c Prentice Hall Li & Drew c Prentice Hall 2003

Chapter 3 Graphics and Image Data Representations

Welcome Back to Fundamentals of Multimedia (MR412) Fall, 2012 Chapter 3. ZHU Yongxin, Winson

LECTURE 02 IMAGE AND GRAPHICS

Multimedia. Graphics and Image Data Representations (Part 2)

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

4 Images and Graphics

Bitmap Image Formats

LECTURE 03 BITMAP IMAGE FORMATS

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

INTRODUCTION TO COMPUTER GRAPHICS

Lecture - 3. by Shahid Farid

Multimedia-Systems: Image & Graphics

Specific structure or arrangement of data code stored as a computer file.

Digital Images. Digital Images. Digital Images fall into two main categories

Introduction to Multimedia Computing

UNIT 7C Data Representation: Images and Sound

raw format format for capturing maximum continuous-tone color information. It preserves all information when photograph was taken.

Bitmap Vs Vector Graphics Web-safe Colours Image compression Web graphics formats Anti-aliasing Dithering & Banding Image issues for the Web

B.Digital graphics. Color Models. Image Data. RGB (the additive color model) CYMK (the subtractive color model)

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be:

CHAPTER 3 I M A G E S

UNIT 7C Data Representation: Images and Sound Principles of Computing, Carnegie Mellon University CORTINA/GUNA

Digital Imaging & Photoshop

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

Raster (Bitmap) Graphic File Formats & Standards

The BIOS in many personal computers stores the date and time in BCD. M-Mushtaq Hussain

Digital Image Processing Lec.(3) 4 th class

MOTION GRAPHICS BITE 3623

Digital Asset Management 2. Introduction to Digital Media Format

STANDARD ST.67 MAY 2012 CHANGES

Color & Compression. Robin Strand Centre for Image analysis Swedish University of Agricultural Sciences Uppsala University

Topics. 1. Raster vs vector graphics. 2. File formats. 3. Purpose of use. 4. Decreasing file size

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

Raster Image File Formats

15110 Principles of Computing, Carnegie Mellon University

HTTP transaction with Graphics HTML file + two graphics files

6. Graphics MULTIMEDIA & GRAPHICS 10/12/2016 CHAPTER. Graphics covers wide range of pictorial representations. Uses for computer graphics include:

Course Objectives & Structure

What is an image? Images and Displays. Representative display technologies. An image is:

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. Digital Images Vector Graphics

Learning Outcomes. Black and White pictures. Bitmap Graphics. COMPSCI 111/111G Digital Images and Vector Graphics

Understanding Image Formats And When to Use Them

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics

GUIDELINES & INFORMATION

IMAGE SIZING AND RESOLUTION. MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication

The Need for Data Compression. Data Compression (for Images) -Compressing Graphical Data. Lossy vs Lossless compression

Elements of Design. Basic Concepts

15110 Principles of Computing, Carnegie Mellon University

Factors to Consider When Choosing a File Type

Picsel epage. Bitmap Image file format support

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

Computer Graphics. Rendering. Rendering 3D. Images & Color. Scena 3D rendering image. Human Visual System: the retina. Human Visual System

Computers & Philately Overview

An Analytical Study on Comparison of Different Image Compression Formats

Bit Depth. Introduction

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Image is a spatial representation of an object or a scene. (image of a person, place, object)

UNIT 7B Data Representa1on: Images and Sound. Pixels. An image is stored in a computer as a sequence of pixels, picture elements.

Q A bitmap file contains the binary on the left below. 1 is white and 0 is black. Colour in each of the squares. What is the letter that is reve

CGT 211 Sampling and File Formats

Image Processing Computer Graphics I Lecture 20. Display Color Models Filters Dithering Image Compression

Glossary Unit 1: Hardware/Software & Storage Media

Introduction to Color Theory

1. Using Images on Web Pages 2. Image Formats 3. Bitmap Image Formats

What You ll Learn Today

Images and Colour COSC342. Lecture 2 2 March 2015

The next table shows the suitability of each format to particular applications.

Unit 1.1: Information representation

1. Describe how a graphic would be stored in memory using a bit-mapped graphics package.

Image Perception & 2D Images

Images and Displays. Lecture Steve Marschner 1

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

Digital Imaging - Photoshop

Digital Images: A Technical Introduction

Computers and Imaging

Lecture #2: Digital Images

5.1 Image Files and Formats

from: Point Operations (Single Operands)

Common File Formats. Need to store an image on disk Real photos Synthetic renderings Composed images. Desirable Features High quality.

Byte = More common: 8 bits = 1 byte Abbreviation:

CD: (compact disc) A 4 3/4" disc used to store audio or visual images in digital form. This format is usually associated with audio information.

Digital Image Processing Introduction

ITP 140 Mobile App Technologies. Images

Color, graphics and hardware Monitors and Display

Computer Graphics: Graphics Output Primitives Primitives Attributes

A raster image uses a grid of individual pixels where each pixel can be a different color or shade. Raster images are composed of pixels.

*Which code? Images, Sound, Video. Computer Graphics Vocabulary

Computer Graphics. Si Lu. Fall er_graphics.htm 10/02/2015

Adobe Fireworks CS4 Kalamazoo Valley Community College February 25, 2010

RGB COLORS. Connecting with Computer Science cs.ubc.ca/~hoos/cpsc101

Ch. 3: Image Compression Multimedia Systems

Applying mathematics to digital image processing using a spreadsheet

Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

Transcription:

Fundamentals of Multimedia Lecture 2 Graphics & Image Data Representation Mahmoud El-Gayyar elgayyar@ci.suez.edu.eg

Outline Black & white imags 1 bit images 8-bit gray-level images Image histogram Dithering Color imags 24-bit color images 8-bit color images Popular File Formats GIF (Graphics Interchange Format) JPEG (Joint Photography Expert Group) Others Mahmoud El-Gayyar / Fundamentals of Multimedia 3

Outline Black & white imags 1 bit images 8-bit gray-level images Dithering Color imags 24-bit color images 8-bit color images Popular File Formats GIF (Graphics Interchange Format) JPEG (Joint Photography Expert Group) Others Mahmoud El-Gayyar / Fundamentals of Multimedia 4

Images can Represent?! Photographs Paintings Drawings Symbols Corporate logos Flags Maps Diagrams Graphs... Mahmoud El-Gayyar / Fundamentals of Multimedia 5

Bit map techniques Image Representation Pixel-by-pixel representation of the color : short for picture element Pixel: the smallest discrete component of an image on the screen Wide range of colors and shades in complex images Vector techniques comprise mathematical representations Scalable Small file size Mahmoud El-Gayyar / Fundamentals of Multimedia 6

Digitization An image is broken into thousands of pixels. An image stored in this way is called a bitmap. In color images Pixels are represented by three numbers: Red 0-255 Blue 0-255 Green 0-255 Mahmoud El-Gayyar / Fundamentals of Multimedia 7

Bitmap The two-dimensional array of pixel values that represents the graphics/image data Image resolution The number of pixels in a digital image (width x height) Standard Images Image Presentation Illustrate algorithms and compare the performance Lena Baboon Mahmoud El-Gayyar / Fundamentals of Multimedia 8

Image Presentation Frame buffer: Hardware used to store bitmap. A graphics card is used for this purpose. but if not enough video card memory is available then the data has to be shifted around in RAM for display. File size =? width x height x #ofbytesperpixel Mahmoud El-Gayyar / Fundamentals of Multimedia 9

1-bit Images Each pixel is stored as a single bit (0 or 1), so also referred to as binary image. Such an image is also called a 1-bit monochrome image since it contains no color. For pictures containing simple graphics / text Mahmoud El-Gayyar / Fundamentals of Multimedia 10

File size calculation 1-bit Images Resolution: 640 x 480 File size = 640 x 480 x 1/8 = 38.4 kb Mahmoud El-Gayyar / Fundamentals of Multimedia 11

8-bit Gray-level Images Each pixel has a gray-value between 0 and 255. Each pixel is represented by a single byte; e.g., a dark pixel might have a value of 10, and a bright one might be 230. Mahmoud El-Gayyar / Fundamentals of Multimedia 12

File size calculation 8-bit Gray-level Images Resolution: 640 x 480 File size = 640 x 480 x 1 = 300 kb Mahmoud El-Gayyar / Fundamentals of Multimedia 13

Image Histogram pixels 130 36 36 22 Image 16x14 = 224 pixels 0 1 2 3 level Mahmoud El-Gayyar / Fundamentals of Multimedia 14

Histogram Equalization Mahmoud El-Gayyar / Fundamentals of Multimedia 15

Outline Black & white imags 1 bit images 8-bit gray-level images Dithering Color imags 24-bit color images 8-bit color images Popular File Formats GIF (Graphics Interchange Format) JPEG (Joint Photography Expert Group) Others Mahmoud El-Gayyar / Fundamentals of Multimedia 16

Dot & Pixel Dot is the smallest discrete component of an image on the paper Dot is generally much smaller than pixel Mahmoud El-Gayyar / Fundamentals of Multimedia 17

Dithering When an image is printed, the basic strategy of dithering is used, print multi-level images (8) on 2-level (1-bit) printers (laser). Dithering is used to calculate patterns of dots such that values from 0 to 255 correspond to patterns that are more and more filled at darker pixel values, for printing on a 1-bit printer. Mahmoud El-Gayyar / Fundamentals of Multimedia 18

Dithering The main strategy is to replace a pixel value by a larger pattern, say 2 2 or 4 4, such that the number of printed dots approximates the varying-sized disks of ink used in analog, in halftone printing (e.g., for newspaper photos). Half-tone printing is an analog process that uses smaller or larger filled circles of black ink to represent shading, for newspaper printing. Mahmoud El-Gayyar / Fundamentals of Multimedia 19

Dithering 255 255:5=51 205-255 => 4 Dither matrix: 2x2 0 3 2 1 154-204 => 3 Ex: 10 => 0 0 0 0 0 103-153 => 2 Ex: 125 => 2 1 0 0 1 52-102 => 1 Ex: 180 => 3 1 1 0 1 0 0-51 => 0 Ex: 240 => 4 1 1 1 1 Mahmoud El-Gayyar / Fundamentals of Multimedia 20

Dithering Problem: Image size is much larger: since replacing each pixel by a 2 2 array of dots, makes an image 4 times as large. In case of a 4 4 dither matrix, the image is 16 times as large. Mahmoud El-Gayyar / Fundamentals of Multimedia 21

Ordered Dithering Solution: An ordered dither consists of turning on the printer output bit for a pixel if the intensity level is greater than the particular matrix element just at that pixel position. We simply use the value in the array as a threshold. If the value of the pixel (scaled into the 0-16 range) is less than the number in the corresponding cell of the matrix, plot that pixel black, otherwise, plot it white Mahmoud El-Gayyar / Fundamentals of Multimedia 22

Dithering a grayscale image of Lena". The ordereddither version a detail of Lena's right eye Mahmoud El-Gayyar / Fundamentals of Multimedia 23

Outline Black & white imags 1 bit images 8-bit gray-level images Dithering Color imags 24-bit color images 8-bit color images Popular File Formats GIF (Graphics Interchange Format) JPEG (Joint Photography Expert Group) Others Mahmoud El-Gayyar / Fundamentals of Multimedia 24

Color Image Data Types The most common data types for graphics and image file formats - 24-bit color and 8-bit color. Most image formats incorporate some variation of a compression technique due to the large storage size of image files. Compression techniques can be classified into either lossless or lossy. Mahmoud El-Gayyar / Fundamentals of Multimedia 25

In a color 24-bit image, each pixel is represented by three bytes, usually representing RGB. 24-bit Color Images This format supports 256x256x256 possible combined colors, or a total of 16,777,216 possible colors. Storage penalty: 24-bit color image would require 921.6 kb of storage without any compression (640x480). An important point: many 24-bit color images are actually stored as 32-bit images, with the extra byte of data for each pixel used to store an alpha value representing special effect information (e.g., transparency). Mahmoud El-Gayyar / Fundamentals of Multimedia 26

Histogram of Color Images Mahmoud El-Gayyar / Fundamentals of Multimedia 27

8-bit Color Images Many systems can make use of 8 bits of color information (the so-called 256 colors") in producing a screen image. Such image files use the concept of a Color Lookup Table to store color information. Mahmoud El-Gayyar / Fundamentals of Multimedia 28

8-bit Color Images Great savings in space: o 640x480 8-bit color image : 300 kb o Color image: 921.6 kb Mahmoud El-Gayyar / Fundamentals of Multimedia 29

How to Devise a Color Look-up Table Straightforward way : divide the RGB cube into equal slices in each dimension. Humans are more sensitive to R and G than to B, Shrink the R range and G range 0..255 into the 3-bit range 0..7 and shrink the B range down to the 2-bit range 0..3, thus making up a total of 8 bits. So that 8 * 8 * 4 = 256 colors are uniformly spread over the color space are available. Mahmoud El-Gayyar / Fundamentals of Multimedia 30

Outline Black & white imags 1 bit images 8-bit gray-level images Dithering Color imags 24-bit color images 8-bit color images Popular File Formats GIF (Graphics Interchange Format) JPEG (Joint Photography Expert Group) Others Mahmoud El-Gayyar / Fundamentals of Multimedia 31

Popular File Formats 8-bit GIF: one of the most important format because of its historical connection to the WWW and HTML markup language as the first image type recognized by net browsers. JPEG: currently the most important common file format. Mahmoud El-Gayyar / Fundamentals of Multimedia 32

GIF (Graphics Interchange Format) Originally developed for platform-independent image exchange via modem Limited to 8-bit (256) color images best suited for images with few distinctive colors (e.g., graphics or drawing) Lossless compression using the Lempel-Ziv-Welch (LZW) algorithm Well suited for image sequences (can have multiple images in a file) Mahmoud El-Gayyar / Fundamentals of Multimedia 33

GIF GIF Signature (6 Bytes) GIF87a attributes that belong to every image in the file. (screen height, width, and background color) termination character 0x3B hex or ';' Mahmoud El-Gayyar / Fundamentals of Multimedia 34

JPEG (Joint Photographic Experts Group) JPEG: The most important current standard for image compression. The human vision system has some specific limitations and JPEG takes advantage of these to achieve high rates of compression. JPEG allows the user to set a desired level of quality, or compression ratio (input divided by output). Image, with a quality factor Q=10%, 1.5% of the original size. Q=75% 5.6% of the original, whereas a GIF version of this image compresses down to 23.0% of uncompressed image size. Mahmoud El-Gayyar / Fundamentals of Multimedia 35

PS &PDF (Portable Document Format) Postscript is an important language for typesetting, and many high-end printers have a Postscript interpreter built into them. Postscript is a vector-based picture language, rather than pixel-based: page element definitions are essentially in terms of vectors. Postscript includes text as well as vector/structured graphics. Several popular graphics programs, such as Illustrator and FreeHand, use PostScript. Postscript language itself does not provide compression; (stored as ASCII). Another text + figures language. Adobe Systems Inc. includes LZW compression in its Portable Document Format (PDF) file format. Mahmoud El-Gayyar / Fundamentals of Multimedia 36

BMP The major system standard graphics file format for Microsoft Windows, used in Microsoft Paint and other programs. It makes use of run-length encoding compression can fairly efficiently store 24-bit bitmap images Mahmoud El-Gayyar / Fundamentals of Multimedia 37

Summary Black & white imags 1 bit images, 8-bit gray-level images Image histogram Dithering Printing (ordered dithering) Color imags 24-bit color images Quantization and compression (8-bit color images) Color Tables Popular File Formats GIF, JPEG, PDF, BMP Mahmoud El-Gayyar / Fundamentals of Multimedia 38