Getting Image Data Image Data Files 11/15/2018

Slides:



Advertisements
Similar presentations
Digital Image Processing #HW1 -Extraction of Bitmap Header File -Manipulation of Image Pixel Information Contact Information Tzu-Jui Wang ( 王子睿 ) Visual.
Advertisements

Measurements in Fluid Mechanics 058:180 (ME:5180) Time & Location: 2:30P - 3:20P MWF 3315 SC Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor: Lichuan.
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
Eleven colors and rasters. Color objects Meta represents colors with color objects You can create a color by saying: [color r g b] r: amount of red (0-255)
Image Representation.
Eleven colors and rasters. Color objects Meta represents colors with color objects You can create a color by saying: [color r g b] r: amount of red (0-255)
5. 1 JPEG “ JPEG ” is Joint Photographic Experts Group. compresses pictures which don't have sharp changes e.g. landscape pictures. May lose some of the.
How Images are Represented Bitmap images (Dots used to draw the image) Monochrome images 8 bit grey scale images 24 bit colour Colour lookup tables Vector.
Bitmapped Images 27 th November 2014 With Mrs
1 Internet Graphics. 2 Representing Images  Raster Image: Images consist of “dots” of color, not lines  Pixel: Picture element-tiny rectangle  Resolution:
01/31/02 (C) 2002, UNiversity of Wisconsin, CS 559 Last Time Color and Color Spaces.
CS559-Computer Graphics Copyright Stephen Chenney Image File Formats How big is the image? –All files in some way store width and height How is the image.
Chapter 2 Data Representation. Define data types. Visualize how data are stored inside a computer. Understand the differences between text, numbers, images,
Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
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.
Measurements in Fluid Mechanics 058:180:001 (ME:5180:0001) Time & Location: 2:30P - 3:20P MWF 218 MLH Office Hours: 4:00P – 5:00P MWF 223B-5 HL Instructor:
Bobby Bodenheimer CS 258 Introduction to Graphics Fall 2003 The Tiff Image Specification.
Image Processing Example of Digital image Fine name: F_01.JPG Type of file:JPEG Image Width: 512 Height:768 Resolution:96 Bit Depth:24 Size:46,744 bytes.
September 21, COMPUTER VISION WEB PAGE IS UP !! OR Simply go to computer science homepage.
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 Imaging Techniques for Flow and Motion Measurement Lecture 2 Lichuan Gui University of Mississippi 2011 Digital Image & Image Processing.
Digital Image Processing HW1 Yi-Chun Wei Visual Communications Lab National Central University Mar. 2, 2012.
Multimedia Technology Image Technology Krich Sintanakul Multimedia and Hypermedia.
Digital Media Lecture 4.1: Image Encoding Practice Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
ECE291 Lecture 12 Mode 13h Graphics. ECE 291 Lecture 12Page 2 of 27 Lecture outline Color theory Video Hardware Mode 13h Graphics File Formats.
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.
111/17/ :24 UML Solution Involves Selection of Discrete Representation Values.
ECE291 Computer Engineering II Lecture 15 Josh Potts University of Illinois at Urbana- Champaign.
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.
Computer Vision Introduction to Digital Images.
CS1033 Pixel and Resolution
Why a bitmap (.bmp), not a.jpg? If you cannot save a.bmp, make it an uncompressed.tif. Compression (of this 8-bit 397,000 pixel image): none (397kb memory)medium.
Color Web Design Professor Frank. Color Displays Based on cathode ray tubes (CRTs) or back- lighted flat-screen Monitors transmit light - displays use.
COMPUTER GRAPHICS. Once you scan an image or take a picture with your digital camera, it becomes digitized. Made up of hundreds of thousands of pixels.
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
CS 101 – Sept. 14 Review Huffman code Image representation –B/W and color schemes –File size issues.
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.
2D Output Primitives Points Lines Circles Ellipses Other curves Filling areas Text Patterns Polymarkers.
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.
Data Representation. How is data stored on a computer? Registers, main memory, etc. consists of grids of transistors Transistors are in one of two states,
Digital Media Lecture 4.2: Image Encoding Practice Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
File formats bitmap and vector. Bitmap or raster: rectangular array of picture elements (pixels)  Example with height and width notations.
Mohammed AM Dwikat CIS Department Digital Image.
Multimedia and weBLOGging Grade 7-9 | Cahaya Bangsa Classical School (C) 2010 Digital Media Production Facility 03 - Still Picture 01 – Basics.
Red Green Blue (RGB) Colour conversions Y and RGB Link In the images, the lighter the colour intensity (Red, Green, Blue), the more the contribution.
Visual Info Processing Programming Guide
AP CSP: Pixelation – B&W/Color Images
Representing images.
Binary Notation and Intro to Computer Graphics
Color Color is one of the most interesting aspects of both human perception and computer graphics. In principle, a display needs only three primary colors.
Binary Representation in Audio and Images
Visual Info Processing Programming Guide (More Details)
Digital Media Lecture 4.1: Image Encoding Practice
U2L4 Encoding Color Images
Raster Images CPSC 1030.
GRAPHICS Source:
Images in Binary.
- orange white green - cyan - red - blue Example 1 24 bit RGB
Chapter 2 Data Representation.
Morphological Image Processing
COMS 161 Introduction to Computing
Digital Image Processing
Programming Textures Lecture 15 Fri, Sep 28, 2007.
- orange white green - cyan - red - blue Example 1 24 bit RGB
"Digital Media Primer" Yue-Ling Wong, Copyright (c)2013 by Pearson Education, Inc. All rights reserved.
Year 8 Unit 2 Bitmap Graphics
Presentation transcript:

Getting Image Data Image Data Files 11/15/2018 Copyright Gene A Tagliarini, PhD

Copyright Gene A Tagliarini, PhD Common Issues Identifying the image file type File organization Data compression Structural information How many sub-images How are they to be rendered Notations 11/15/2018 Copyright Gene A Tagliarini, PhD

Typical File Organization Header File identifier Image parameters (height, width, layers, compression scheme, etc.) Data Color table Explicit sample data 11/15/2018 Copyright Gene A Tagliarini, PhD

Copyright Gene A Tagliarini, PhD Example 1: ARF Files 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 1: ARF Files (cont’d) Header Contains 32 bytes (here indexed 0-31) Bytes 8-11 represent the image height Bytes 12-15 represent the image width Data A single linear list of (height * width) pixel intensities 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 1: ARF Files (cont’d) How large would a file be? Assume Width = 640 Height = 480 Pixel intensities from 0-255 (fit in an unsigned byte) Header = 32 bytes File size = 307,232 bytes = 640*480 + 32 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 1: ARF Files (cont’d) 11/15/2018 Copyright Gene A Tagliarini, PhD

What about color image files? 11/15/2018 Copyright Gene A Tagliarini, PhD

Copyright Gene A Tagliarini, PhD A Color Vision Model 11/15/2018 Copyright Gene A Tagliarini, PhD

Copyright Gene A Tagliarini, PhD Example 2: BMP Files 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 2: BMP Files (cont’d) Common but not parsimonious Permits Color tables Various numbers bits per pixel Explicit color specification for each pixel Compression (rarely encountered) 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 2: BMP Files (cont’d) Header Information Offset Field Size Content 0x0 Identifier 2 Type of BMP (ASCII “BM” i.e., 66,77 = bitmap) 0x2 File size 4 Total number of bytes in the file 0x6 Reserved For future use 0xA Data offset Offset from beginning of file to start of data (in bytes) 0xE Header size Total number of bytes in the information header 0x12 Width Bitmap width in pixels 0x16 Height Bitmap height in pixels 0x1A Planes Number of planes 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 2: BMP Files (cont’d) Header Information Offset Field Size Content 0x1C Bits per pixel 2 Possible values: 1 – Monochrome image 4 – 16 color bitmap 8 – 256 color bitmap 16 – 16-bit (high color) bitmap 24 – 24-bit (true color) bitmap 32 – 32-bit (true color) bitmap 0x1E Compression 4 Compression specification (0 means no compression) 0x22 Bitmap data size Size of data in bytes (rounded up to the nearest even multiple of four bytes) 0x26 HResolution Horizontal resolution in pixels/meter 0x2A VResolution Vertical resolution in pixels/meter 11/15/2018 Copyright Gene A Tagliarini, PhD

Example 2: BMP Files (cont’d) Header Information Offset Field Size Content 0x2E Colors 4 Number of colors used; for 8-bits/pixel this value will be 256 (0x100) 0x32 Important Colors Value = Colors when all are important 0x36 Palette N*4 bytes Palette specification. Four bytes for each color in the palette 1 byte for the blue component 1 byte for the green component 1 byte for the red component 1 byte for fill to double word boundary (= 0x00) 0x436 Bitmap data X bytes Depends upon compression scheme; points to values in the palette or gives explicit values for the blue, green, and red components 11/15/2018 Copyright Gene A Tagliarini, PhD