Department of Physics and Astronomy DIGITAL IMAGE PROCESSING

Slides:



Advertisements
Similar presentations
Md. Monjur –ul-Hasan Department of Computer Science & Engineering Chittagong University of Engineering & Technology Chittagong 4349
Advertisements

School of Computing Science Simon Fraser University
Multimedia for the Web: Creating Digital Excitement Multimedia Element -- Graphics.
Graphics in the web Digital Media: Communication and Design
1 A Balanced Introduction to Computer Science, 2/E David Reed, Creighton University ©2008 Pearson Prentice Hall ISBN Chapter 12 Data.
Guilford County SciVis V106.01
V Obtained from a Guildford County workshop-Summer, 2014.
Roger Cheng (JPEG slides courtesy of Brian Bailey) Spring 2007
Image and Sound Editing Raed S. Rasheed Image Image. Digital image. – Raster images. – Vector Images. – Stereo Images. – Image File Formats Lossless.
Part A Multimedia Production Rico Yu. Part A Multimedia Production Ch.1 Text Ch.2 Graphics Ch.3 Sound Ch.4 Animations Ch.5 Video.
Zinnia Bell. RAWimages are image files that have not yet processed, they contain minimally processed data from the image sensor of either a image scanner,
Fundamentals Rawesak Tanawongsuwan
1 Creating Web Graphics Outline 2.1 Graphics Types 2.2 Vector Graphics 2.3Bitmapped Graphics 2.4Graphics for the Web 2.5 GIF (Graphics Interchange Format)
CS 1308 Computer Literacy and the Internet. Creating Digital Pictures  A traditional photograph is an analog representation of an image.  Digitizing.
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
1 Ethics of Computing MONT 113G, Spring 2012 Session 11 Graphics on the Web Limits of Computer Science.
COMP Bitmapped and Vector Graphics Pages Using Qwizdom.
Image processing Second lecture. Image Image Representation We have seen that the human visual system (HVS) receives an input image as a collection of.
CSCI-235 Micro-Computers in Science Hardware Part II.
Topic 2 - Overview of Image Acquisition and Processing Systems DIGITAL IMAGE PROCESSING Course 3624 Department of Physics and Astronomy Professor Bob Warwick.
Computers and Scientific Thinking David Reed, Creighton University Data Representation 1.
Lab #5-6 Follow-Up: More Python; Images Images ● A signal (e.g. sound, temperature infrared sensor reading) is a single (one- dimensional) quantity that.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
1 Image Basics Hao Jiang Computer Science Department Sept. 4, 2014.
Image Storage Bitmapped Graphics – in which an image is represented as a collection of dots Vector Graphics – in which an image is represented as a set.
 Refers to sampling the gray/color level in the picture at MXN (M number of rows and N number of columns )array of points.  Once points are sampled,
1 Perception, Illusion and VR HNRS 299, Spring 2008 Lecture 14 Introduction to Computer Graphics.
Bit-Mapped Graphic Data: Input (Capture) Hardware Multimedia – Section 2.
Common file formats  Lesson Objective: Understanding common file formats and their differences.  Learning Outcome:  Describe the type of files which.
Digital Cameras And Digital Information. How a Camera works Light passes through the lens Shutter opens for an instant Film is exposed to light Film is.
1 Ethics of Computing MONT 113G, Spring 2012 Session 10 HTML Tables Graphics on the Web.
Data Compression. Compression? Compression refers to the ways in which the amount of data needed to store an image or other file can be reduced. This.
Information Processes and Technology Multimedia: Graphics.
Chapter 2 : Imaging and Image Representation Computer Vision Lab. Chonbuk National University.
1 COMS 161 Introduction to Computing Title: Digital Images Date: November 12, 2004 Lecture Number: 32.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Image formats. Basic terminologies… Pixels: Pixels are the building blocks of every digital image. a pixel is a single point in a graphic image. Resolutions:
Addressing Image Compression Techniques on current Internet Technologies By: Eduardo J. Moreira & Onyeka Ezenwoye CIS-6931 Term Paper.
Chapter 1. Introduction. Goals of Image Processing “One picture is worth more than a thousand words” 1.Improvement of pictorial information for human.
1 Image Formats. 2 Color representation An image = a collection of picture elements (pixels) Each pixel has a “color” Different types of pixels Binary.
A Simple Image Model Image: a 2-D light-intensity function f(x,y)
Image Representation. Digital Cameras Scanned Film & Photographs Digitized TV Signals Computer Graphics Radar & Sonar Medical Imaging Devices (X-Ray,
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
Web Graphics. Colours and Display Graphics and Modems 28.8kbps = 3.6 KB per second 36 KB takes 10 seconds to load. Pixels and color.
Graphics An image is made up of tiny dots called pixels (“picture elements”) The resolution determines the.
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
CSCI-100 Introduction to Computing Hardware Part II.
Digital Images are represented by manipulating this…
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.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
1 Perception and VR MONT 104S, Fall 2008 Lecture 20 Computer Graphics and VR.
Intelligent Vision Systems Image Geometry and Acquisition ENT 496 Ms. HEMA C.R. Lecture 2.
Lesson 2: Introduction to Digital Imaging Digital Photography MITSAA IAP 2003 Rob Zehner.
Image File Formats By Dr. Rajeev Srivastava 1. Image File Formats Header and Image data. A typical image file format contains two fields namely Dr. Rajeev.
Image File Formats Harrow Computer Club – Wed, 1 Dec 2010 Bob Watson MA CMath MIMA MBCS.
TOPIC 4 INTRODUCTION TO MEDIA COMPUTATION: DIGITAL PICTURES Notes adapted from Introduction to Computing and Programming with Java: A Multimedia Approach.
JPEG Lafi Al-Anazi EE What is JPEG? - JPEG (pronounced "jay-peg") is a standardized image compression mechanism. JPEG stands for Joint Photographic.
Graphics and Image Data Representations 1. Q1 How images are represented in a computer system? 2.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
1 A Balanced Introduction to Computer Science David Reed, Creighton University ©2005 Pearson Prentice Hall ISBN X Chapter 12 Data Representation.
Graphics and image data representation
Data Representation.
Sampling, Quantization, Color Models & Indexed Color
Raster Images CPSC 1030.
Chapter III, Desktop Imaging Systems and Issues: Lesson IV Working With Images
Representing Images 2.6 – Data Representation.
Web Design and Development
COMS 161 Introduction to Computing
Multimedia System Image
Presentation transcript:

Department of Physics and Astronomy DIGITAL IMAGE PROCESSING Course 3624 Topic 3 - Digital Images Professor Bob Warwick

3.1 What is a Digital Image? An analogue image is a 2-dimensional (2-d) continuous light intensity distribution, , where x and y are spatial coordinates. A digital image is a representation of the continuous (analogue) image by a 2-d array of numbers. The digital image is obtained by sampling at points on a regular grid. The amplitude at each sampling point is quantized, and represented (initially) as a binary number. Notes: After processing the digital image may be stored as a 2-d array of integers, real or complex numbers. Each element of the 2-d array is a pixel (derived from “picture element”).

Analogue versus Digital Image Formats Analogue Image Digital Image (M x N Pixels) x y (0,Y) (0,0) (X,0) (X,Y) f00 f01 f10 f02 f20 x’ y’ fM-1,N-1 Continuous variables x,y x = 0  X y = 0  Y Indices x’,y’ x' = 0,1,2  M-1 y' = 0,1,2  N-1

Sampling on a M x N spatial grid: The two-step process Sampling on a M x N spatial grid: Cell size is: Δx = X/M Δy = Y/N Sampling points in x & y are: x= (x’ + 0.5) Δx y= (y’ + 0.5) Δy x’ y’ 1 2 . 0 1 2 ………

Rounded down to an integer Quantization Step where p is an integer which defines the number of quantization levels, eg p = 8 implies 256 levels. Then assign: Rounded down to an integer value

Quantization Step 2p – 1 2p - 2 2 1 The exponent p corresponds to the number of bits in the Analogue-to-Digital conversion employed in the digitization. Notes: Hereafter  = the "gray level" Range 0  2P-1 is known as the grayscale of the image

Construction of a Digital Colour Image A digital monochrome image consists of a 2-d array of numbers. A digital colour image consists of three such 2-d arrays (one for each component colour.

3.2 Information Loss in Digitization Quantization Step Noise is added equivalent to roughly 1/3 of an ADC step (ie 1 bit)

Information Loss in Spatial Sampling x The above depicts two sinusoidal signals in an input 1-d (analogue) image that fit the same set of sample values. If the input contains signals varying such that: signal rate > sampling rate/2 then information may be lost (as above). This problem is known as ALIASING – see topic 7.

3.3 Image Quality Considerations Whether an image is classed as of “good”, “moderate” or “poor” quality” is invariably a very subjective assessment, dependent to a large degree on the amount of detail in the scene. As a “rule-of-thumb” a grayscale image with: 512 x 512 pixels with 32 gray levels will be comparable to an old b/w TV picture. Nb 8 binary bits = 1 byte = 256 levels 1024 x 1024 x 1 byte  1 Megabyte (eg CPU memory) 1000 x 1000 x 1 byte  1 Megabyte (eg computer storage)* Eg. A high resolution digital camera recording 12 megapixel images in colour will generate files of 36 Mbytes /image (assuming 3 bytes per pixel). CPU Memory - 2-8 Gbytes (typically) CD ROMs - 0.6-0.9 Gbytes DVDs - 4.7 Gbytes Hard Disks - 1 Terabyte Human Brain - 125 Terabytes

Adjusting the Number of Pixels

Adjusting the number of gray levels

False contouring at low bit representations

Binary Image Halftone Image

3.4 Image File Formats and Image Compression Image file formats are standardized means of organizing and storing digital images. They consist of "header information" followed by the "image data". The different image file formats apply a variety of image file compression algorithms to reduce the image file size for storage: Lossless compression algorithms reduce file size without losing information (ie are error-free) - used when image integrity is valued above file size (eg scientific data). Lossy compression algorithms take advantage of the inherent limitations of the human eye and discard "redundant" information. Most lossy compression algorithms allow for a variable quality level and compression ratio. As the latter is increased, file size is reduced. At the highest compression levels, when the image is decompressed (ie reconstructed), image deterioration becomes noticeable as "compression artefacting”.

Some Popular Image File Formats JPG/JPEG (Joint Photographic Experts Group) is a compression method which (in most cases) is lossy. Nearly every digital camera can save images in JPEG format. It supports 8-bits per colour. The compression ratio is selectable. GIF (Graphics Interchange Format) is limited to an 8-bit palette, or 256 colors. This makes the GIF format suitable for storing graphics with relatively few colours such as simple diagrams, shapes, logos and cartoon style image. It also supports animation. It uses a lossless compression that is most effective when large areas have a single colour, and ineffective for detailed images. FITS (Flexible Image Transport System) is often used for scientific applications. It stores the original (image) data in a structured way.

Image Data Compression

Effects of JPEG Compression Maximum quality 38384 bytes High quality 11331 bytes Medium quality 6968 bytes Low quality 5141 bytes Low quality 3687 bytes Low quality 1554 bytes