1. Digital Representation of Media There are established ways of representing images, video, animation, sound and text in bits. Media data may be represented.

Slides:



Advertisements
Similar presentations
2.01 Investigate graphic image design.
Advertisements

Image Data Representations and Standards
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Graphics CS 121 Concepts of Computing II. What is a graphic? n A rectangular image. n Stored in a file of its own, or … … embedded in another data file.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
SWE 423: Multimedia Systems Chapter 4: Graphics and Images.
Introduction to Computer Graphics
Vector vs. Bitmap SciVis V
The University of Adelaide Picture Perfect: Image Formats and Resolution Peter Murdoch March 2014 PREPARING GOOD LOOKING DOCUMENTS.
Vector Graphics 2.02 Understand Digital Vector Graphics.
V Obtained from a summer workshop in Guildford County July, 2014
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Digital Images. Scanned or digitally captured image Image created on computer using graphics software.
 Scanned or digitally captured image  Image created on computer using graphics software.
Graphics: Creating Images Chapter 8, Exploring the Digital Domain.
MULTIMEDIA TECHNOLOGY SMM 3001 MEDIA - GRAPHICS. In this chapter how the computer creates, stores, and displays graphic images how the computer creates,
Fundamentals Rawesak Tanawongsuwan
Graphics.
1 Bitmap Graphics It is represented by a dot pattern in which each dot is called a pixel. Each pixel can be in any one of the colors available and the.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Graphics and Image Data Representations Mr.Nael Aburas 1.
Lecture 4 - Introduction to Computer Graphics
Chapter 3 Graphics and Image Data Representations
Simple Graphics. Graphics Used in PowerPoint, Web pages and others Basic Knowledge drawing change of colour, shape and others acquiring, video camera,
Graphics/Image Data Types
Vector vs. Bitmap
Bitmap Vs. Vector Graphics. To create effective artwork, you need to understand some basic concepts about vector graphics versus bitmap images, resolution,
1 Computer Graphics Part 2: Images. 2 What is an image?  An image is the graphical and visual representation of some information that can be displayed.
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.
Computer Concepts 2014 Chapter 8 Digital Media. 8 Chapter Contents  Section B: Bitmap Graphics  Section C: Vector and 3-D Graphics Chapter 8: Digital.
Information Processes and Technology Multimedia: Graphics.
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 3 This presentation © 2004, MacAvon Media Productions Introduction to Computer Graphics.
GRAPHICS. Topic Outline What is graphic. Resolution. Types of graphics. Using graphic in multimedia applications.
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
CS- 375 Graphics and Human Computer Interaction Lecture 1: 12/4/1435 Fundamental Techniques in Graphics Lecturer: Kawther Abas.
Graphics workshop Library and Information Services University of St Andrews.
© Anthony J. Nowakowski, Ph.D. GRAPHICAL MEDIA EDC 601 Instructional Technologies © Anthony J. Nowakowski, Ph.D. “Graphics help to display and to clarify.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify bitmap and vector graphic.
Graphics and Images Graphics and images are both non-textual information, that can be displayed and printed. These images may appear on screen as well.
By Courtney Field Creative digital graphics. Types of graphics and examples There are a number of different types of graphics file formats. Each type.
Chapter 2 File Format Objectives (1 of 2) Identify the difference between vector based graphics and bitmap-based graphics Clarify 3 types of vector programs.
Multimedia Basics (1) Hongli Luo CEIT, IPFW. Topics r Image data type r Color Model : m RGB, CMY, CMYK, YUV, YIQ, YCbCr r Analog Video – NTSC, PAL r Digital.
Digital Media Dr. Jim Rowan ITEC So far… We have compared bitmapped graphics and vector graphics We have discussed bitmapped images, some file formats.
 Scanned or digitally captured image  Image created on computer using graphics software.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
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.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Guilford County SciVis V104.03
Mohammed AM Dwikat CIS Department Digital Image.
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.
Graphics Basic Concepts 1.  A graphic is an image or visual representation of an object.  A visual representation such as a photo, illustration or diagram.
Main characteristics of Vector graphics  Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and.
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.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
DIGITAL MEDIA FOUNDATIONS
Graphics and image data representation
Vector vs. Bitmap.
CSI-447: Multimedia Systems
Chapter 3 Graphics and Image Data Representations
Presenter Name: Mahmood A.Moneim Supervised By: Prof. Hesham A.Hefny
IMAGES.
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
Digital Images.
Introduction to Computer Graphics
Multimedia System Image
Lecture 4 - Introduction to Computer Graphics
Presentation transcript:

1

Digital Representation of Media There are established ways of representing images, video, animation, sound and text in bits. Media data may be represented as a textual description in a suitable language, or as binary data with specific structural form.  Images come in many different format : - Photographs- Paintings- Drawings - Symbols- Corporate Logos- Flags - Maps- Diagrams- Graphs  Images can be used to : - Provide facts.- Explain a process. - Pinpoint locations.- Tell stories. - Compare.- Identify. 2

Computer Graphics Vector Graphics Bitmap Images Combining vectors and bitmaps 3

Pixel Images Images are displayed as arrays of pixels and represented using an internal model. The process of generating a pattern of pixels from the model is called rendering. Images may be modeled as bitmaps graphics or vector graphics. 4 Also known as pel is the smallest unit that can be drawn

Image Representation Bitmap techniques or Bitmap Graphics – Pixel-by-pixel representation of the color – Wide range of colors and shades in complex images. Vector techniques or Vector Graphics - Comprise mathematical representations : Stored as a mathematical description of a collection of individual lines, curves and shapes making up the image – e.g. line = two end points - Displaying a vector image – requires some computation to be performed in order to interpret the model and generate an array of pixel to be displayed – The process of interpreting the vector description known as rasterizing – Scalable – Small file size 5

1- Vector Graphics 6 Main characteristics of Vector graphics: – Vector graphics provide an elegant way of constructing digital images (diagrams, technical illustration and charts) – Compact – Scalable – Resolution independent – Easy to edit – Vectors are also well suited to use in animation – No background – Cartoon-like – Inappropriate for photo-realistic images Common formats for representing vector graphics include PDF, SVG, and SWF.

Vector Graphics 7 Points can be identified by coordinates Lines and shapes can be described by equations Approximating abstract shapes on a grid of finite pixels leads to `jaggies‘ Anti-aliasing can offset this effect Bezier curves are drawn using four control points Bezier curves can be made to join together smoothly into paths Paths and shapes can be stroked and filled

Vector Graphics 8 Geometrical transformations translation, scaling, rotation, reflection and shearing - can be applied easily to vector shapes Three approaches to 3-D modeling constructive solid geometry free-form modeling procedural modeling 3-D rendering models the effect of light and texture, as well as displaying the modeled objects in space Ray tracing and radiosity are computationally expensive rendering algorithms that can produce photo-realistic results

Vector Graphics Tools 9 Adobe Illustrator CorelDraw Macromedia FreeHand XARA X Most can export your work to bitmap images

Metafile Format Used for vector graphics Can embed bitmap images Collection of Graphics Device Interface (GDI) functions “Rasterization” process Default extension.WMF Less space Structure header size of the file # of drawing objects list of records 10

Other Common Vector File Formats CGM : Computer Graphics Meta File DRW : Micrographics Designer file format CDR : Corel DRAW native format HPGL : HP plotter print format DXF : - Drawing Exchange Files - Created by Autodesk for AutoCAD EPS : - Encapsulated PostScript Files - Developed by Adobe Systems for compatibility with PostScript lang - Device independent - May contain a TIFF or WMF image for screen presentation 11

3-D Graphics 2D: define shapes by paths 3D: define objects by surfaces Hierarchical modeling A bicycle consists of a frame, two wheels, … 12

2- Bitmapped Images Conceptually, bitmapped images are much simpler than vector graphics because there is no need for any mathematical modeling of shapes Images are not restricted to those that can be constructed from a small repertoire of drawing primitives, so a much broader range of visual possibilities is available. Above all, bitmapped representations can be used to record photographs. It is rarely necessary to compute and assign the color value for each pixel explicitly. Many images are created from external sources, such as digital cameras or scanners, which use hardware to sense colors and create the array of values. 13

3- Resolution Resolution – Image resolution is the number of pixels in a digital image. – Device resolution is also a measure of how finely a device approximates continuous images using finite pixels – Higher resolution always yields better quality. – Different monitors can have different resolutions The concept of resolution is simple, but it differ according to where it is used. 14

3-1 : Image Resolution Bitmapped images is an array of pixel values, so it has pixel dimensions (width & height). Unlike a printed photograph or original artwork on paper, a bitmapped image has no physical dimensions The physical size of an image when it is displayed will depend on the pixel density (dpi or ppi) of the device is to be displayed on. The equation to find the physical dimension of an image is: 15

Example For an image that has a logical pixel dimensions of 198 pixel wide and 149 high and to be displayed on a screen with resolution of 72 dpi, What will be the image size on the screen? 16

3-2 : Which type of image to use? You have to take in your consideration the following factors to decide which type to use: – Memory requirements – Visual characteristics – Possibilities for transformation & effects – The most important factor is the source of the image Photographs from digital camera, screen shots, scanned images and captured video frames are all inherently bitmaps- because of the way the hardware from which they originate works. Charts, diagrams and other data visualizations generated by a program from data usually, but not invariably, use vector graphics 17

4- Graphics/Image Data Types File importFile exportNative ImagePaletteSoundVideoAnimationImageVideo.BMP,.DIB.GIF,.JPG,.PICT,.PNG.PNT,.PSD.TGA,.TIFF.WMF.PAL,.ACT.AIFF,.AU,.MP3,.WAV.AVI,.MOV.DIR,.FLA.FLC,.FLI.GIF,.PPT.BMP.AVI,.MOV.DIR,.DXR,.EXE 18 Table 1 : Macromedia Director file formats

5- Multimedia Presentation Bitmap: The two-dimensional array of pixel values that represents the graphics/image data. Image resolution refers to the number of pixels in a digital image (higher resolution always yields better quality). – Fairly high resolution for such an image might be 1,600 x 1,200, whereas lower resolution might be 640 x 480. Frame buffer: Hardware used to store bitmap. – Video card (actually a graphics card) is used for this purpose. – The resolution of the video card does not have to match the desired resolution of the image, but if not enough video card memory is available then the data has to be shifted around in RAM for display. 19

Image file size = M x N x B where: M = width N = height B = number of bits per pixel (bit depth) Note: Image file size is normally expressed in bytes or kbytes not bits. 20

5-1 : Bit depth Bit depth quantifies how many unique colors are available in an image's color palette in terms of the number of 0's and 1's, or "bits," which are used to specify each color. This does not mean that the image necessarily uses all of these colors, but that it can instead specify colors with that level of precision. 21

5-2 :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. Fig. 1 shows a 1-bit monochrome image (called “Lena” by multimedia scientists — this is a standard image used to illustrate many algorithms). 22 Fig. 1: Monochrome 1-bit Lena image.

5-2-1 : 1-Bit Images Calculation What is the image file storage size for a 640 x 480 monochrome image? Solution: image size = width(M) × height(N) × bit depth(B) image size = 640 × 480 × 1 8 = bytes 1024 = 37.5 kB 23 Divide by 8 because there are 8 bits in a byte Divide by 1024 because there are 1024 bytes in 1KB

a - 8-Bit Gray-Level Images Each pixel takes 1 byte (8 bits) of storage resulting in 256 different states. Each pixel has a gray-value between 0 and 255. If these states are mapped onto a ramp of greys from black to white the bitmap is referred to as a greyscale image. By convention 0 is normally black and 255 white. The grey levels are the numbers in between, for example, in a linear scale 127 would be a 50% grey level. 24

Fig. 2 shows the Lena image again, but this time in grayscale. What is the image file storage size for a 640 x bit grayscale image? Solution: image size = width(M) × height(N) × bit depth(B) image size = 640 × 480 × 1 = bytes 1024 = 300 kB 25 Fig.2 : Grayscale image of Lena

Comparison 26 Grayscale image of Lena. Monochrome 1-bit Lena image Bytes Bytes

Color Image Data Types The most common data types for graphics and image file formats - 24-bit color and 8-bit color. Some formats are restricted to particular hardware/operating system platforms, while others are “cross-platform” formats. Even if some formats are not cross-platform, there are conversion applications that will recognize and translate formats from one system to another. 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. 27

Compression Compression: Any operation that can be performed on data to reduce the amount of storage required to store (represent) it. Decompression: The inverse of compression operation where data will be restored to a form in which it can be displayed or used. Codec (compressor/decompressor): The software that performs compression and decompression especially for video and audio data. 28

Classes of Compression Algorithm Lossless Compression: The property that it is always possible to decompress data that has been compressed and retrieve an exact copy of the original data Lossy Compression: The property that some data has been discarded in the compression process and cannot be restored, so that the decompressed data is only an approximation to the original. 29

b- 24-Bit Color Images In a color 24-bit image, each pixel is represented by three bytes, usually representing RGB. – This format supports 256 x 256 x 256 possible combined colors, or a total of 16,777,216 possible colors. – However such flexibility does result in a storage penalty: A 640 x bit color image would require 900 kB of storage without any compression. 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). The figure on the next slide shows the image forestfire.bmp, a 24-bit image in Microsoft Windows BMP format. Also shown are the grayscale images for just the Red, Green, and Blue channels, for this image. 30

31 24 bit image “forestfire.bmp”From R channel From G channelFrom B channel

24-bit Color Images Calculation What is the image file storage size for a 640 x bit color image? Solution: image size = width(M) × height(N) × bit depth(B) image size = 640 × 480 × 3 = bytes 1024 = 900 kB 32 there are 3 bytes in 24-bit