Digital Color 24-bit Color Indexed Color Image file compression

Slides:



Advertisements
Similar presentations
Book Scanning & Digital Image Production The VRC Guide to Imaging By Kate Stepp.
Advertisements

Image Data Representations and Standards
Madeleine Wright Peter Wentworth. » On your screen, or with light beams, colours are additive. » Each pixel is a mixture of Red, Green and Blue, the additive.
A Digital Imaging Primer Nick Dvoracek Instructional Resources Center University of Wisconsin Oshkosh.
Digital Imaging and Image Analysis
Color COM 366 Web Design & Production. RGB color Amount of light in each channel Closer to 255, whiter color gets Every color has value for red,
Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.
2.01 Understand Digital Raster Graphics
Graphics in the web Digital Media: Communication and Design
Information Technology Services North Dakota State University Lorna Olsen Get the Best Digital Images Possible What’s it all about anyway?
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
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.
1 JPEG Compression CSC361/661 Burg/Wong. 2 Fact about JPEG Compression JPEG stands for Joint Photographic Experts Group JPEG compression is used with.jpg.
Digital Art is Interactive Visual Art. How has art been changed because of technology ?
An Introduction to Scanning and Storing Photographs and Graphics Bryn Jones Aug 2002
CS110: Computers and the Internet Color and Image Representation.
1 Internet Graphics. 2 Representing Images  Raster Image: Images consist of “dots” of color, not lines  Pixel: Picture element-tiny rectangle  Resolution:
Graphical images Bit-mapped (or raster-based) image: Matrix describing the individual dots that are the smallest elements (pixels) of resolution on a computer.
Digital Images The digital representation of visual information.
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.
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
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.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
Dean Pentcheff NHMLAC MBPC/Crustacea 17 April 2006.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Welcome Topic: Pixels A.M.Meshkatur Rahman Class: vii Roll: 07.
Digital Images Chapter 8, Exploring the Digital Domain.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
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.
Digital Darkroom I Theresa L. Ford. Objectives Basic Digital Image Terminology Screen Display of Pictures –Why are pictures too big for the screen? –Why.
Image formats. Basic terminologies… Pixels: Pixels are the building blocks of every digital image. a pixel is a single point in a graphic image. Resolutions:
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
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 workshop Library and Information Services University of St Andrews.
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Digital Media Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
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 Images are represented by manipulating this…
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
By: Catyana Brown Information Technology in a Global Society: Multimedia.
Introduction to Images & Graphics JMA260. Objectives Images introduction Photoshop.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
In the Know … Technological Vocabulary. Beginning Terms 1. Aperture – the mechanical opening in the lens that lets light in. 2. ASA / ISO – rating given.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
HOW SCANNERS WORK A scanner is a device that uses a light source to electronically convert an image into binary data (0s and 1s). This binary data can.
Image Editing Vocabulary Words Pioneer Library System Norman Public Library Nancy Rimassa, Trainer Thanks to Wikipedia ( help.
Chapter 3 Color Objectives Identify the color systems and resolution Clarify category of colors.
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.
Digital Media Dr. Jim Rowan ITEC 2110 Bitmapped Images.
Computer Graphics Lesson 2 July 12, 2005 Image Formats What are some formats you are familiar with? There are 4 basic image format types: Uncompressed.
UNITS OF MEASUREMENT 2.01 Understand Digital Raster Graphics.
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
DIGITAL MEDIA FOUNDATIONS
Images Data Representation.
Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Binary Representation in Audio and Images
Computer Science Higher
Digital Image Formation
Introduction To Photo Editing SHIELA MAE A. AQUINO SRNHS.
JPG vs GIF vs PNG What is the difference?
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Dr. Jim Rowan ITEC 2110 Bitmapped Images
An Introduction to Scanning and Storing Photographs and Graphics
Representing Images 2.6 – Data Representation.
Presentation transcript:

Digital Color 24-bit Color Indexed Color Image file compression Sharpening filters

24-bit Pixels 24-bit color uses one byte (8 bits) for each component of an RGB pixel (8 bits for red, 8 bits for green, 8 bits for blue) The brightness for each color ranges from 00000000=0 (darkest) 00000001=1 00000010=2 …. 11111110=254 11111111=255 (brightest)

24-bit Pixels Thus each of the three colors can take on any of 256 different brightness levels The total number of colors is 256x256x256 = approx 16.8 million colors pink pixel yellow pixel

Concept Question What color is a pixel with values: Red: 0 Green: 255 Blue: 255 Blue Purple Green Cyan Yellow 255 255

The Color Cube The color cube is a way of visualizing the three-dimensional digital color space http://www.danshort.com/colorcube/

Image Files: Size and Resolution There are several different numbers to consider when describing image size and resolution Pixel dimension: the number of pixels in the image file itself, e.g. 1024x768 pixels The physical size of an image, either on a screen or printed, depends on the resolution of the image, the screen, and the printer Resolution is typically given in pixels per inch

Display Resolution Computer and television displays have something called display resolution Display resolution depends on the physical size of the display and the pixel dimensions of the display You may see HDTVs quoted as having “1920x1080 resolution”, but this is a pixel dimension, not a resolution.

Screen Example Comparison 1920 pixels, 44” 1280 pixels, 11” 13” 50” 1920 pixels / 44 inches = approx. 44 pixels per inch 1280 pixels / 11 inches = approx. 112 pixels per inch

Print Resolution Print resolution, usually given in “dots per inch” (dpi), is the number of individual colored dots per inch that the printer produces on the paper In general, you need at least 100 dpi, and preferably 300 dpi or more for an image to look good when printed Combining the pixel dimension of the image and the printing resolution gives the final physical size of the image: e.g. a 1000x1000 pixel image printed at 250 dpi would be 4”x4”

Image and Print Resolution Pixels per inch of the image Dots per inch of a printed copy of the image

Print Resolution

Concept Question An image has the pixel dimension 1500x1500 pixels. It is printed at 300dpi. What is the physical size of the printed image? 3”x3” 3.5”x3.5” 4”x4” 4.5”x4.5” 5”x5”

Indexed Color A full 24-bit RGB color image would require 3 bytes of storage for each pixel in the image, e.g. a 10 megapixel digital photograph would require 30 MB of storage space This is, in general, not necessary. Most images do not contain 16.8 million different colors, so the file size can be reduced by reducing the pixel depth For example, 8-bit color can only show 256 colors, but takes only 1/3 the space of a 24-bit color image

Indexed Color While all 8-bit color images contain a maximum of 256 different colors, the colors themselves are not always the same. When a 24-bit color image is converted to 8-bit color, a color coding table is generated to include 256 colors out of the 16.8 million available to best preserve the color information in the image

Color Table Comparison

Indexed Color The color cube, containing all 16.8 million RGB colors, is divided into 256 pieces to construct the color table for one particular image Consider the color cube as a cube of cake containing an evenly spaced array of 16.8 million poppyseeds, each representing one color The colors that are actually present in the image are represented by glowing poppyseeds

Indexed Color The object is to cut the cake into 256 pieces so that there are the same number of glowing poppyseeds in each piece Each piece will contain many glowing poppyseeds, but they will be very close in color, so we can replace all those different colors with just one color for each cake piece The cake cutting will be different for every digital image

Indexed Color: Color Tables

Concept Question A palette used for a computer image in an 8-bit color scheme Contains 8 different colors, each chosen out of a possible 8 colors. Contains 8 different colors, each chosen out of a possible 256 colors. Contains 256 different colors, each chosen out of a possible 256 colors. Contains 256 different colors, each chosen out of a possible 16.8 million colors. Contains 16.8 million colors.

Storing Image Files The most naïve way to store an image is as a giant list of each pixel value in the image This is very inefficient and results in very large image files Image files can be made smaller by compression tricks. There are two kinds of compression: Lossless compression: all information is preserved, but compression is modest Lossy compression: compression can be more extreme, but some information is throw away

Lossless Compression Lossless compression preserves all the information in an image file, but stores it in a more efficient way. Different methods of lossless compression are designed to efficiently compress different kinds of data The simplest lossless image compression method is called “run-length encoding”

Run-Length Encoding (RLE) RLE exploits the fact that there are sections of repeated pixels in most images. Consider the following sequence of pixels: This might represent the following colored pixels: This can be expressed in fewer bits by replacing long runs of the same color with two bytes, one indicating the color, and the other indicating the number of repeats 32 84 128 96 74 56

Run-Length Encoding Here we have coded this in the following way: 32 84 128 96 74 56 Here we have coded this in the following way: A red number indicates that the following byte is to be read as a color, and repeated that number of times A yellow number indicates the number of bytes following which are nonrepeating. This (shorter) sequence of bytes is re-expanded by the graphics software into the original sequence of bytes 5 2 32 84 4 128 3 96 74 56

Concept Question For which image would RLE produce a smaller file (better compression) A B Original image Indexed Color: 16 colors

Lossy Compression Lossy compression makes image files smaller by both storing information more efficiently, and throwing away information. The most commonly used lossy compression method is JPEG (Joint Photographic Experts Group) The JPEG method uses two main compression steps: It merges similar colors into the same color It removes small detail information from the image

JPEG Compression: Color http://clarebayley.com/2010/03/the-jpeg-compression-algorithm/

JPEG Compression: Detail The algorithm replaces blocks of small details with the block from a library of possible blocks that best matches the original image There are more details about how this works in the online notes

JPEG Compression: Results

JPEG Compression

Image Filters: Sharpening Sharpening filters in Photoshop work just like lateral inhibition works in your retina. Edges between dark and light areas are enhanced by making the light areas lighter and the dark areas darker http://micro.magnet.fsu.edu/primer/java/digitalimaging/processing/unsharpmask/

Sharpen Filter Image files are basically arrays (matrices) of numbers, so image processing is just number processing Let’s consider the following mathematical “filter”: -1 2 -1

Sharpening: Original 2 4 6

Sharpening: Results 2 4 8 6