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

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

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

What You ll Learn Today

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

Image Perception & 2D Images

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

CS Lecture 10:

Unit 4.4 Representing Images

Lecture #2: Digital Images

Fundamentals of Multimedia

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

Digital Imaging and Image Editing

INTRODUCTION TO COMPUTER GRAPHICS

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

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

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

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

ITP 140 Mobile App Technologies. Images

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

Factors to Consider When Choosing a File Type

Digital Imaging & Photoshop

15110 Principles of Computing, Carnegie Mellon University

Image Optimization for Print and Web

CSC 170 Introduction to Computers and Their Applications. Lecture #3 Digital Graphics and Video Basics. Bitmap Basics

Graphics for Web. Desain Web Sistem Informasi PTIIK UB

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

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

PENGENALAN TEKNIK TELEKOMUNIKASI CLO

MOTION GRAPHICS BITE 3623

Digital Images: A Technical Introduction

Images and Colour COSC342. Lecture 2 2 March 2015

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

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

Color and Images. Computer Science and Engineering College of Engineering The Ohio State University. Lecture 16

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.

4 Images and Graphics

Using Adobe Photoshop

*Which code? Images, Sound, Video. Computer Graphics Vocabulary

15110 Principles of Computing, Carnegie Mellon University

CATEGORY SKILL SET REF. TASK ITEM

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

CS101 Lecture 18: Audio Encoding. What You ll Learn Today

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

LECTURE 02 IMAGE AND GRAPHICS

Raster (Bitmap) Graphic File Formats & Standards

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

CMPT 165 INTRODUCTION TO THE INTERNET AND THE WORLD WIDE WEB

Digital photo sizes and file formats

Coreldraw Crash Course

Bit Depth. Introduction

Image Processing for Mechatronics Engineering For senior undergraduate students Academic Year 2017/2018, Winter Semester

HTTP transaction with Graphics HTML file + two graphics files

Glossary Unit 1: Hardware/Software & Storage Media

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.

Bitmap Image Formats

Developing Multimedia Assets using Fireworks and Flash

Unit 1.1: Information representation

TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES

Course Objectives & Structure

CHAPTER 3 I M A G E S

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

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

Images and Displays. Lecture Steve Marschner 1

PB Works e-portfolio Optimizing Photographs using Paintshop Pro 9

Assistant Lecturer Sama S. Samaan

Compression and Image Formats

Computer Science 121. Scientific Computing Chapter 12 Images

Understanding Image Formats And When to Use Them

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

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

CHAPTER 2 - DIGITAL DATA REPRESENTATION AND NUMBERING SYSTEMS

Photoshop Domain 2: Identifying Design Elements When Preparing Images

LECTURE 03 BITMAP IMAGE FORMATS

Digital Asset Management 2. Introduction to Digital Media Format

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

Section 1. Adobe Photoshop Elements 15

Photoshop 01. Introduction to Computer Graphics UIC / AA/ AD / AD 205 / F05/ Sauter.../documents/photoshop_01.pdf

Vector VS Pixels Introduction to Adobe Photoshop

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

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

Computers and Imaging

Digital Imaging - Photoshop

Applying mathematics to digital image processing using a spreadsheet

What is an image? Images and Displays. Representative display technologies. An image is:

Computer Graphics. Rendering. Rendering 3D. Images & Color. Scena 3D rendering image. Human Visual System: the retina. Human Visual System

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

Elements of Design. Basic Concepts

Introduction to Photography

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

BEST PRACTICES FOR SCANNING DOCUMENTS. By Frank Harrell

Adding some light to computing. Lawrence Snyder University of Washington, Seattle

Picsel epage. Bitmap Image file format support

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

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

CGT 511. Image. Image. Digital Image. 2D intensity light function z=f(x,y) defined over a square 0 x,y 1. the value of z can be:

Introduction to Multimedia Computing

CS 200 Assignment 3 Pixel Graphics Due Monday May 21st 2018, 11:59 pm. Readings and Resources

BMMB 597D - Practical Data Analysis for Life Scientists. Week 13 -Lecture 25. István Albert Huck Institutes for the Life Sciences

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

Digital Image Processing Introduction

Transcription:

CS101 Lecture 19: Digital Images John Magee 18 July 2013 Some material copyright Jones and Bartlett 1 Overview/Questions What is digital information? What is color? How do pictures get encoded into binary representation? Why do images take so long to download from the web? 2 1

Analog and Digital Information Computers are finite! How do we represent an infinite world? We represent enough of the world to satisfy our computational needs and our senses of sight and sound. 3 Analog and Digital Information We say that information can be represented in one of two ways: analog or digital. Analog A continuous representation, analogous to the actual information it represents. Digital A discrete representation, breaking the information up into finite elements. 4 2

Analog Information Example: Analog Thermometer The mercury (or alcohol) rises continuously in direct proportion to the temperature. What exactly is this reading? 5 Digital Information Example: Digital Thermometer This reading is discrete. Some detail is lost in converting to digital information. What is the actual temperature? 6 3

Analog and Digital Information Computers store information in a discrete form (binary). To represent analog information, we need to digitize the data. Digitizing Creating a discrete representation of analog data, suitable for storage and manipulation by a digital computer. 7 a thousand words? A picture is worth Describe this image with enough detail to recreate it. How would a computer describe the image? 8 4

Digitizing an Image Sampling: Taking measurements (of color) at discrete locations within the image. Sampling rate: 16 samples per inch (in each direction) Digitizing an Image Sampling: Measure the color for each pixel, and record that color. 16 pixels per inch Quantization: determine a discrete value for each pixel. 5

Color Representing Images Our perception of the frequencies of light that reach the retinas of our eyes. The human retina has three types of color photoreceptor cone cells that correspond to the colors of red, green, and blue. Spectra of visible light (in nm) 11 RGB Encoding The RGB color model is an additive model, in which red, green, and blue (RGB) colors are combined in various ways to reproduce other colors. Here is a picture taken in full color, along with its red, green, and blue components. 12 6

RGB Encoding Color is expressed as an RGB value three numbers that indicate the relative contribution of each of these primary colors. Color mixing example: Turn on all red and all green and no blue, which results in a bright yellow. 13 Color Depth refers to the number of bits used to represent a color. Color Depth Color Graphics Adapter The original CGA color monitor from IBM. 2 bits per color (6 bits total) supported up to 64 possible colors (2 6 = 64) (only 16 at a time, though) The standard 16 CGI colors 14 7

Color Depth HiColor A 16-bit color depth: five bits used for each number in an RGB value with the extra bit sometimes used to represent transparency 15 color bits 2 15 or 32,768 colors TrueColor A 24-bit (3 byte) color depth: eight bits used for each number in an RGB value 24 color bits 2 24 or 16,777,216 colors 15 A Sampling of RGB Color Codes 16 8

Digitized Images and Graphics Digitizing a picture Representing it as a collection of individual dots of color called picture elements (pixels). Resolution The number of pixels used to represent a picture, measured in width times height. Standard screen resolution is 1024 x 768. Spatial Sampling The sampling happens two space dimensions. 17 What Digital Cameras Do A digital camera has electronic image sensor which measures the color at each pixel. One megapixel: 1200 * 900 10 megapixels: 3872 * 2592 http://www.comedycentral.com/episodes/hn0e41/futurama-the-thief-of-baghead-season-7-ep-704 18 9

Digitized Images and Graphics A digitized picture composed of many individual pixels. 19 Digitized Images and Graphics In this magnified portion, we can see the individual pixels. 20 10

Digitized Images and Graphics Raster/Bitmap Graphics Storage of data on a pixel-by-pixel basis Bitmap (BMP), GIF, JPEG, and PNG, for example How much data is required to represent a picture? Typical size might be 1024 by 768 pixels (~ 800,000) At 3 bytes per pixel, about 2,400,000 bytes for one picture! 21 Same Picture, many formats Original image was 2048 * 1536 pixels All others are 320 * 428 pixels Note Bitmap: 320 * 428 * 3 = 410880 bytes 22 11

Recall: Data Compression Data compression Reduction in the amount of space needed to store a piece of data. Data compression techniques can be: lossless, which means the data can be retrieved without any loss of the original information lossy, which means some information may be lost in the process of compaction 23 Raster Graphics Formats Bitmap format 24-bit. Contains the pixel color values for every single pixel in the image. Not compressed. GIF format (indexed color) Each image is made up of only 256 colors. JPEG format 24-bit color, with lossy compression. JPEG can typically achieve 90% or 95% reduction in file image size without a visible loss in quality. Additional Reference: http://en.wikipedia.org/wiki/image_compression http://www.faqs.org/faqs/jpeg-faq/part1/ 24 12

Vector Graphics Example Describe this picture Vector Graphics assignment by CS108 student, Spring 2008 25 Vector Graphics Vector Graphics A format that describes an image in terms of lines and geometric shapes. A series of commands that describe a line s direction, thickness, and color. 26 13

Vector Graphics Example A vector-graphics example in Python. 27 Vector Graphics Advantages: Small file sizes Resize mathematically What are the disadvantages? 28 14

Raster vs Vector Graphics Which format is better for certain pictures? Drawings, Diagrams, etc. Lifelike images. 29 Image Manipulation Software Recall: We use software to do different things with computers. There are many different image manipulation software packages, e.g.: Paint Built in to windows Photoshop Commercial software Irfanview Free software Paintshop Pro Shareware/Commercial GIMP Free software 30 15

Take-Away Points Analog and Digital Information RGB Color Encoding Color Depth Pixels and Resolution Raster Graphics Vector Graphics Lossy vs. Lossless compression Factors in image file size 31 Student To Dos Readings: Reed ch 3, pp 44-50 (HTML Stuff) HW on Alice Methods (Ch 2) due today. HW on Networking due Monday. HW on Alice Variables/Functions to be posted. HW on number systems to be posted. Check course schedule for HW postings. 32 16