01 Representing Images Flashcards
How does a camera capture an image
- it breaks up what it sees into a grid of pixels
- a light sensor measures the intensity of colour in each pixel
- each measurement is converted into a binary code using analogue-to-digital converter
Affect of number of pixels recorded
Number of bits used and file size
Bitmapped raster graphics
Created using a grid of pixels
Each pixel is give a colour value
Common bitmap file types
BMP
JPG
GIF
PNG
TIF
Resolution
The number of pixels used to make up a bitmap image
Width x height
Effect of resolution on image size
Resolution doesnt define the size of an image
If an image is made bigger or smaller the size of each pixel grows or shrinks to maintain the required resolution
Creating an image
Each pixel is given a binary value
Each value represents a different colour
Increasing the number of colours
More bits per pixel = more colour combinations
1 bit = 2
2 bits = 4
3 bits = 8
4 bits = 16
Variation in quality
Changing the colour depth of an image will affect the number of colours it can display
Calculating file size
Determined by the number of pixels used and the number of colour combinations available
Quality is traded off against file size
file size = pixels used x colour depth
to convert to bytes divide value by 8
examples of meta data
Data
Width and height
Colour depth
GPS coordinates