Digital Image: Representation & Processing (2/2) Lecture-3

Slides:



Advertisements
Similar presentations
Raster Graphics 2.01 Investigate graphic image design.
Advertisements

Image Data Representations and Standards
Raster graphics. Colour depth 01 1 bit pr pixel = 2 combinations (2 1 ): 2 bits pr pixel = 4 combinations (2 2 ): bits pr pixel = 16 combinations(2.
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.
Lecture 3: Spring 2009 Graphics and Image Data Representations
Graphics on the Web CS575 Spring 2006 Dr.Abbot Student: Andre Liv.
Images.
Lossless Compression in Multimedia Data Representation Hao Jiang Computer Science Department Sept. 20, 2007.
Introduction to Computer Graphics
Guilford County SciVis V106.01
V Obtained from a Guildford County workshop-Summer, 2014.
Graphics and Animation Chapter 8. 8 Graphics in Multimedia Graphics are an element that virtually all multimedia applications include.
Photoshop: Designing Graphics for the Web Christine Vucinich & Vicki Weidler ITS Training Services 224 B Computer Building University Park, PA 16802
Manipulating Images Image A visual representation of something that is seen in real life. It can be two-dimensional or three-dimensional A visual representation.
Zinnia Bell. RAWimages are image files that have not yet processed, they contain minimally processed data from the image sensor of either a image scanner,
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
File Formats About graphic file formats And image compression.
Module Code: CU0001NI Technical Information on Digital Images Week -2.
Lecture 4 - Introduction to Computer Graphics
Chapter 3 Graphics and Image Data Representations
Graphics/Image Data Types
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
All About File Formats Mr. Butler John Jay High School Department of Technology.
Presentation Design: Graphics. More About Color “Bit depth” of colors -- This is based on the smallest unit of information that a computer understands.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Web Image Basics Comp 140 December 2. Vector Graphics Can be repositioned or resized – Will not diminish output quality Typically stored in AI, EPS, PICT.
1 Web Developer Foundations: Using XHTML Chapter 4 Key Concepts.
1 Image Formats. 2  To be able save image data for future manipulation and display we need to be able to store it in a consistent manner  Formats enable.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Information Processes and Technology Multimedia: Graphics.
Raster Graphics. An image is considered to be made up of small picture elements (pixels). Constructing a raster image requires setting the color of each.
GRAPHICS. Topic Outline What is graphic. Resolution. Types of graphics. Using graphic in multimedia applications.
2D Graphics Theory & Principles. Single Point Smallest addressable area on screen or digital image.
Types of Graphics  Vector Individual scalable objects defined by mathematical equations  Bitmap Pixels (tiny, single-colored square) in a grid Most.
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.
Graphics & Images What File Format Do I Use?. Graphics & Images …..are visual images presented on some form of media (drawings, print, web, digital video)
Multimedia. What is a graphic?  A graphic can be a: Chart Drawing Painting Photograph Logo Navigation button Diagram.
Raster Graphics 2.01 Investigate graphic image design.
Digital Images are represented by manipulating this…
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.
Graphics Concepts Presentation
Digital Image Editing Presented by John Hohn. File Formats JPEG – Joint Photographic Experts Group PNP – Portable Network Graphics GIF – Graphic Interchange.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
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.
HTTP transaction with Graphics HTML file + two graphics files.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
8th Lecture – Intro to Bitmap or Raster Images
2.01 Understand Digital Raster Graphics
2.01 Understand Digital Raster Graphics
Graphics and image data representation
2.01 Understand Digital Raster Graphics
Chapter 3 Graphics and Image Data Representations
2.01 Investigate graphic image design.
Raster Images CPSC 1030.
A computer display is made up of small squares, called pixels.
Graphics and Animation
1.01 Investigate graphic types and file formats.
2.01 Understand Digital Raster Graphics
MED 2001 Advanced Media Production
2.01 Investigate graphic image design.
COMS 161 Introduction to Computing
2.01 Understand Digital Raster Graphics
2.01 Investigate graphic image design.
Introduction to Image Analysis and Processing
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Graphics and Animation
2.01 Investigate graphic image design.
Presentation transcript:

Digital Image: Representation & Processing (2/2) Lecture-3

To discuss… Dithering Image Formats GIF Other formats Multimedia Computing (CSIT 410)

Dithering Dithering is the attempt by a computer program to approximate a color from a mixture of other colors when the required color is not available Commonly occurs when a display monitor attempts to display images specified with more colors than the monitor is equipped to handle. To approximate an image with 256 intensity levels with 2 levels (ON/OFF), each pixel in the original image must be replaced be a larger pattern of ON/OFF, such that the pattern approximates the pixel intensity Multimedia Computing (CSIT 410)

Dithering [2] Random dithering Generate a random number from 0 to 255 If it is greater than the pixel value at that point, plot the white pixel, else black pixel Repeat step 2 for each pixel in the image It is useful in reproducing very low-frequency images Multimedia Computing (CSIT 410)

Dithering [3] Multimedia Computing (CSIT 410)

Dithering [4] We can instead use an n x n matrix of ON/OFF bits Can represent n2+1 levels, the pattern is for a 2 x 2: Let the original image has 256 levels Re map it into n2+1 levels (0,1,2,3,4) If the remapped value is 0, print nothing If the remapped value is 4 print all dots ● ● ● ● Multimedia Computing (CSIT 410)

Dithering [5] Number of levels can be increased original image Number of levels can be increased If the pattern is 4 x 4 large, the image is 16 times larger. Ordered dither algorithm overcomes this problem (Result of Ordered dither) Multimedia Computing (CSIT 410)

Dithering [6] A n x n matrix of thresholds is defined. It is called the dither pattern or dither matrix. The levels of gray of the original image is divided into equal intervals of length [original levels of gray/ n2 + 1 ]. These intervals are mapped into the range [0, n2 ] A set of values from the range [0. n2 - 1 ] is selected for the matrix. The dither matrix is slide over the image, n pixels in the x direction and n pixels in the y direction. The values of the dither matrix, over the actual pixel, supply the threshold. You want to avoid a unique threshold for every pixel. Example: See notes. Multimedia Computing (CSIT 410)

Ordered dither algorithm Dithering [7] begin for x=0 to x max for y=0 to ymax i=x mod n j= y mod n if I(x,y) > D(i,j) O(x,y) = 1 else O(x,y) = 0 end if end for end Ordered dither algorithm I(x,y) = input image D() = dither matrix entry O(x,y)= output image Multimedia Computing (CSIT 410)

Image Formats - GIF Stands for Graphics Interchange Format The first graphic file type recognized by early web browsers Originally developed by CompuServe, to distribute images across network Available in two versions GIF87a GIF89a Multimedia Computing (CSIT 410)

Image Formats – GIF Features[2] LZW compression, a loss less compression, is used . It is copyright protected. A new standard, PNG, is developed based on free compression algorithm. Limited color palette A GIF image can contain 2, 4, 8, 16, 32, 64, 128 or 256 colors Transparency Transparency is the feature of the GIF89a format which allows for the specification of one of the colors in the palette to be ignored while processing the image for display purpose Multimedia Computing (CSIT 410)

Image Formats – GIF Features[3] Interlacing It is a mechanism that makes images appear faster on-screen First pass has pixel rows 1, 9, 17, etc (every eighth row) Second pass has rows 5, 13, 21, etc. (every remaining fourth row) Third pass has rows 3, 7, 11, 15, etc. (every remaining odd row) Fourth pass has rows 2, 4, 6, etc. (all the even-numbered rows) Animation Allows timed display of images in sequence, giving the effect of animation Multimedia Computing (CSIT 410)

Image Formats – GIF87a vs GIF89a [4] Supports LZW Compression Interlacing Limited to 256 colors Multiple image storage GIF89a All the features in GIF87a Delay times, image replacement parameters Back ground transparency Animation Multimedia Computing (CSIT 410)

Image Formats – GIF87a [5] GIF 87a file format Repeated n times GIF Signature 6 bytes Screen Descriptor 7 bytes GIF 87a file format Global Color Map Image Descriptor Repeated n times Local color map Raster Area GIF Terminator Multimedia Computing (CSIT 410)

Image Formats – GIF87a [6] Screen Width GIF Screen Descriptor 7 6 5 4 3 2 1 0 1 2 Screen Width GIF Screen Descriptor 3 4 Screen Height m=1 => Global color map follows 5 m cr pixel cr+1 => #bits of color resolution pixel + 1 => bits per image 6 Back Ground 7 0 0 0 0 0 0 0 0 Byte # Multimedia Computing (CSIT 410)

Image Formats – GIF87a [7] GIF Color Map 1 2 3 4 5 . R intensity 1 2 G intensity GIF Color Map 3 B intensity 4 R intensity 5 G intensity . Length of table = 2^(pixel + 1) Multimedia Computing (CSIT 410)

Image Formats – GIF87a [8] 7 6 5 4 3 2 1 0 Image Left Image Right 7 6 5 4 3 2 1 0 0 0 1 0 1 1 0 0 Image Left Image Right Image Width Image Height 1 2 3 4 5 6 7 8 9 10 Image Separator Character Start of image in pixels from left side of the screen Start of image in pixels from top of the screen Width of the image in pixels Height of the image in pixels m=0 Use Global Color map, ignore pixel m=1 Local color map follows, use pixel i= 0/1 image in sequential / interlaced order pixel+1 #bits per pixel for this image m i pixel GIF Image Descriptor Multimedia Computing (CSIT 410)

Image Formats – GIF [8] When to use GIF? Images with areas of flat color, such as logos, line art, icons & cartoon-like illustrations Not much suited for photographic images Suited for adding simple animation Whenever transparency in image is required (even though PNG supports this feature, not all web browsers supports it) Multimedia Computing (CSIT 410)

Image Formats – PNG Portable Network Graphics Developed in early 1995 as nonproprietary alternative to GIF Three advantages over GIF Alpha channels Gamma correction 2D Interlacing Supports 48 bit color Supports lossless compression Does not support multiple image format/ animation like GIF 2D Interlacing: Displays progressively pixels in two-dimensional fashion, a few at a time over seven passes through each 8x8 block of an imagel Multimedia Computing (CSIT 410)

Image Formats – JPEG Widely used image format Compression standard used is JPEG, Joint Photographic Experts Group Created by the working group, JPEG, of ISO Compression is lossy For a Quality factor 75%, JPEG achieves image size around 6% of original size Multimedia Computing (CSIT 410)

Image Formats – Other Formats TIFF (Tagged Image File Format) EXIF (Exchange Image File) PS & PDF WMF (Windows Meta File) BMP (BitMaP) PAINT & PICT (MacPaint & MacDraw programs in Mac system) Multimedia Computing (CSIT 410)

Reference Chapter 3 Multimedia Computing (CSIT 410)