Graphics and compression Flashcards

1
Q

Define pixel

A

Smallest addressable area of an image

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

How do you calculate resolution of VDU screen and an image

A

VDU screen: number of pixels per row*number of pixels per column An image: Number of pixels per inch/centimetre

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Define colour depth

A

Number of bits used to represent a colour of a single pixel

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How do you calculate image size

A

Image size(in bits) = bits per colour * number of pixels

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Define metadata

A

Information about data stored in same file as image data

Including: date, colour depth, location, etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

How do vector graphics work

A

They are co-ordinates of objects making up pictures stored as mathematical data. Points described relative from origin.
The objects are comprised of paths, can be scaled and group together.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

What path features does each vector have

A

Start and end point coordinates
Length
Thickness
Colour

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Two types of compression

A

Lossless compression and lossy compression

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Define lossless compression and lossy compression

A

Lossless compression: File can be uncompressed, and o.g quality of image can be restored

Lossy compression: Some o.g image quality lost forever. So when decompress you cannot get it back

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

How does lossy JPEG work

A

Storing at reduced resolution
Reduced number of shades to one as not noticeable to human eye

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

How does lossless dictionary-based work

A

Contains token numbers that represent letters
Example:
Storing “Station nation creation”
tokens: “tion” = 1, “sta”=2, “na”=3, “crea”=4
so can be stored as ‘21 31 41’ which uses less data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

How does lossless run length encoding work

A

RLE (image based) takes account that images have long runs of pixel with same colour. So if 3 or more consecutive of same colour, run of cells is encoded into 2 bytes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Advantages and disadvantages of RLE

A

Advantages: Algorithm easy to implement and CPU does not require much horsepower
Computer generated colour images give fair compression ratios

Disadvantages: RLE only effective when file has lots of repetitive data

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

How does RLE work for monochrome data

A

Always start with number of whites, then alternate between black and white

How well did you know this?
1
Not at all
2
3
4
5
Perfectly