Week 3 Flashcards
Once you know how many pieces your image will be broken into, what process comes next?
A process called quantizing assigns 0’s or 1’s to each pixel to represent certain colours. In this step you figure out how many colours you will have available to represent each pixel.
What images made up of?
Pixels, that are assigned colours that are arranged in a way to make an image
Assume for each pixel we have 1 bit to represent the colour. How many colours can you represent?
1 bit can hold either 0 or 1
◦ 0 could be white
◦ 1 could be black
Thus 1 bit allows for 2 colours, usually black and white (2^1 →2)
How many colours can 2 bit hold?
2^2 →4
◦ 00 →White
◦ 01 → Light Gray
◦ 10 → Dark Gray
◦ 11 → Black
Can 1 bit colours be realistic?
YES
How many colours does 4 bits give us?
2^4 → 16 Shades (of grey usually)
0000= black
1111= white
If an image was 400 pixels by 300 pixels and we used 1 byte (8 bits)
for each pixel, what would the file size be?
400 X 300 X 1 byte → 120,000 bytes or ~120 kilobytes
What are the 2 models for colour images?
- Subtractive Model - CMYK
- Additive Model - RGB
What is the subtractive model CMYK and when is it used?
- Used for printing
- Ink applied to paper
- Primary Colours → Cyan, Magenta and Yellow
- Ink when applied removes (subtracts) the white
What is the additive model RGB and when is it used?
- Used on monitors
- “Adding” light to a black background (the monitor)
- Primary Colours → Red, Green and Blue
What is an issue with CMYK?
Issue: if you’re only using CMY, you never really achieve a true black which is why K stands for the black (ink)
When you buy ink cartridges you also buy black
How can we represent true colour?
Can represent 2^24 colours → about 16 million different colours
2^ 24 = 2^8 X 2^8 X 2^8 = 256 shades of red, X 256 shades of green X 256 shades of blue
How many bytes do we need for true colour?
Need 3 bytes (remember: 1 byte=8 bits) for True Colour (1 byte for red, 1 byte for green, 1 byte for blue)
What are the 2 ways to encode true colour?
- RGB
- Hexadecimal code
What is RGB?
Amount of Red, amount of Green, amount of Blue in DECIMAL NUMBER
What are examples of important colours in RGB?
Where 0 is no amount and 255 is the
most allowed
◦ <255, 0, 0> → the most of red, no green, no blue
◦ <0, 255, 0> → the most green, no red, no blue
◦ <100,100,100> → equal middle
amounts of red, green and blue (grey)
◦ <50, 0, 200> → a little red, a lot of blue (blueish purple)
◦ <200, 0, 50> → a lot of red, a little blue (reddish purple)
What is hexadecimal code (for colours)?
RRGGBB: RR are the digit placeholders for the amount of red, GG amount of Green, BB amount of Blue
◦ Amounts are counted in hexadecimal with these digits: 0,1,2,3,4,5,6,7,8,9,A,B,C,D,E,F
◦ 00 still means 0
◦ Hex FF= Decimal 255
What are some important hex to decimal converstions?
Hex to Dec → 00=0, 01=1, 02=2, 03=3, 04=4, 05=5, 06=6, 07=7, 08=8, 09=9, 0A=10, 0B=11, 0C=12, 0D=13, 0E=14, 0F=15, 10=16, 11=17,….. FD=253, FE=254, FF=255.
What are examples of colours in hexadecimal code?
◦ #FF0000 → Red
◦ #00FF00 →Green
◦ #000000 → Black
In hexadecimal what colours are the absence of all colour, and the presence of all colours?
Absence: black
Presence: white
What is the hex code for white?
FFFFFF
Are these colours the same: <0,0,0> and #000000?
Yes both colour black
Are these colours the same: <9,8,7> and #090807?
Yes, dark dark grey
What is <10,15,09> in hex?
0A0F09