Representing Images 2.6 – Data Representation.

Slides:



Advertisements
Similar presentations
Graphics in the web Digital Media: Communication and Design
Advertisements

Lesson Objectives Explain the representation of an image as a series of pixels represented in binary Explain the need for meta data to be included in the.
Bitmapped Images 27 th November 2014 With Mrs
Data starts with width and height of image Then an array of pixel values (colors) The number of elements in this array is width times height Colors can.
Chpater 3 Resolution, File Formats and Storage. Introduction There are two factors that determine the quality of the picture you take; The resolution.
Color Names All standards-compliant browsers should handle these color names These color names can be used with the CSS properties of color and background-color.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Storing Graphics EXTENSION.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
GCSE Computing#BristolMet Session Objectives#9 MUST identify the data needed for a computer to display an image correctly (metadata) SHOULD describe the.
© GCSE Computing Candidates should be able to:  explain the representation of an image as a series of pixels represented in binary  explain the need.
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Images Data Representation. Objectives  Understand the terms bitmap & pixel  Understand how bitmap images are stored using binary in a computer system.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Image Representation. Objectives  Bitmaps: resolution, colour depth and simple bitmap file calculations.  Vector graphics: drawing list – objects and.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Chapter 4: Representation of data in computer systems: Images OCR Computing for GCSE © Hodder Education 2011.
44212: Web-site Development Optimising Images for Web-pages Ian Perry Room:C49 Extension:7287
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Representation of Images You need to know: (k) explain the representation of an image as a series of pixels represented in binary (l) explain the need.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Computer Systems Nat 4.5 Computing Science Data Representation Lesson 4: Representing and Storing Graphics EXTENSION.
Image File Formats. What is an Image File Format? Image file formats are standard way of organizing and storing of image files. Image files are composed.
POWERPOINT PLUS 11/17/07 Class Notes. WHAT IS A PIXEL A pixel is a number that represents the intensity of light at a square spot in the picture. Pixels.
Digital File Formats By Ali Aslam. JPEG JPEG Stands for Joint Photographic Experts Group. JPEG uses a lossy compression routine. Lossy compression means.
Digital Graphics for Computer Games Pixels Types of Digital Graphics (Raster and Vector) Compression.
DATA REPRESENTATION IMAGES GCSE Computing. Learning Objective ■ To understand how an image is represented in Binary ■ To be able to convert a Binary code.
Representation of Data in Computer Systems
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Information Systems Design and Development Media Types Computing Science.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
OBJECTIVE AND OUTCOMES Objective: To be able to create images in binary format and understand the part metadata plays in recreating images. Outcomes:
Computer Systems Nat 5 Computing Science Data Representation
Unit 2.6 Data Representation Lesson 3 ‒ Images
Lesson Objectives Aims You should be able to:
BITMAPPED IMAGES & VECTOR DRAWN GRAPHICS
AP CSP: Pixelation – B&W/Color Images
Image and Sound Representation
Storing Graphics Nat 5 Data Representation Lesson 4a: Storing Graphics
Vocabulary byte - The technical term for 8 bits of data.
Data Representation Images.
Representing images.
Computer Systems Nat 4/5 Data Representation Lesson 4:
Binary Representation in Audio and Images
Computer Science Higher
Pixel, Resolution, Image Size
How to Convert Pictures into Numbers
CS Principles U2L3 Encoding B&W Images.
Raster Images CPSC 1030.
A computer display is made up of small squares, called pixels.
Learning Intention I will learn how a computer stores graphics.
GRAPHICS Source:
Digital Images.
File size and image quality
Images in Binary.
Data Representation.
Bitmap, Vector, Pixels, Resolution, Metadata.
What do these words mean to you?
Web Design and Development
Summer Term Year 10 Slides
1. Explain how ASCII is used to represent text in a computer system
Lesson 3 & 4: Encoding Images
Nuts and Bolts of Digital Imaging
Web Programming– UFCFB Lecture 7
Multimedia System Image
Computer Systems Nat 4.5 Computing Science Data Representation
Basic Concepts of Digital Imaging
Computer Systems Nat 4/5 Data Representation Lesson 4:
Lesson 3 & 4: Encoding Images
WJEC GCSE Computer Science
Year 8 Unit 2 Bitmap Graphics
Presentation transcript:

Representing Images 2.6 – Data Representation

Wednesday, 21 November 2018 Representing Images Unit 2: Computational Thinking, Algorithms & Programming Wednesday, 21 November 2018 Representing Images Learning Objective: To be able to demonstrate an understanding of how images are stored using binary. Success Criteria: I can describe how images are stored using binary. I can explain how colour depth of an image is determined. I can explain the difference between lossy and lossless compression.

Unit 2: Computational Thinking, Algorithms & Programming Digital Images Graphics on a screen are made up of tiny blocks called pixels. The more pixels on the screen, the higher the resolution. The higher the image resolution, the more memory will be needed to store the image.

Unit 2: Computational Thinking, Algorithms & Programming Bitmaps Bitmap images are organised as a grid of coloured squares called pixels (short for ‘picture elements’). Each colour of an image is stored as a binary number. Look at the black n white image below: As each pixel is either black or white, it can be encoded with either a value or 0 for white, or 1 for black.

Unit 2: Computational Thinking, Algorithms & Programming Colour Depth The colour depth of an image is measured in bits. The number of bits indicates how many colours are available for each pixel. In the black & white image, only 2 colours are needed, so it has a colour depth of 1 bit. A 2-bit colour depth would allow four different values: 00, 01, 10, 11. Binary code Colour 00 White 01 Light grey 10 Dark grey 11 Black The greater the colour depth (bits per pixel), the more colours are available.

Colour Depth: Examples Unit 2: Computational Thinking, Algorithms & Programming Colour Depth: Examples This colour here has a 6 digit hexadecimal value (24 binary digit). Most computers use 24-bit images. This would be 1111 1111 1111 1111 1111 1111 in binary. This means that there are 16 million possible colours per pixel.

Unit 2: Computational Thinking, Algorithms & Programming Metadata Metadata means ‘data about data’. Image files usually contain metadata. This usually includes the following information: Filename File format (e.g. JPEG, PNG, GIF) Dimensions Resolution Colour depth Time and date the image was last changed Camera settings when the photo was taken GPS (where applicable)

Unit 2: Computational Thinking, Algorithms & Programming Compression Images are often compressed to reduce their file sizes (saving storage space). There are 2 main ways of achieving this: Lossy compression Lossless compression You can see a video here that explains the 2 different types of compression. https://www.bbc.com/education/guides/zqyrq6f/revision/4

Unit 2: Computational Thinking, Algorithms & Programming Lossy Compression This is when the file is compressed but loses some of it’s quality when this happens. The most common way is to reduce the colour depth from 24 bits to 8 bits but this can make the image appear granulated or have unusual colour blocks showing. JPEG is a lossy file compression type. Original image Compressed image

Unit 2: Computational Thinking, Algorithms & Programming Lossless Compression If we were going to send the following image then there are blocks of similar colour. Instead of sending the pixels individually for example for the first row they may save it as : red, red, red, blue, blue, red, red, red They could reduce the memory this takes up by saving the same line as: 3 x red, 2 x blue, 3 x red

Find out what colours these hexadecimal numbers represent: Unit 2: Computational Thinking, Algorithms & Programming Colour Representation Find out what colours these hexadecimal numbers represent: FF0000 1111 1111 0000 0000 0000 0000 00FF00 0000 0000 1111 1111 0000 0000 0000FF 0000 0000 0000 0000 1111 1111 All colours are made up of varying amounts of red, green and blue. You can see the hexadecimal value of millions of colours on this website: https://www.w3schools.com/colors/colors_picker.asp

Unit 2: Computational Thinking, Algorithms & Programming Theory Review What we have learned: Images are made up of picture elements called pixels. Each pixel is stored with a binary code. The larger the number of bits used for each pixel, the greater the number of colours stored, called the colour depth. Meta data (colour depth, width & height) is needed so the image can be recreated from the binary code in the image file.