
[igCS] Image Representation
Presentation
•
Computers
•
9th Grade
•
Practice Problem
•
Medium
Andy tsui
Used 11+ times
FREE Resource
17 Slides • 16 Questions
1
[igCS] Image Representation
by Andy tsui
2
Revision Questions
Get Notebook ready
3
Multiple Select
What are the two methods for representing negative integers?
Two's Complement
One's Complement
Sign and Magnitude
Random placement
4
Multiple Choice
Which one is more commonly used in computer?
Sign and magnitude
Two's Complement
5
Multiple Choice
1011 is a 4-bit two's complement binary number, it must be:
Positive
Negative
6
Multiple Choice
What is the value of 1011 (4-bt 2's complement)?
5
-5
3
-3
7
Another method to convert from -ve binary...
​
8
Multiple Choice
What is the value of 1001 (4-bt 2's complement)?
7
-7
1
-1
9
Multiple Choice
What is the value of 1000 0011 (8-bt 2's complement)?
3
-3
-125
125
10
Multiple Select
Standard ASCII code is.... (choose all applies)
7-bit coding
Represents English Alphabets
Contains European accents
Including Non-printable characters
8-bit encoding
11
Fill in the Blanks
Type answer...
12
Objectives
Understand how and why a computer represents an image, including the effects of the resolution and colour depth
13
Computer image
Computer image is represented by grid of small "dots"
Those dots are called "Pixel" (stands for Picture Element)
Each pixel contains one single color
Pixels are organized in rectangular grid
14
Image Resolution
Resolution is defined by number of pixels in an image
Usually written as width x height
The higher resolution
=> more pixels for an image
=> better image quality (smoother)
15
Activity
Black and White image
https://studio.code.org/s/csp1-2021/lessons/7/levels/2
16
Multiple Choice
What is the Resolution of the "A" you created?
3x5
8x8
2x6
10x10
17
Fill in the Blanks
Type answer...
18
Color in Computer
All colors in computer is composed of 3 basic colors:
Red, Green and Blue
Mixing the basic color results in different colors you can see
19
Activity
3-Bit Color
https://studio.code.org/s/csp1-2021/lessons/8/levels/2
20
Color Depth
Each pixel in an image contains one single color
The number of bits used in each color is called Color Depth
Higher Color Depth =>
More distinct colors can be displayed in a picture / screen
Color-depth compared on Grayscale only
21
1-bit Color Depth
Black and White (only) image
Note it is different from the black and white in everyday life referring to
Each pixel contains 1 bit only
The total size (storage) of the image is:
width x height x 1 bits (color depth)
22
Multiple Choice
How many total pixels in the smiling face shown?
32
64
96
48
23
Fill in the Blanks
Type answer...
24
8-bit Grayscale
We usually use 8-bit (or 1 byte) depth to store grayscale image (so called black and white photo)
The size of the image is given by:
width x height x 8 bits (color depth) ... or simply
width x height x 1 Bytes
25
Multiple Choice
Given an 8-bit grayscale image of 100 x 50 resolution, calculate the size of the image.
5000 Bytes
4000 Bytes
5000 bits
1000 Bytes
26
Multiple Choice
How many different shades from white to gray to white, can be displayed in 8-bit grayscale? (in other word, how many distinct number can represented by 8-bit)
256
8
16
128
27
Activity
6-Bit Color
https://studio.code.org/s/csp1-2021/lessons/8/levels/4
28
8-Bit Color image
8 Bit Color depth can also use in colored image
Nowadays mainly used in Animated GIF format (gif only allows 8 bit)
Since there's only 256 distinct color, gif is not very good in displaying smooth shades like photo, but works better in illustrations
29
True Color (24-bit)
We use 8-bit per basic color for each pixel, which means:
8 x 3 = 24 bits
By adjusting the amount of each basic color, nearly ALL color can be displayed (more than 16 Million distinct colors)
In Website, we use
#RRGGBB format to define color
30
More on 24-bit
Nowadays most of our photos are 24-bit
The storage size is given by:
width x height x 24 bits or..
width x height x 3 Bytes
31
Fill in the Blanks
Type answer...
32
Multiple Choice
What is the size of the a 24-bit color depth, 100 x 50 pixel image?
15000 Bytes
15000 bits
5000 bits
5000 Bytes
33
Conclusion
Image quality is defined by
Resolution, pixel count of the image
Color depth, number of bits to store distinct color value
Image file size is calculated by:
Width x Height x Color Depth
[igCS] Image Representation
by Andy tsui
Show answer
Auto Play
Slide 1 / 33
SLIDE
Similar Resources on Wayground
24 questions
S3 CS - Data representation (revision)
Presentation
•
8th Grade
26 questions
Electric and electronic devices
Presentation
•
KG
25 questions
Evolution Review
Presentation
•
9th Grade
29 questions
Reporting Category 2
Presentation
•
9th Grade
27 questions
EXT_4_LA
Presentation
•
9th Grade
27 questions
Genetics Review
Presentation
•
9th Grade
23 questions
Elementy systemu komputerowego
Presentation
•
KG
25 questions
Dilations
Presentation
•
8th Grade
Popular Resources on Wayground
15 questions
Grade 3 Simulation Assessment 1
Quiz
•
3rd Grade
22 questions
HCS Grade 4 Simulation Assessment_1 2526sy
Quiz
•
4th Grade
16 questions
Grade 3 Simulation Assessment 2
Quiz
•
3rd Grade
19 questions
HCS Grade 5 Simulation Assessment_1 2526sy
Quiz
•
5th Grade
17 questions
HCS Grade 4 Simulation Assessment_2 2526sy
Quiz
•
4th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
24 questions
HCS Grade 5 Simulation Assessment_2 2526sy
Quiz
•
5th Grade
20 questions
Math Review
Quiz
•
3rd Grade
Discover more resources for Computers
10 questions
Exploring Digital Citizenship Essentials
Interactive video
•
6th - 10th Grade
20 questions
Inventor Terms Exercise #1a
Quiz
•
9th Grade
31 questions
Inventor Vocabulary Review Sheet
Quiz
•
9th Grade
10 questions
Exploring Cybersecurity Techniques and Threats
Interactive video
•
6th - 10th Grade