Graphics/Image Data Types

Slides:



Advertisements
Similar presentations
Image Data Representations and Standards
Advertisements

Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Lecture 3: Spring 2009 Graphics and Image Data Representations
Images.
Li & Drew © Prentice Hall Chapter 3 Graphics and Image Data Representations 3.1 Graphics/Image Data Types 3.2 Popular File Formats 3.3 Further Exploration.
Guilford County SciVis V106.01
V Obtained from a Guildford County workshop-Summer, 2014.
Graphics and Images September 28, Unit 3.
Welcome to a New Quarter Class Rules and Responsibilities What will be learning? 106-Static and Dynamic Visualization 105-Synthesize Data for SciVis Video-Real.
Image Compression CSC CSC Computing with Images2 How do we use fewer bytes to encode the same or similar information? Reduce redundancy Take.
File Formats The most common image file formats, the most important for cameras, printing, scanning, and internet use, are JPG, TIF, PNG, and GIF.
Image and Sound Editing Raed S. Rasheed Image Image. Digital image. – Raster images. – Vector Images. – Stereo Images. – Image File Formats Lossless.
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.
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.
1 GFI Files Graphics Interchange Format. 2 GIF History  CompuServe developed 1987 Versions 87a, V89a Because there was no standard.
An Introduction to Scanning and Storing Photographs and Graphics Bryn Jones Aug 2002
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.
Pixels Minute University Richard Fisher 2/4/2002 Richard Fisher2 PixelsPixels  Picture Element  A single point in an electronic image  The.
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,
Fundamentals of Multimedia
Prepared by George Holt Digital Photography BITMAP GRAPHIC ESSENTIALS.
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.
GRAPHICS/IMAGES INFSCI Source: Learning Web Design by Jennifer Niederst RobbinsJennifer Niederst Robbins Creating Images:  Scanning  Be aware.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
Faculty of Sciences and Social Sciences HOPE Website Development Graphics Stewart Blakeway FML 213
File Formats About graphic file formats And image compression.
Chapter 3 Graphics and Image Data Representations
Graphics and Image Data Representations Mr.Nael Aburas 1.
Chapter 3 Graphics and Image Data Representations
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.
Digital Image: Representation & Processing (2/2) Lecture-3
Graphics and Animation Multimedia Projects Part 2.
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.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
GRAPHICS. Topic Outline What is graphic. Resolution. Types of graphics. Using graphic in multimedia applications.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Web Graphics. Colours and Display Graphics and Modems 28.8kbps = 3.6 KB per second 36 KB takes 10 seconds to load. Pixels and color.
File Formats and Vector Graphics. File Types Images and data are stored in files. Each software application uses different native file types and file.
Image Compression CSC CSC Computing with Images2 Image Compression Goal: reduce redundancy –Encode the same information using fewer bits.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
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.
Pixels Minute University Richard Fisher 2/4/2002 Richard Fisher2 PixelsPixels  Picture Element  A single point in an electronic image  The.
CSC Computing with Images1 File formats for images on the web CSC 1040.
Dr. Rasha Orban CS Department. Graphics and Image Data Representations Lecture 4.
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
Graphics File Formats.
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.
GIF vs. JPEG GIF and JPEG (JPG) image formats are different. You should know which to use when. Here are some examples.
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
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
Graphics and image data representation
Sampling, Quantization, Color Models & Indexed Color
Computer Science Higher
Digital Photo editing with Photoshop
Image Formats.
Chapter 3 Graphics and Image Data Representations
Web Development A Visual-Spatial Approach
Raster Images CPSC 1030.
Fundamentals of Multimedia
Chapter 3:- Graphics Eyad Alshareef Eyad Alshareef.
File size and image quality
Saving Images from Fireworks
Graphics Basic Concepts.
Presentation transcript:

Graphics/Image Data Types The number of file formats used in multimedia continues to proliferate. For example, Table 1 shows a list of some file formats used in the popular product Macromedia Director. Table 1: Macromedia Director File Formats

Overview of Image Properties An image is composed of an array of dots, more commonly referred to as pixels (short for picture elements). One generally refers to a computer image's dimensions in terms of pixels; this is also often (though slightly imprecisely) known as its resolution. Some common image sizes are 640 × 480, 800 × 600, and 1024 × 768 pixels, which also happen to be common dimensions for computer displays.

In addition to horizontal and vertical dimensions, an image is characterized by depth. The deeper the image, the more colors (or shades of gray) it can have. Pixel depths are measured in bits, the tiniest units of computer storage; - a 1-bit image can represent two colors (often, though not necessarily, black and white). - a 2-bit image four colors. - an 8-bit image 256 colors, and so on.

To calculate the raw size of the image data before any compression takes place, one needs only to know that 8 bits make a byte. Thus a 320 × 240, 24-bit image has 76,800 pixels, each of which is 3 bytes deep, so its total uncompressed size is 230,400 bytes.

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. Next Figure shows a 1-bit monochrome image (called “Lena“ by multimedia scientists - this is a standard image used to illustrate many algorithms).

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. 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 1600 * 1200, whereas lower resolution might be 640 * 480.

Frame Buffer

Multimedia Presentation Each pixel is usually stored as a byte (a value between 0 to 255), so a 640 × 480 grayscale image requires 300 kB of storage (640 × 480 = 307, 200). Next Fig shows the Lena image again, but this time in grayscale.

Dithering which is a means of mixing pixels of the available colors together to give the appearance of other colors (though generally at the cost of some sharpness) . When an image is printed, the basic strategy of dithering is used, which trades intensity resolution for spatial resolution to provide ability to print multi-level images on 2-level (1-bit) printers.

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. Next Fig. (a) shows a grayscale image of "Lena". The ordered-dither version is shown as (b), with a detail of Lena's right eye in (c).

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 compression technique due to the large storage size of image files. Compression techniques can be classified into either lossless or lossy.

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 lookup table to store color information. - Basically, the image stores not color, but instead just a set of bytes, each of which is actually an index into a table with 3-byte values that specify the color for a pixel with that lookup table index.

Color Look-up Tables (LUTs) The idea used in 8-bit color images is to store only the index, or code value, for each pixel. Then, e.g., if a pixel stores the value 25, the meaning is to go to row 25 in a color look-up table (LUT).

24-bit Color Images In a color 24-bit image, each pixel is represented by three bytes, usually representing RGB. - This format supports 256* 256* 256 possible combined colors, or a total of 16,777,216 possible colors. - However such flexibility does result in a storage penalty: A 640*480 24-bit color image would require 921.6 kB of storage without any compression. Full-color photographs may contain an almost infinite range of color values. Dithering is the most common means of reducing the color range of images down to the 256 (or fewer) colors seen in 8-bit GIF images.

Dithering on Color Image Dithering is the process of juxtaposing pixels of two colors to create the illusion that a third color is present. A simple example is an image with only black and white in the color palette. By combining black and white pixels in complex patterns a graphics program like Adobe Photoshop can create the illusion of gray values:

Most images are dithered in a diffusion or randomized pattern to diminish the harsh transition from one color to another. But dithering also reduces the overall sharpness of an image, and it often introduces a noticeable grainy pattern in the image. This loss of image detail is especially apparent when full-color photos are dithered down to the 216-color browser-safe palette:

The same process softens the effect of reducing the number of colors in full-color images: A full color photograph Dithered to 256 color

(a) shows a 24-bit color image of \Lena", and (b) shows the same image reduced to only 5 bits via dithering. A detail of the left eye is shown in (c).

Popular File Formats • Need to store and retrieve graphical data in an efficient and logical way. • Data stored according to specific format conventions • Formats are immortal - technology evolves, new formats appear, but the old ones will still be there! • No one universal format - different formats for different purposes • You (probably) won’t need to access the formats in detail

BMP • Standard bitmap storage format for Microsoft Windows (also supported by some other non-Microsoft applications) – Never meant to be portable – Nor meant for a data interchange format across different operating systems • 1 image per file • Uses RLE (run-length encoding) – therefore uses lossless compression – original bitmap did not support compression! • Huge file sizes! – e.g. sample 470x682 photo stored as 40.3K JPG file is a 963K BMP file

GIF • Graphics Interchange Format (1987 and 1989 versions) – The format specification says it is to be pronounced “jif” • Uses a palette of up to 256 colors – not good for photographs, but great for text/diagrams • Uses LZW compression of the bitmap data – causes copyright problems (Unisys patent)! – reasonably easy to read and decompress • Supports multiple images (animation!!) • 1989 version supports transparency and interlacing – At most one color in the palette may be declared transparent

JPEG

JPEG image with low quality specified by user

PNG

TIFF

Dithering done by the browser If a reader of your Web site has his or her display monitor set to 256 colors (an increasingly rare occurrence these days), then the Web browser will display images using the 216-color browser-safe color palette. In this situation there is no way to force the browser to display a color outside the browser-safe palette. If any of your photographs, graphic design elements, or background colors use hues outside the browser-safe palette, the Web browser will automatically dither the displayed images into the browser-safe colors.

The effect of using "unsafe" colors for your major graphic elements is that readers with 256-color displays will see a lot of heavily dithered images. This may be acceptable for some visual elements on the page, but if your basic navigation buttons and background graphics are dithered, parts of the page will be hard to read and the overall effect will be amateurish: