Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT.

Slides:



Advertisements
Similar presentations
Digital Color 24-bit Color Indexed Color Image file compression
Advertisements

Computer Science 101 RGB Color System. Simplified Introduction to Color Vision Go to How We See: The First Steps of Human Vision or Color Vision for more.
Digital Imaging and Image Analysis
The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths.
Bits are Not just for Numbers or Characters Computers store characters as bits or binary digits. Characters from the English-language keyboard can be represented.
Bits are Not just for Numbers Computers store characters as bits or binary digits. Characters from the English-language keyboard are represented in ASCII.
Graphics File Formats. 2 Graphics Data n Vector data –Lines –Polygons –Curves n Bitmap data –Array of pixels –Numerical values corresponding to gray-
Image Representation.
CSC Computing with Images1 Image encodings CSC 1040.
Graphics in the web Digital Media: Communication and Design
March 2006Taner Erig - EMU2-1 Metamorphosis of Information How is information represented and how do computers store information?
1 Basics of Digital Imaging Digital Image Capture and Display Kevin L. Lorick, Ph.D. FDA, CDRH, OIVD, DIHD.
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.
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:
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.
Connecting with Computer Science 2 Objectives Learn why numbering systems are important to understand Refresh your knowledge of powers of numbers Learn.
Visual Representation of Information
Bitmapped Images. Bitmap Images Today’s Objectives Identify characteristics of bitmap images Resolution, bit depth, color mode, pixels Determine the most.
Digital Images The digital representation of visual information.
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.
Fundamentals of Photoshop
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Image processing Second lecture. Image Image Representation We have seen that the human visual system (HVS) receives an input image as a collection of.
CS 102 Computers In Context (Multimedia)‏ 01 / 28 / 2009 Instructor: Michael Eckmann.
Georgia Institute of Technology Introduction to Media Computation Barb Ericson Georgia Institute of Technology May 2006.
© 1999 Rochester Institute of Technology Color. Imaging Science Workshop for Teachers ©Chester F. Carlson Center for Imaging Science at RIT Color Images.
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.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
Lawrence Snyder University of Washington, Seattle © Lawrence Snyder 2004 Adding some light to computing ….
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital 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.
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
© 1999 Rochester Institute of Technology Introduction to Digital Imaging.
Images The Science of Images What is an Image on the computer? The Psychology of Images What do we use images for? What effect color has on our mood and.
Logical Circuit Design Week 2,3: Fundamental Concepts in Computer Science, Binary Logic, Number Systems Mentor Hamiti, MSc Office: ,
1 COMS 161 Introduction to Computing Title: Digital Images Date: November 12, 2004 Lecture Number: 32.
CS112 Scientific Computation Department of Computer Science Wellesley College Numb3rs Number and image types.
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.
Computer Vision Introduction to Digital Images.
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.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
Digital Imaging Fundamentals Ms. Hema C.R. School of Mechatronic Engineering.
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. Can refer to the number of pixels in a bitmapped image Can refer to the number of pixels in a bitmapped image The amount of space it.
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
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.
Graphics in a computers memory How a picture (i.e. a graphic) is stored in a computers memory A computer screen is made up of little dots, called PICture.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
More Digital Representation Discrete information is represented in binary (PandA), and “continuous” information is made discrete.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
Mohammed AM Dwikat CIS Department Digital Image.
Unit 2.6 Data Representation Lesson 3 ‒ Images
Images Data Representation.
Data Representation Images.
Data Representation.
Digital Image Formation
Binary 4 File Sizes.
GRAPHICS Source:
Representing Images 2.6 – Data Representation.
Nuts and Bolts of Digital Imaging
Computer Systems Nat 4.5 Computing Science Data Representation
Basic Concepts of Digital Imaging
Visuals are analog signals...
WJEC GCSE Computer Science
Presentation transcript:

Bit Depth and Spatial Resolution SIMG-201 Survey of Imaging Science © 2002 CIS/RIT

Binary Images u The simplest digital images are binary images. Binary images contain only one bit per pixel, so they can only represent two gray values. For example; 0 = black 1 = white

Computer Memory & Storage u If we want an image that has more than two gray levels, we have to increase the number of ‘bits per pixel’ binary: just white or blackgrayscale: many shades of gray

Computer Memory & Storage x22x2 = 4 gray levels 2 gray levels bit pixel 2 bits pixel

Computer Memory & Storage 2x2x22x2x2 = 8 gray levels 3 bits pixel

Computer Memory & Storage 0 0 0= = = = = = = = 7...=. u We started to look at the bits as tokens to represent different values, but we ended up with a binary counting system. u The largest number we can count to (and the number of different gray levels we can have) depends on how many bits we use.

Grayscale images u To get more than two gray values, we need a code with more than one bit per pixel. 1 bit 2 bits 3 bits (2 values) (4 values) (8 values)

Binary Arithmetic u In binary arithmetic, we can only count from 0 to 1 before we have to ‘carry’ 0101 binary 0101 decimal 1 bit

Binary Arithmetic u In binary arithmetic, we can only count from 0 to 1 before we have to ‘carry’ u Two bits allows four grayscale codes: Note that the code changes; the meaning of ‘1’ changes from white to dark gray binary decimal 1 bit 2 bits

Binary Arithmetic u In binary arithmetic, we can only count from 0 to 1 before we have to ‘carry’ u Two bits allows four grayscale codes: Note that the code changes; the meaning of ‘1’ changes from white to dark gray. u Three bits allows eight grayscale codes: The code changes again: ‘1’ is now almost black binary decimal 1 bit 2 bits 3 bits

Binary Arithmetic binary decimal 1 bit 2 bits 3 bits 4 bits u In binary arithmetic, we can only count from 0 to 1 before we have to ‘carry’ u Two bits allows four grayscale codes: Note that the code changes; the meaning of ‘1’ changes from white to dark gray. u Three bits allows eight grayscale codes: The code changes again: ‘1’ is now almost black. u …

Computer Memory & Storage 3 bits/pixel: 8 gray levels 000  111 (0  7) 4 bits/pixel: 16 gray levels 0000  1111 (0  15)

Computer Memory & Storage 5 bits/pixel: 32 gray levels  (0  31) 8 bits/pixel: 256 gray levels  (0  255)

Grayscale Images u The number of gray levels that can be represented is fixed by the bit depth, the number of bits per pixel used to store the gray value. 1 bit/pixel : 2 values (‘binary’) [0, 1] 2 bits/pixel : 4 values [00, 01, 10, 11] 3 bits/pixel : 8 values [000, 001, 010, …] 4 bits/pixel : 16 values [0000, 0001, 0010, …]

Grayscale Images u The number of gray levels that can be represented is fixed by the bit depth, the number of bits per pixel used to store the gray value. 5 bits/pixel : 32 values 6 bits/pixel : 64 values 7 bits/pixel:128 values 8 bits/pixel : 256 values

Bit depth: bits per pixel u The number of possible gray levels is controlled by the number of bits/pixel, or the ‘bit depth’ of the image gray levels bits/pixel

Memory requirements: Bit depth u Adding more gray levels is ‘cheap’ in terms of memory requirements. Every added bit doubles the number of gray levels

Digital images: Fundamentals u A digital image is an ‘ordered array’ of numbers u Each pixel (picture element) in a grayscale digital image is a number that describe the pixel’s lightness (e.g., 0 = black 255 = white)

Grayscale Images u Grayscale images commonly have 256 different gray values, numbered Each pixel can then be stored in 8 bits, or 1 byte. [  ] 0 = black 255 = white u Grayscale pixels are sometimes stored with as many as 1024 gray values (10 bits) or 4096 gray values (12 bits) This doesn’t make the image ‘look better’ but it increases the lightness range that can be captured

Bit depth & spatial resolution The bit depth describes the ‘grayscale resolution’ - with what precision are gray values distinguished?

Bit depth & spatial resolution The bit depth describes the ‘grayscale resolution’ - with what precision are gray values distinguished?

Bit depth & spatial resolution The bit depth describes the ‘grayscale resolution’ - with what precision are gray values distinguished?

Bit depth & spatial resolution The bit depth describes the ‘grayscale resolution’ - with what precision are gray values distinguished?

Bit depth & spatial resolution The bit depth describes the ‘grayscale resolution’ - with what precision are gray values distinguished? bits/pixel

Bit depth & spatial resolution Spatial resolution - with what precision are spatial variations reproduced?

Image Resolution: 4 x 3 Pixels

Image Resolution: 8 x 6 Pixels

Image Resolution: 16 x 12 Pixels

Image Resolution: 32 x 24 Pixels

Image Resolution: 64 x 48 Pixels

Image Resolution: 128 x 96 Pixels

Image Resolution: 160 x 120 Pixels

Image Resolution: 320 x 240 Pixels

Image Resolution: 640 x 480 Pixels

Image Resolution: 1280 x 960 Pixels*

Spatial Sampling & File Size u Doubling the linear image sampling rate renders more image detail, but quadruples the file size. 64X 256X

u The eyes have three different kinds of color receptors; One kind is most sensitive to short wavelengths, one to middle wavelengths, and one to long wavelengths Vision – The Eye

RGB Color Images u Each one of the color images (‘planes’) is like a grayscale image, but is displayed in R, G, or B = u The most straightforward way to capture a color image is to capture three images; one to record how much red is at each point, another for the green, and a third for the blue.

Color images: 24-bit RGB u Color images also need to be coded u The bit depth in a color image determines the number of colors that can be assigned to a given pixel. u One common format is the 24-bit RGB image, with three 8-bit planes; Red, Green, and Blue; 16.7M colors = (256 x 256 x 256 = 16.7 million)

RGB Color Images: 24-bit color u Every pixel in each of the three 8-bit color planes can have 256 different values (0-255) u If we start with just the blue image plane, we can make 256 different “colors of blue” 0 255

RGB Color Images: 24-bit color u Every pixel in each of the three 8-bit color planes can have 256 different values (0-255) u If we start with just the blue image plane, we can make 256 different “colors of blue” u If we add red (which alone gives us 256 different reds):

RGB Color Images: 24-bit color u Every pixel in each of the three 8-bit color planes can have 256 different values (0-255) u If we start with just the blue image plane, we can make 256 different “colors of blue” u If we add red (which alone gives us 256 different reds): u We can make 256 x 256 = 65,536 combination colors because for every one of the 256 reds, we can have 256 blues

RGB Color Images: 24-bit color for each one u When we have all three colors together, there are 256 possible values of green for each one of the 65,536 combinations of red and blue: u 256 x 256 x 256 = 16,777,216 (“> 16.7 million colors”)

RGB Color Images: 24-bit color u The numbers stored for each pixel in a color image contain the color of that pixel

Color Image = Red + Green + Blue = u In a 24-bit image, each pixel has R, G, & B values u When viewed on a color display, the three images are combined to make the color image

Indexed Color Images u A small subset of the 16 million colors can often be used instead of the full 24 bits colors is often sufficient if the colors are chosen carefully u Indexed color images take advantage of this fact to use less memory or work with displays that can’t show 24-bit images

Indexed Color images 24 bit 8-bit“adaptive” 8-bit “system”

Color images: Index Color u A more compact code can be created for color images by making a look-up-table of colors for use in an image. Indexed color images store a fixed number of colors limited by the bit-depth: 3 bits/pixel : 8 colors 4 bits/pixel : 16 colors 5 bits/pixel:64 colors 8 bits/pixel : 256 colors

File Size Calculation 100 pixels Bit depth = 8 bits per pixel (256 gray levels) File size (in bits) = Height x Width x Bit Depth 100 x 100 x 8 bits/pixel = 80,000 bits/image 80,000 bits or 10,000 bytes u How much memory is necessary to store an image that is 100 x 100 pixels with 8 bits/pixel?

File Size Calculation 1280 pixels 960 pixels Bit depth = 24 bits per pixel (RGB color) File size (in bits) = Height x Width x Bit Depth 960 x 1280 x 24 bits/pixel = 29,491,200 bits/image 29,491,200 bits = 3,686,400 bytes = 3.5 MB u How much memory is necessary to store an image that is 1280 x 960 pixels with 24 bits/pixel?

JPEG - Adobe PhotoShop “10” 324 KB Raw image = 3,686 KB compressed/raw ~ 9%

JPEG - Adobe PhotoShop “5” 70 KB Raw image = 3,686 KB compressed/raw ~ 2%

JPEG - Adobe PhotoShop “0” 32 KB Raw image = 3,686 KB compressed/raw ~ 1%

JPEG 324 KB JPEG 70 KB JPEG 32 KB ~ 9% ~ 2% ~ 1%