Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-

Slides:



Advertisements
Similar presentations
Images Images are a key component of any multimedia presentation.
Advertisements

Introduction to Computer Graphics ColorColor. Specifying Color Color perception usually involves three quantities: Hue: Distinguishes between colors like.
A Digital Imaging Primer Nick Dvoracek Instructional Resources Center University of Wisconsin Oshkosh.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
School of Computing Science Simon Fraser University
Colour Theory and Application B.Sc. (Hons) Multimedia ComputingMedia Technologies.
Multi-media Graphics JOUR 205 Color Models & Color Space 5 ways of specifying colors.
What is color for?.
Media: Digital Image. Representing Digital Images ● Pixel ● Resolution ● Aspect ratio.
Images and colour Colour - colours - colour spaces - colour models Raster data - image representations - single and multi-band (multi-channel) images -
Image Representation.
CSc 461/561 CSc 461/561 Multimedia Systems Part A: 2. Image.
1 Perception. 2 “The consciousness or awareness of objects or other data through the medium of the senses.”
Introduction to Computer Graphics
Graphical images Bit-mapped (or raster-based) image: Matrix describing the individual dots that are the smallest elements (pixels) of resolution on a computer.
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Visual Representation of Information
Colour Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman
Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 6 This presentation © 2004, MacAvon Media Productions Colour.
Digital Images The digital representation of visual information.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Image Processing Lecture 2 - Gaurav Gupta - Shobhit Niranjan.
Digital Images Chapter 8, Exploring the Digital Domain.
Simple Graphics. Graphics Used in PowerPoint, Web pages and others Basic Knowledge drawing change of colour, shape and others acquiring, video camera,
07: Color in Interactive Digital Media
I-1 Steps of Image Generation –Create a model of the objects –Create a model for the illumination of the objects –Create an image (render) the result I.
Colours and Computer Jimmy Lam The Hong Kong Polytechnic University.
Introduction to Interactive Media Interactive Media Components: Graphics.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Color. There are established models of color, each discipline uses it own method for describing and discussing color intelligently.
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.
Color and Resolution Introduction to Digital Imaging.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Computer Graphics: Programming, Problem Solving, and Visual Communication Steve Cunningham California State University Stanislaus and Grinnell College.
GRAPHICS. Topic Outline What is graphic. Resolution. Types of graphics. Using graphic in multimedia applications.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
Graphics. Graphic is the important media used to show the appearance of integrative media applications. According to DBP dictionary, graphics mean drawing.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Web graphics Discussion Session August 16, 2000 Discussion Session August 16, 2000.
By Courtney Field Creative digital graphics. Types of graphics and examples There are a number of different types of graphics file formats. Each type.
Computer Graphics An Introduction Jimmy Lam The Hong Kong Polytechnic University.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Lecture 7: Intro to Computer Graphics. Remember…… DIGITAL - Digital means discrete. DIGITAL - Digital means discrete. Digital representation is comprised.
A color model is a specification of a 3D color co-ordinate system and a visible subset in the co-ordinate System within all colors in a particular color.
Ch 6 Color Image processing CS446 Instructor: Nada ALZaben.
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.
Digital Image Processing In The Name Of God Digital Image Processing Lecture6: Color Image Processing M. Ghelich Oghli By: M. Ghelich Oghli
Introduction to Computer Graphics
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
Images.
Resolution The resolution of an image is determined by the number of individually addressable points that make up the image, whether it is the number.
Fall UI Design and Implementation1 Lecture 6: Output.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Chapter 4: Color in Image and Video
Scanner Scanner Introduction: Scanner is an input device. It reads the graphical images or line art or text from the source and converts.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Mohammed AM Dwikat CIS Department Digital Image.
1 of 32 Computer Graphics Color. 2 of 32 Basics Of Color elements of color:
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
DIGITAL MEDIA FOUNDATIONS
Half Toning Dithering RGB CMYK Models
Sampling, Quantization, Color Models & Indexed Color
Binary Representation in Audio and Images
Raster Images CPSC 1030.
LET’S LEARN ABOUT GRAPHICS!
COMS 161 Introduction to Computing
Saving Images from Fireworks
Representing Images 2.6 – Data Representation.
Chapter 2 Data Representation.
Color Model By : Mustafa Salam.
Presentation transcript:

Graphics File Formats

2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray- level or color of set of pixels

Graphics File Formats3 Types of Formats n Bitmap –TIFF, GIF, JPEG n Vector –AutoCAD DXF n Metafile –Can contain both bitmap and vector data in the same file –Macintosh PICT

Graphics File Formats4 Types of Formats n Animation –TDDD, TTDDD n Multimedia –Apple QuickTime –MPEG

Graphics File Formats5 Types of Formats n 3D –Descriptions of shape and color of 3D object models (scene elements) –Models placed in scenes with lights and cameras –Autodesk’s DXF –Used by rendering programs like Autodesk’s 3D Studio

Graphics File Formats6 Types of Formats n VRML –Hybrid of 3D graphics and HTML n Audio n Video n Fonts

Graphics File Formats7 Pixels and Coordinates

Graphics File Formats8 Display n Fewer colors than device can display

Graphics File Formats9 Display n More colors than device can display

Graphics File Formats10 Display n Quantization artifacts –Banding –Moire patterns –New colors not present in image

Graphics File Formats11 Palettes n 1-dimensional array of color values –Color map –Index map –Color table –Look-up table n Bitmap data in a file stored as series of index values –Pseudo-color storage

Graphics File Formats12 Palettes n Can easily change, say, all red pixels to green

Graphics File Formats13 Palettes n Palette element –24 or 32 bits (0,0,0)(255,255,255)(255,0,0)(0,255,0)(0,0,255)(255,255,0)(0,255,255)(255,0,255)(128,0,0)(0,128,0)(0,0,128)(128,128,0)(0,128,128)(128,0,128)(128,128,128)(255,128,128)

Graphics File Formats14 Palettes n 320  200 image with 3 bytes of color information per pixel and up to 256 colors –Image without palette would take 320*200*3 bytes of storage, or 192,000 bytes

Graphics File Formats15 Palettes n 320  200 image with 3 bytes of color information per pixel and up to 256 colors –Image with 1 byte palette would take 320*200* *3 (length of palette) bytes of storage, or 64,768 bytes –For small amounts of data, palette length could outweigh savings in color encoding

Graphics File Formats16 Color Spaces n Composite colors are defined by specifying three values for amounts of fundamental colors, or color channels n Color is a point in color space

Graphics File Formats17 Color Spaces n RGB –Red, green, and blue –(R,G,B) (0%, 0%, 0%) is black (100%, 100%, 100%) is white (50%, 50%, 50%) is light gray (100%, 0%, 0%) is red (0%, 100%, 0%) is green (0%, 0%, 100%) is blue

Graphics File Formats18 Color Spaces n RGB –24 bit RGB n Range is (0, 0, 0) is black (255, 255, 255) is white (127, 127, 127) is light gray (255, 0, 0) is red (0, 255, 0) is green (0, 0, 255) is blue

Graphics File Formats19 Color Spaces n Truecolor –Human eye can distinguish 2 24 colors –Device equal to or exceeding this is said to display truecolor –No palette needed n First byte is R, second byte is G, third byte is B

Graphics File Formats20 Color Systems n Additive color systems –Adding colors to black creates new colors –The more colors that are added, the closer to white we get –Presence of all colors creates white, while absence of all colors creates black –Additive color environments are self- luminous n Color on monitors

Graphics File Formats21 Color Systems n Subtractive color systems –Primary colors subtracted (absorbed) from white to create new colors (reflected) –The more colors that are subtracted, the closer to black we get –Presence of all primary colors creates black, while absence of all primary colors creates white –Subtractive color environments are reflective n Color on paper

Graphics File Formats22 Color Systems n RGB –Additive –Most widely used –For graphics monitors

Graphics File Formats23 Color Systems n CMY –Cyan-Magenta-Yellow –Subtractive –Used by most laser and ink-jet printers –CMYK n K stands for black, which is treated independently n Glossy magazines –A dot of composite color is a grouping of four dots, each one a CMYK color

Graphics File Formats24 Color Systems n HSV –Hue-Saturation-Value –Hue n Specifies color –Saturation n Called chroma n Refers to amount of white in a hue –Fully saturated hue contains no white and is pure –Red hue with 50% saturation is pink

Graphics File Formats25 Color Systems n HSV –Value n Called brightness n How much light color emits n Hue with high value is very bright n Hue with low value is black –Color system used by painters n Add white, black, and gray to pure pigments to create tints, shades, and tones

Graphics File Formats26 Color Systems n HSV n Tints –A pure, fully saturated color combined with white n Shade –A pure, fully saturated color combined with black n Tone –A pure, fully saturated color combined with black and white (gray) n Saturation is the amount of white added n Value is the amount of black added n Hue is the color that is added to

Graphics File Formats27 Overlays and Transparency n Images are often overlaid on live video sources at rendering time –On TV, still images are shown next to live talking heads on the news n Normal images are opaque n To allow image overlay, some means must exist to specify transparency of an image, an image area, or an image pixel

Graphics File Formats28 Overlays and Transparency n Add overlay bit to image pixel value –When bit is set, rendering application ignores those pixel values n A rendering application can selectively toggle overlay bit in all pixel values of a given color –Person standing in front of a contrasting, uniformly colored background screen of a color which doesn’t appear elsewhere

Graphics File Formats29 Overlays and Transparency n A rendering application can selectively toggle overlay bit in all pixel values of a given color –Rendering application can toggle overlay bits of all pixels of this background color, leaving an image of the person cut out from the background –This cut-out image can be overlaid on any other image – Chromakeying n 256 levels of transparency

Graphics File Formats30 Bitmap Files n Image data + header information –Raw format files n Just image data n Organization –Header Bitmap data

Graphics File Formats31 Bitmap Files n Organization –Header Bitmap data Footer –Header Palette Bitmap data Footer

Graphics File Formats32 Bitmap Files n Organization n Header Bitmap data Palette n Header Palette Scan line table Color correction table (here) Bitmap data Color correction table (or here) Footer

Graphics File Formats33 Bitmap Files n Organization –Header Palette Bitmap index Bitmap 1 data … Bitmap N data Footer

Graphics File Formats34 Bitmap Files n Organization –Header Palette Bitmap index Palette 1 Bitmap 1 data Palette 2 Bitmap 2 data … Palette N Bitmap N data Footer

Graphics File Formats35 Bitmap Files n Header –Binary or ASCII data –Composed of fixed fields –Format of header varies –Types of fields n File identifier n File version n Number of lines per image n Number of pixels per line

Graphics File Formats36 Bitmap Files n Header –Types of fields n Number of bits per pixel n Number of color planes n Compression type n X-origin of image n Y-origin of image n Text description n Unused space

Graphics File Formats37 Bitmap n Header –File identifier n Unique identifier which identifies the format –GIF –File version n For GIF, ‘87a’ or ‘89a’ –Number of lines per image n Image length n Image height n Number of scan lines

Graphics File Formats38 Bitmap n Header –Number of pixels per line n Image width n Scan line width –Number of bits per pixel n Per color plane n Number of bytes per pixel is pixel depth –X and Y origins n Indicates where image lies on output device

Graphics File Formats39 Color Correction Table n Information to help rendering application in displaying an image on a device different from the one assumed by the creator application

Graphics File Formats40 Scan-Line Table n An array of offset values used to index the location of each scan line n Each offset value indicates the starting position of each scan line