Graphics And Compression Flashcards
What is bit-mapped graphics
Where the image is divided into a grid, each cell is called a pixel and has its own colour
What is colour depth in an image
The number of bits used to represent a colour of a single pixel using RGB
How do you calculate image file size
Image size(in bits) = bits per colour x number of pixels
What is metadata and an example of what is usually stored in it
Data about data and is stored in the same file as the image data
E.g.
-Date created, Width and height, Colour depth and GPS coordinates where taken
What is vector graphics
Co-ordinates of objects making up pictures stored as mathematical data. Points are described by a relative distance from the origin. Objects are comprised of paths, which can be scaled and grouped together
Each Paths Features
- Start and end point in coords, Length, Thickness, Colour depth
What is Data Compression
The process of reducing the number if bits required to represent data
What are the two types of data compression
Lossy - Some of the original image quality is lost forever when decompressed cannot be retrieved
Lossless - The file can be uncompressed, and the original quality of the image can be restored
What is run length encoding (RLE)
When there are more than 3 pixels in a row which are the same colour RLE is used, the first byte is the number of pixels in the run and the second is the colour of them
Lossless
Name an advantage and a disadvantage of Run length encoding (RLE)
Adv
- Algorithm is very easy to implement and does not require much cpu power
- Computer-generated colour images can also give good compression ratios
Dis
- RLE is only efficient in files which contain lots of repeating data e.g. Spaces in text files or image files that contain lots of black and white
Dictionary based method
Lots of common beginnings and ends to words are stored in a dictionary with their own unique number, then these can be put together to form strings using just their unique numbers
Lossless
What is JPEG compression
Storing scenery at a reduced resolution versus the main part of the image
E.g. lots of blue sky in an image so reduce colours of blue in it to 1 instead of 16 different shades
Lossy