Learning Outcomes. Black and White pictures. Bitmap Graphics. COMPSCI 111/111G Digital Images and Vector Graphics

Similar documents
COMPSCI 111 / 111G Mastering Cyberspace: An introduction to practical computing. Digital Images Vector Graphics

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

INTRODUCTION TO COMPUTER GRAPHICS

LECTURE 03 BITMAP IMAGE FORMATS

Digital Imaging & Photoshop

Image Optimization for Print and Web

Fundamentals of Multimedia

CS101 Lecture 19: Digital Images. John Magee 18 July 2013 Some material copyright Jones and Bartlett. Overview/Questions

Specific structure or arrangement of data code stored as a computer file.

LECTURE 02 IMAGE AND GRAPHICS

Raster (Bitmap) Graphic File Formats & Standards

HTTP transaction with Graphics HTML file + two graphics files

Coreldraw Crash Course

Topics. 1. Raster vs vector graphics. 2. File formats. 3. Purpose of use. 4. Decreasing file size

1. Describe how a graphic would be stored in memory using a bit-mapped graphics package.

Bitmap Vs Vector Graphics Web-safe Colours Image compression Web graphics formats Anti-aliasing Dithering & Banding Image issues for the Web

Unit 4.4 Representing Images

Digital Images. Digital Images. Digital Images fall into two main categories

Digital Imaging and Image Editing

Sampling Rate = Resolution Quantization Level = Color Depth = Bit Depth = Number of Colors

4 Images and Graphics

Dr. Shahanawaj Ahamad. Dr. S.Ahamad, SWE-423, Unit-06

CS 262 Lecture 01: Digital Images and Video. John Magee Some material copyright Jones and Bartlett

B.Digital graphics. Color Models. Image Data. RGB (the additive color model) CYMK (the subtractive color model)

15110 Principles of Computing, Carnegie Mellon University

1. Using Images on Web Pages 2. Image Formats 3. Bitmap Image Formats

6. Graphics MULTIMEDIA & GRAPHICS 10/12/2016 CHAPTER. Graphics covers wide range of pictorial representations. Uses for computer graphics include:

Lecture #2: Digital Images

The BIOS in many personal computers stores the date and time in BCD. M-Mushtaq Hussain

15110 Principles of Computing, Carnegie Mellon University

ITP 140 Mobile App Technologies. Images

Image Perception & 2D Images

Using Adobe Photoshop

Adobe Fireworks CS4 Kalamazoo Valley Community College February 25, 2010

What You ll Learn Today

CS101 Lecture 12: Digital Images. What You ll Learn Today

Glossary Unit 1: Hardware/Software & Storage Media

Applying mathematics to digital image processing using a spreadsheet

Digital Files File Format Storage Color Temperature

Introduction to Photography

MOTION GRAPHICS BITE 3623

PCCLUB.ORG.UK Tuesday, 3 rd May 2005 Stuart Crump. Picture Editing, Printing & Publishing Tutorial 1 of 2

IMAGE SIZING AND RESOLUTION. MyGraphicsLab: Adobe Photoshop CS6 ACA Certification Preparation for Visual Communication

Factors to Consider When Choosing a File Type

Indexed Color. A browser may support only a certain number of specific colors, creating a palette from which to choose

Bitmap Image Formats

Images and Graphics. 4. Images and Graphics - Copyright Denis Hamelin - Ryerson University

UNIT 7C Data Representation: Images and Sound

Digital Imaging - Photoshop

PHOTOGRAPHY AND DIGITAL IMAGING

TEST INFORMATION: 40 questions 50 minutes 70% minimum required to pass. Score is based on a 1000 pt system so passing will be a 700.

Corporate Logo Guidelines

Developing Multimedia Assets using Fireworks and Flash

STANDARD ST.67 MAY 2012 CHANGES

raw format format for capturing maximum continuous-tone color information. It preserves all information when photograph was taken.

Basic photography Art, composition, and computer principles AEE 211 February 24, 2003

Images and Colour COSC342. Lecture 2 2 March 2015

Pros and Cons for Each Type of Image Extensions

UNIT 7B Data Representa1on: Images and Sound. Pixels. An image is stored in a computer as a sequence of pixels, picture elements.

Byte = More common: 8 bits = 1 byte Abbreviation:

Computers & Philately Overview

Digital photo sizes and file formats

CATEGORY SKILL SET REF. TASK ITEM

Resizing images for the web using. Version 1.3. WrightWay. Design.

CMPSC 390 Visual Computing Spring 2014 Bob Roos Review Notes Introduction and PixelMath

Digital Images: A Technical Introduction

The Need for Data Compression. Data Compression (for Images) -Compressing Graphical Data. Lossy vs Lossless compression

apt solutions, inc. Tips Graphics - An Introduction Vector vs. Raster Graphics Vector Graphics

Resolution: The Peanut Butter Analogy

CHAPTER 3 I M A G E S

Bit Depth. Introduction

Color, graphics and hardware Monitors and Display

Lecture 9: Digital Images

Photoshop CS6. Table of Contents. Image Formats! 3. GIF (Graphics Interchange Format)! 3. JPEG or JPG (Joint Photographic Experts Group)!

Photoshop Domain 2: Identifying Design Elements When Preparing Images

A raster image uses a grid of individual pixels where each pixel can be a different color or shade. Raster images are composed of pixels.

PAINT Pa and DRAW Dr aw

The next table shows the suitability of each format to particular applications.

UNIT 7C Data Representation: Images and Sound Principles of Computing, Carnegie Mellon University CORTINA/GUNA

ITP 140 Mobile App Technologies. Colors Images Icons

Digital Media. Lecture 4: Bitmapped images: Compression & Convolution Georgia Gwinnett College School of Science and Technology Dr.

CHAPTER 8 Digital images and image formats

Lecture - 3. by Shahid Farid

WordPress Users Group Manchester, NH July 13, Preparing Images for the Web. Daryl Johnson SvenGrafik

Q A bitmap file contains the binary on the left below. 1 is white and 0 is black. Colour in each of the squares. What is the letter that is reve

File Formats and the Properties of Digital Images and Graphics Instructions and answers for teachers

Chapter 11. Preparing a Document for Prepress and Printing Delmar, Cengage Learning

Starting a Digitization Project: Basic Requirements

Photoshop Elements. Lecturer: Ivan Renesto. Course description and objectives. Audience. Prerequisites. Duration

Multimedia. Graphics and Image Data Representations (Part 2)

Raster Image File Formats

4/9/2015. Simple Graphics and Image Processing. Simple Graphics. Overview of Turtle Graphics (continued) Overview of Turtle Graphics

Understanding Image Formats And When to Use Them

Computer Programming

UNIVERSITY OF CALICUT INTRODUCTION TO MULTIMEDIA QUESTION BANK

PB Works e-portfolio Optimizing Photographs using Paintshop Pro 9

Elements of Design. Basic Concepts

OSA Sponsorship Order Form

Transcription:

Learning Outcomes COMPSCI 111/111G Digital Images and Vector Graphics Lecture 13 SS 2018 Students should be able to: Describe the differences between bitmap graphics and vector graphics Calculate the size in bytes of a bitmap image Compare and contrast different compression methods (jpeg, gif and png) The Seine and La Grande Jatte Springtime George Seurat 1888 2 Bitmap Graphics Black and White pictures Storing pictures digitally Sample the image (divide into dots) Image resolution (number of dots) 200 x 250 40 x 50 20 x 25 Digital Pictures consist of small dots Each dot is called a picture element (pixel) Storing information Black and White are only two states Use bits to represent pixels (0 = OFF, 1 = ON) One to one mapping, so known as Bitmap 0 0 0 0 0 1 1 0 0 1 1 0 0 0 0 0 0000011001100000 http://en.wikipedia.org/wiki/raster_graphics 3 4 http://en.wikipedia.org/wiki/pixel

Displaying images Resizing bitmap images Images are displayed on an output device Screen / Printer Physical devices have limitations Printer Screen Very small dots Large dots 5 6 Resizing images Printing Bitmaps Image information with given resolution 8 x 6 pixels Sampled at higher resolution 16 x 12 Sampled at lower resolution 4 x 3 Printer and Screen have different sized dots Scale (resample) the bitmap to ensure it looks good on both Printer resolution 600 or 1200 dpi Printer On disk Screen resolution 72 dpi On screen 8 7 COMPSCI 111/111G - Digital Images 17/01/2018

Exercises Imagine you have taken a picture with a 4 megapixel digital camera. For ease of calculation, assume that the picture is square, not rectangular. 4 million pixels Assume that you are printing this picture out on a printer that has approximately 4000 dots per inch. How many inches across would the picture be when it was printed? If you viewed this image on a screen that had 1000 dots across, what portion of the image would be visible? Colour Bitmaps Colours Use more than 1 bit per pixel Map the binary number to a colour Bits Colour 0000 Black 1100 0010 1111 1111 0001 Red 1010 0101 0010 1111 1000 0111 0000 1101 0010 Green 0110 1111 1110 1010 0011 Blue Each pixel uses 4 bits 0100 Yellow Colour table used for display 9 10 How much memory is required? Exercises One binary number used for each pixel 1 bit 2 colours 2 bits 4 colours 4 bits 16 colour 8 bits 256 colours 16 bits 65536 colours 24 bits 16,777,216 colours How many colours can be represented by 3 bits? How many bits are required to represent 128 different colours? How many bits are required for a 16 colour image 100 pixels wide x 8 pixels high? 100x8x4 = 3200 bits = 400 bytes An image using 24 bit colour, 1000 wide x 1000 high (1 Megapixel)? 3 MB How much memory would be required to store a black and white image that is 10 pixels high and 5 pixels wide? Show your working. 11 12

Exercises Displays How much memory (in bytes) would be required to store an image that has 256 different colours and is 3 pixels high and 5 pixels wide? Show your working. Screens use a combination of Red, Green and Blue lights RGB colour A single pixel at distance A single pixel close up Use one byte (8 bits) for each colour 256 different levels of red brightness 256 different levels of green brightness 256 different levels of blue brightness 13 14 Compressing Images Simply reducing number of colours Compression Algorithms Graphics Interchange Format (GIF) Lossless method 256 colours Good for graphics, poor for photos Uses an algorithm that was patented 31,942 colours 75 KB 256 colours 40 KB 16 colours 20 KB Image is 200 pixels wide, 200 pixels high = 40,000 pixels Image Size: 200x100 Original (256 colours): 20KB GIF (256 colours): 3KB Original (256 colours): 40KB GIF (256 colours): 32KB http://en.wikipedia.org/wiki/gif 15 16

Compression Algorithms Portable Network Graphics (PNG) Replacement to GIF Lossless method 16 million colours (24 bit) Good for graphics, poor for photos Compression Algorithms - JPEG Joint Photographic Experts Group (JPEG) Lossy method 16 Million colours (24 bit) Averages nearby colours Different degrees of compression Good for photos, poor for graphics Image Size: 200x100 Original: 60KB JPEG (50%): 5KB Image Size: 200x100 Original (256 colours): 20KB PNG (16M colours): 4KB http://en.wikipedia.org/wiki/png 17 Original (16M colours): 120KB PNG (16M colours): 68KB Original: 120KB JPEG (50%): 6KB Original: 120KB JPEG (99%): 2KB http://en.wikipedia.org/wiki/jpeg 18 Vector Graphics Object-oriented graphics Objects created independently Defined by mathematical formulae Bitmap and Vector Graphics Advantages Very small memory requirements Memory independent of the image size Scale to any size without loss of quality Object Type: Square Height: 100 Width: 100 Position_X: 354 Position_Y: 289 Fill Colour: Light Blue http://en.wikipedia.org/wiki/vector_graphics 19 Bitmap.gif,.jpg,.png 20 Vector Graphics.svg

Scalable Vector Graphics Format for representing vector graphics images Open standard created by W3C New, gaining popularity XML, text file similar to HTML <?xml version="1.0" encoding="utf-8" standalone="yes"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/graphics/svg/1.1/dtd/svg11.dtd"> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.1" width="520" height="520"> <style type="text/css"> <![CDATA[ text{font-size:362px;fontweight:bold;font-family:"times New Roman", serif} #P0 {fill:#d4a000;stroke:#000;stroke-width:9} #P1 {fill:url(#tl)} #P2 {fill:url(#bl)} #P3 {fill:url(#br)} #P4 {fill:url(#tr)} ]]> </style> <defs> <lineargradient id="dk"> <stop/> <stop style="stop-opacity:0" offset="1"/> </lineargradient> <lineargradient id="lt"> <stop style="stop-color:#ffe681"/> <stop style="stop-color:#ffe681;stop-opacity:0" offset="1"/> </lineargradient> <lineargradient x1="136.4" y1="136.4" x2="167.5" y2="167.5" id="tl" xlink:href="#lt" gradientunits="userspaceonuse"/> <lineargradient x1="136.4" y1="383.6" x2="167.5" y2="352.5" id="bl" xlink:href="#lt" gradientunits="userspaceonuse"/> <lineargradient x1="383.6" y1="383.6" x2="352.5" y2="352.5" id="br" xlink:href="#dk" gradientunits="userspaceonuse"/> <lineargradient x1="383.6" y1="136.4" x2="352.5" y2="167.5" id="tr" xlink:href="#dk" gradientunits="userspaceonuse"/> </defs> <path id="p0" d="m260,6.3l 6.3,260L 260,513.7L 513.7,260L 260,6.3z"/> <text y="380" x="200">!</text> <path id="p1" d="m260,12.7l 260,75L 75,260L 12.7,260L 260,12.7z"/> <path id="p2" d="m260,507.3l 260,445L 75,260L 12.7,260L 260,507.3z"/> <path id="p3" d="m260,507.3l 260,445L 445,260L 507.3,260L 260,507.3z"/> <path id="p4" d="m260,12.7l 260,75L 445,260L 507.3,260L 260,12.7z"/> </svg> http://en.wikipedia.org/wiki/svg 21 Summary Bitmap Images Pixel width x pixel height = resolution Use numbers to encode colour of each pixel (more colours = more bits per pixel) Look jagged when enlarged too much Take a lot of memory but can be compressed (e.g. JPG) Vector Images Defined by mathematical formulae Can be enlarged and still look nice Small compared to bitmap images 22