- orange white green - cyan - red - blue Example 1 24 bit RGB

Slides:



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

My Penguin Math Book By:. I see How many penguins do you see? Count them & type the number in the box penguins.
© red ©
CSE111: Great Ideas in Computer Science Dr. Carl Alphonce 219 Bell Hall Office hours: M-F 11:00-11:
CSE115: Introduction to Computer Science I Dr. Carl Alphonce 219 Bell Hall 1.
School of Computing Science Simon Fraser University
Image Representation.
CSC Computing with Images1 Image encodings CSC 1040.
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.
Digital Images The digital representation of visual information.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
Introduction to JPEG Alireza Shafaei ( ) Fall 2005.
CMYK vs. RGB Design. Primary colors The colors that make up the base for every other color created. Depending on whether you are looking at it from science,
Logic Gates II Informatics INFO I101 February 5, 2003 John C. Paolillo, Instructor.
Objective Understand concepts used to create digital graphics. Course Weight : 15% Part Three : Concepts of Digital Graphics.
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
What are the five colors in the legend? Enter the information below (5 points) 0000FF = = FFFFFF = 00FF00 = FF0000 = Color Theory Legend: income.
September 21, COMPUTER VISION WEB PAGE IS UP !! OR Simply go to computer science homepage.
Two –Dimensional Arrays Mrs. C. Furman Java Programming November 19, 2008.
Still-image compression Moving-image compression and File types.
CSC Computing with Images
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
Digital Media Lecture 4.1: Image Encoding Practice Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Homework Assignment You are going to research any artist of your choosing from any time period or genre. You are going to complete a one page double- spaced.
COUNTING Directions: Write your word on the I pad and on the paper. Count the amount of letters in your word and then find the color that matches that.
CS 111 – Sept. 3 More data representation Review hex notation Text –ASCII and Unicode Sound and images Commitment: –For Wednesday: Please read pp
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.
Computer Science and Software Engineering© 2014 Project Lead The Way, Inc. Bits and Bytes.
 By Bob “The Bird” Fiske & Anita “The Snail” Cost.
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.
GRAPHING RELATIONSHIPS For each graph, determine the graphing relationship and record it on a white board.
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.
HSB to RGB to HEX.
PART TWO Electronic Color & RGB values 1. Electronic Color Computer Monitors: Use light in 3 colors to create images on the screen Monitors use RED, GREEN,
My Penguin Math Book By:. I see How many penguins do you see? Count them and type the number in the box penguins.
Representing Sound and Image. Representing images One mean of representing an image it to interpret the image as a collection of dots, each is called.
Chapter 3 Probability Initial Objective: Develop procedures to determine the # of elements in a set without resorting to listing them first. 3-6 Counting.
Digital Media Lecture 4.2: Image Encoding Practice Georgia Gwinnett College School of Science and Technology Dr. Jim Rowan.
Pre-k Math activities By the end of the second Trimester, Pre-kinder students should: Identify and name numbers from 1 to 8 (in English) Count sequence.
Scientific Notation. = 5.4 =3.47 Write the following in standard form A 1.8 X 10⁴ B 3.47 X 10⁷ C 4.3 X 10⁰ D 5.4 X 10⁻⁴ E 5 X 10⁻⁶ F (6 X 10⁴) (7 X 10⁵)
Vorlesung Codierungstheorie Quellencodierung Bild- und Videokompression.
File Compression 3.3.
Images Data Representation.
Graphics 1 Graphics 2 Color 2 I Spy 1pt 1 pt 1 pt 1pt 1 pt 2 pt 2 pt
Data Representation Images.
Bitmap Basics Review Refresher from Year 8.
Binary Representation in Audio and Images
Computer Science Higher
Digital Media Lecture 4.1: Image Encoding Practice
DIP 9 65 Original 210 Eye Zoomed.
Colors.
Images in Binary.
Because you know who said let there be light…
What do these words mean to you?
Name: _______________________________
Average Number of Photons
- orange white green - cyan - red - blue Example 1 24 bit RGB
Light Light has wave-like properties
Two ways to discuss color 1) Addition 2) Subtraction
Chapter 2 Data Representation.
Can I color yellow?. Can I color yellow?
COMS 161 Introduction to Computing
What Color is it?.
Computer Systems Nat 4.5 Computing Science Data Representation
monochrome AgX material
Visuals are analog signals...
Data Compression.
Let’s Learn the Basic Colors
Year 8 Unit 2 Bitmap Graphics
Presentation transcript:

- orange white green - cyan - red - blue Example 1 24 bit RGB 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 1 24 bit RGB orange | white | green | cyan | cyan | cyan | red | orange | white | red | white | blue 237, 132, 30 | 255, 255, 255 | 67, 139, 23 | 120, 248, 254 | 120, 248, 254 | 120, 248, 254 | 232, 68, 21 | 237, 132, 30 | 255, 255, 255 | 232, 68, 21 | 255, 255, 255 | 0, 59, 250 36 bytes total (excluding any header)

- orange white green Example 1 - cyan 24 bit RGB - red 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 1 24 bit RGB Run length encoding RLE 1 byte for the count 1 orange | 1 white | 1 green | 3 cyan | 1 red | 1 orange | 1 white | 1 red | 1 white | 1 blue 1 237, 132, 30 | 1 255, 255, 255 | 1 67, 139, 23 | 3 120, 248, 254 | 1 232, 68, 21 | 1 237, 132, 30 | 1 255, 255, 255 | 1 232, 68, 21 | 1 255, 255, 255 | 1 0, 59, 250 40 bytes total (excluding any header) notice that in this case, the RLE is larger than the 24 bit RGB

bitmapped portion: 36 bits/8 = 5 (4.5) bytes 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 1 24 Bit RGB Table encoding 237, 132, 30 - 000 001 010 - 011 - 100 - 101 255, 255, 255 67, 139, 23 120, 248, 254 color table: 18 bytes 232, 68, 21 0, 59, 250 000 001 010 011 011 011 100 000 001 100 001 101 bitmapped portion: 36 bits/8 = 5 (4.5) bytes Total: 18 + 5 = 23 bytes (excluding any header)

- red orange white - blue Example 2 24 bit RGB 232, 68, 21 237, 132, 30 0, 59, 250 - red orange white - blue 255, 255, 255 Example 2 24 bit RGB red | orange | white | white | white | red | white | blue | blue | red | white | white | white 232, 68, 21 | 237, 132, 30 | 255, 255, 255 | 255, 255, 255 | 232, 68, 21 | 255, 255, 255 | 0, 59, 250 | 0, 59, 250 | 232, 68, 21 | 255, 255, 255 | 255, 255, 255 | 255, 255, 255 | 36 bytes total (excluding any header)

- red orange white - blue Example 2 24 bit RGB Run length encoding RLE 232, 68, 21 237, 132, 30 0, 59, 250 - red orange white - blue 255, 255, 255 Example 2 24 bit RGB Run length encoding RLE 1 byte count 1 red | 1 orange | 2 white | 1 red | 1 white | 2 blue | 1 red | 3 white | 1 232, 68, 21 | 1 237, 132, 30 | 2 255, 255, 255 | 1 232, 68, 21 | 1 255, 255, 255 | 2 0, 59, 250 | 1 232, 68, 21 | 3 255, 255, 255 | 32 bytes total (excluding any header)

bitmapped portion: 24 bits = 3 bytes 232, 68, 21 237, 132, 30 0, 59, 250 - red orange white - blue 255, 255, 255 Example 2 Table encoding 232, 68, 21 - 00 01 10 - 11 237, 132, 30 color table: 12 bytes 255, 255, 255 0, 59, 250 00 01 10 10 00 10 11 11 00 10 10 10 bitmapped portion: 24 bits = 3 bytes Total: 12 + 3 = 15 bytes (excluding any header)

orange white - cyan Example 3 24 bit RGB 237, 132, 30 255, 255, 255 120, 248, 254 orange white - cyan 255, 255, 255 Example 3 24 bit RGB orange | orange | white | orange | cyan | cyan | orange | cyan | orange 237, 132, 30 | 237, 132, 30 | 255, 255, 255 | 237, 132, 30 | 120, 248, 254 | 120, 248, 254 | 237, 132, 30 | 120, 248, 254 | 237, 132, 30 27 bytes total (excluding any header)

orange white - cyan Example 3 24 bit RGB Run length encoding RLE 237, 132, 30 120, 248, 254 orange white - cyan 255, 255, 255 Example 3 24 bit RGB Run length encoding RLE 1 byte count 2 orange | 1 white | 1 orange | 2 cyan | 1 orange | 1 cyan | 1 orange 2 237, 132, 30 | 1 255, 255, 255 | 1 237, 132, 30 | 2 120, 248, 254 | 1 237, 132, 30 | 1 120, 248, 254 | 1 237, 132, 30 28 bytes total (excluding any header)

bitmapped portion: 18 bits / 8 = 3 bytes 237, 132, 30 120, 248, 254 orange white - cyan 255, 255, 255 Example 3 24 bit RGB Table encoding 237, 132, 30 00 01 10 255, 255, 255 color table: 9 bytes 120, 248, 254 00 00 01 00 10 10 00 10 00 bitmapped portion: 18 bits / 8 = 3 bytes Total: 9 + 3 = 12 bytes (excluding any header)

bitmapped portion: 48 bits/8 = 6 bytes 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 4 24 bit RGB Table Encoding 237, 132, 30 - 000 001 010 - 011 - 100 - 101 255, 255, 255 67, 139, 23 120, 248, 254 color table: 18 bytes 232, 68, 21 0, 59, 250 000 000 001 010 000 011 011 011 000 100 000 001 000 100 001 101 bitmapped portion: 48 bits/8 = 6 bytes Total: 18 + 6 = 24 bytes (excluding any header)

Table encoding, Special Case: 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 4 24 bit RGB Table Encoding Special Case: Limited to 4 colors Example 4 24 bit RGB Table encoding, Special Case: 6 colors in the image, only room for 4 colors in table (table too small to carry all the colors)

(orange, there are 6 of these) (cyan, there are 3 of these) 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 4 24 bit RGB Table Encoding Special Case: Limited to 4 colors Arrange colors in sequence from most frequently occurring to least frequent 237, 132, 30 120, 248, 254 255, 255, 255 232, 68, 21 67, 139, 23 0, 59, 250 (orange, there are 6 of these) (cyan, there are 3 of these) (white, there are 3 of these) (red there are 2 of these) (green) (blue) But the table only has room for 4 colors so we have to drop these two colors:

- 00 (orange, there are 6 of these) 01 (cyan, there are 3 of these) 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 4 24 bit RGB Table Encoding Special Case: Limited to 4 colors Assign the color codes for the 4 colors: 237, 132, 30 120, 248, 254 255, 255, 255 232, 68, 21 - 00 (orange, there are 6 of these) 01 (cyan, there are 3 of these) 10 (white, there are 3 of these) - 11 (red there are 2 of these) color table: 12 bytes 00 00 10 X? 00 01 01 01 00 11 00 10 00 11 10 X? Total: 12 + = bytes (excluding any header)

- 00 (orange, there are 6 of these) 01 (cyan, there are 3 of these) 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 4 24 bit RGB Table Encoding Special Case: Limited to 4 colors Assign the color codes for the 4 colors: 237, 132, 30 120, 248, 254 255, 255, 255 232, 68, 21 - 00 (orange, there are 6 of these) 01 (cyan, there are 3 of these) 10 (white, there are 3 of these) - 11 (red there are 2 of these) color table: 12 bytes 00 00 10 01 00 01 01 01 00 11 00 10 00 11 10 01

- 00 (orange, there are 6 of these) 01 (cyan, there are 3 of these) 237, 132, 30 255, 255, 255 120, 248, 254 232, 68, 21 0, 59, 250 - orange white green - cyan - red - blue 67, 139, 23 Example 4 24 bit RGB Table Encoding Special Case: Limited to 4 colors Assign the color codes for the 4 colors: 237, 132, 30 120, 248, 254 255, 255, 255 232, 68, 21 - 00 (orange, there are 6 of these) 01 (cyan, there are 3 of these) 10 (white, there are 3 of these) - 11 (red there are 2 of these) color table: 12 bytes 00 00 10 01 00 01 01 01 00 11 00 10 00 11 10 01 bitmapped portion: 32 bits/8 = 4 bytes Total: 12 + 4 = 16 bytes (excluding any header)