Image Representation

Recap Questions

  1. How many bits are in extended ASCII?
  2. What is the difference between ASCII and Unicode?
  3. What is 00110101 in Denary?
  4. What is 50 in Binary?
  5. Which of these units is most appropriate for a music track?

a. GB

b. KB

c. MB

d. B

Recap Questions - Answers

  1. 8
  2. Unicode allows for the coding of all languages including emoji's and is commonly used across the internet.
  3. 53
  4. 00110010
  5. MB

Learning Objectives

  • To be able to calculate the file size of a BITMAP image
  • To be able to describe what a pixel is and how they relate to BITMAP images
  • To be able to describe colour depth and resolution

Digital Images

  • Digital images can be stored in a computer in many different file formats 

 

  • Can you name 5 different file formats used to store images?

Answer in your notebook 

Image File Types

Bitmap image file formats include:

  • BMP
  • JPG
  • GIF
  • PNG
  • TIFF

Vector image file formats include:

  • SVG

There are also editing formats such as Illustrator (AI) and Photoshop (PS)

Bitmap (or Raster) Images

Bitmap images are made up of PICture ELements or pixels

 

A pixel is the smallest identifiable area of an image

Each pixel is a single colour and is given a binary value which represents that colour. E.g., 111100000000 might equal red. 

 

A pixel's colour can be changed by changing this value

Image Resolution

Resolution is the concentration of pixels within a specific area

The area is defined by the image width and height in pixels, e.g., 1920x1080

  • 72 PPI (Pixels Per Inch) = typical screen resolution
  • 300 DPI (Dots Per Inch) = print quality resolution
  • Smartphones may have very high resolutions, 300+ PPI

Image Resolution

Resolution is the concentration of pixels within a specific area

The area is defined by the image width and height in pixels, e.g., 1920x1080

  • 72 PPI (Pixels Per Inch) = typical screen resolution
  • 300 DPI (Dots Per Inch) = print quality resolution
  • Smartphones may have very high resolutions, 300+ PPI

Task 

In the first image there is a musical note, 

To the right, can you write out the binary to create that line of the image. 

 

For the second blank table, you can create your own design and then write out the binary code for it. 

File Size of an Image

Height x Width x Colour Depth

 

 

Find the height of the image in pixels.

 

Find the width of the image in pixels.

46

29

File Size of an Image

Height x Width x Colour Depth

46 x 29 x Colour Depth

 

Next step, work out the Colour Depth. 

 

This is more than just the number of colours. 

File Size of an Image

To work out the colour depth, you need to look at how many bits are needed to represent the colours you have available in your image.

White

Black

Yellow

Orange

Red

Brown

White      000

Black       001

Yellow     010

Orange   011

Red         100

Brown     101

2. How many bits do we need to create a unique code for each colour?

1. How many individual colours do we have?

3 bits of information per colour

File Size of an Image

Height x Width x Colour Depth

46 x 29 x 3 = File size in bits

 

4002 bits

How large would this be in bytes?

501 bytes

Task

What would be the file size of this image in:

a. bits

b. bytes

Task

What would be the file size of this image in:

a. 1672 bits

b. 209 bytes

L4 - Image Representation

By CJackson

L4 - Image Representation

  • 191