TDI2131 Digital Image Processing - Multimedia...

58
1 TDI2131 Digital Image Processing Introduction to Image Processing Lecture 1 John See Faculty of Information Technology Multimedia University Some portions of content adapted from Zhu Liu, AT&T Labs

Transcript of TDI2131 Digital Image Processing - Multimedia...

Page 1: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

1

TDI2131 Digital Image Processing

Introduction to Image

Processing

Lecture 1

John See

Faculty of Information Technology

Multimedia University

Some portions of content adapted from Zhu Liu, AT&T Labs

Page 2: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

2

Lecture Outline

● Course Information

● Introduction & Overview

● Applications of Image Processing

● Fundamental Image Processing Operations

● More Applications...

Page 3: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

3

Course Instructor

● John See

– Office: BR 3005

– Email: [email protected]

– Tel (o): 03-83125478

– http://pesona.mmu.edu.my/~johnsee

– Consultation Hours: Wednesdays, 2-6pm

● All other times by appointment

Page 4: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

4

Textbook

● Digital Image Processing

(3rd Edition) – Gonzalez &

Woods

● The version in the

bookstore has a purple

cover instead of red

Page 5: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

5

Other References

● Introduction to Digital Image

Processing with MATLAB, A.

McAndrew (2004)

● Fundamentals of Digital

Image Processing, A.K. Jain

(1990)

● Course notes from other

universities available online

Page 6: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

6

Lecture & Tutorial

● Lectures: Every Thursday 4-6pm, CR2003

● Tutorials: AR 2003 (GVGD Lab)

– Every Friday, 10am-12pm

– Theory & MATLAB exercises

Page 7: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

7

Grading

● Assignments 30%

– Assignment 1 (8%)

– Assignment 2 (10%)

– Assignment 3 (12%)

● Term Test 10%

● Final Exam 60%

Page 8: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

8

Coursework

● Term Test: in Week 12 (most likely)

● Assignments (using Matlab)

Assignment 1 (8%)

X-ray Enhancement

due Week 7

Assignment 2 (10%)

Fingerprint Feature Extraction

due Week 11

Assignment 3 (12%)

Automated Color-based

Face Detection

due Week 14

Page 9: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

9

Housekeeping

● Attendance will be taken in both lecture and tutorial. Signing

for someone other than yourself is prohibited.

● Plagiarism (especially in assignments) is an offence. You can be

failed or suspended academically if found to have plagiarised

others.

● Participation in class is highly encouraged. Some bonus marks

may be awarded to you discretely.

● Syllabus is non-exhaustive. There is always much more

topics/areas that may not be covered within the limits of this

course, so self-exploration is highly encouraged!

Page 10: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

10

Overview

● Early days of computing – data was numerical

● Later, textual data became more common

● Today, many other forms of data: voice, speech,

images, video, web, wireless packets, etc.

● Each of these types of data are signals.

● Loosely defined, a signal is a function that conveys

information.

Page 11: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

11

Relationship of Signal Processing to

Other Fields● People have tried to send or receive signals through

electronic media – telegraphs, telephones,

television, radar, etc. --- signals affected by the

system used to acquire, transmit, or process them.

● Systems can be imperfect and introduce noise,

distortion, or other artifacts

● Finding a way to correct them is fundamental in

signal processing

Page 12: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

12

Relationship of Signal Processing to

Other Fields● To send specific signals/messages to others,

information content is introduced into the signal

and hopefully, we can extract them later!

● Where do we find these signals?

– Signals encoded from natural phonemena (audio signals,

images from photographs, scenes from video footage)

– Signals created synthetically, man-made (speech

generation, computer graphics)

Page 13: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

13

Concerned Fields in Signal Processing

● Digital Communication (Wired & Wireless)

● Data Compression

● Speech Synthesis & Recognition

● Computer Graphics

● Image Processing (sometimes with video processing)

● Computer Vision

Page 14: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

14

Fields that deal with Images

● Computer Graphics: Creation of images synthetically

● Image Processing: Enhancment or manipulation of

the image – the result of which is usually another

image

● Computer Vision: Analysis and understanding of

image content

● Video Processing (new!): Similar with image

processing, but processing of multiple

images/frames. Combined with computer vision, end

result is normally extracted information

Page 15: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

15

3 Principal Uses of Image Processing

● Improvement of pictorial information for human

interpretation

● Compression of image data for storage and

transmission

● Processing of image data for autonomous machine

perception to enable object representation,

detection, classification and tracking

Page 16: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

16

Categorisation by Image Sources

● Radiation from Electromagnetic Spectrum

● Acoustic

● Ultrasonic

● Electronic (in the form of electron beams used in

electron microscopy)

● Computer (synthetic images used for modeling and

visualization)

Page 17: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

17

What are some applications

that make use of Image

Processing?

Page 18: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

18

Typical Areas of Application

● Television Signal Processing

● Satellite Image Processing / Remote Sensing

● Medical Image Processing

● Robotics

● Visual Communications

● Law Enforcement

● Automatic Visual Inspection for Manufactured Goods

● Etc.

Page 19: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

19

Television Signal Processing

● Image brightness, contrast, color hue adjustment

● Video compression for efficient delivery and storage

● Conversion among different video formats

– QVGA <-> VGA <-> XVGA

– SDTV <-> HDTV

– NTSC <-> PAL

Page 20: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

20

Medical Image Processing

● Images are acquired to get information about Anatomy and Physiology

of a patient

● How to reconstruct the image from captured data

● How to process/analyze the image to help diagnosis/treatment?

– Ultra Sound (US)

– Magnetic Resonance Imaging (MRI)

– Positron Emission Tomography (PET)

– Computer Tomography (CT)

– X-Rays

Page 21: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

21

Visual Communication

● Videophone

● Tele-conferencing

● Tele-shopping

● How to compress the video to

reduce bandwidth/storage

requirements?

● How to conceal artifacts due to

transmission losses?

Page 22: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

22

Law Enforcement

● Biometric Identification /

Verification

– Fingerprint

– Face

– Iris

● How to extract features that

can be used to differentiate

among different images?

Page 23: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

23

Law Enforcement

● Paper currency or cheque

fraud

– Automated counting or

reading of serial number

for tracking and

identifying bills

● Automated license plate

reading

Page 24: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

24

Robot Control

● Automatic Maneuvering

● Unmanned Operations

– Autonomous Vehicle

Driving

● How to detect and track

target?

● How to avoid obstacles?

Mars Rover

Page 25: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

25

Automated Visual Inspection

● Manufactured Goods

– Circuit board – missing parts

– Pill container – missing pills

– Bottles – filled up levels

– Bubbles in clear-plastic product –

detect unacceptable air pockets

– Cereal – inspection for color, presence

of burnt flake

– Image of replacement lens for human

eye – inspection of damaged implants

Page 26: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

26

Satellite Image Processing

● Remote sensing

● Climate

● Geology

● Land resource

● Flood monitor

● How to enhance the image to

facilitate interpretation?

● How to analyze the image to

detect certain phenomena?

New York (from Landast-5 TM)

Page 27: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

27

Remote Sensing

● Weather Observation and

Prediction

Multispectral image of Hurricane Andrew

from satellites using sensors in the

visible and infrared bands

Page 28: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

28

Acoustic Imaging

● Cross-sectional image of a seismic model. The arrow

points to a hydrocarbon (oil and/or gas) trap (bright spots)

Page 29: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

29

Components in Digital Image Processing

We will deal mainly with most of the light green boxes.

Yellow boxes belong to “computer vision” and “pattern

recognition”

Page 30: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

30

Image Acquisition

● Camera

– Consist of 2 parts

● Lens: Collects appropriate

type of radiation emitted from

object of interest and forms

and image of the real object

● Semiconductor device:

Charged-coupled device (CCD)

which converts the irradiance

at image plane into an

electrical signal

Page 31: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

31

Image Acquisition

● Framegrabber

– Needs circuits to digitize the

electrical signal from the

imaging sensor to store the

image in the memory (RAM) of

the computer.

Page 32: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

32

3 Levels of Image Processing

● Low-level Processing: input & output are images

– Primitive operations such as image preprocessing to reduce noise,

contrast enhancement and image sharpening and smoothing.

● Mid-level Processing: input may be images, output are attributes

extracted from those images

– Segmentation, description of objects, classification of individual

objects

● High-level Processing

– Image analysis and understanding of content, representation and

recognition of extracted patterns from images

Page 33: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

33

Basic Image Processing Operations

● Simple Point Processing

● Image Enhancement

● Image Restoration

● Noise Reduction

● Colour Image Processing

● Image Segmentation

● Morphological Image Processing

● Etc.

Page 34: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

34

Simple Point Processing

Page 35: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

35

Image Enhancement

● To bring out details that are obscured, or to highlight certain features

of interest in an image

Page 36: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

36

Image Enhancement

● Negative transformation of a digital mamogram. Note that the

cancerous region (dark spot) in the right image is enhanced.

Page 37: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

37

Image Restoration

● Improving appearance of an image. Tend to be based on mathematical

or probabilistic models of image degradation

Page 38: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

38

Image Restoration: Noise Reduction

● Improving appearance of an image. Tend to be based on mathematical

or probabilistic models of image degradation

Page 39: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

39

Colour Image Processing

● Colour is a powerful descriptor that often simplifies object

identification and extraction from a scene.

● Human can discern thousands of colour shades and intensities,

compared to about only two dozen shades of gray.

Page 40: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

40

Image Segmentation

● Attempts to separate certain objects of interest from the image

background or other objects – One of the most difficult tasks in DIP!

● Output of the segmentation stage is raw pixel data, constituting either

the boundary of a region or all the points in the region.

Page 41: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

41

Image Segmentation

● Edge Detection

● Colour Region Segmentation

Extraction of settlement

area from aerial imagery

Ground replacement due to

earthquake in California, 1992

Page 42: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

42

Wavelets and Multi-resolution

Processing● Foundation of representing images in various degrees of resolution.

● Used in image data compression and pyramidal representation (images

are subdivided successively into smaller regions).

Page 43: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

43

Image Compression

● Reducing storage required to save an image or the bandwidth required

to transmit it.

● JPEG, JPEG2000, JBIG2

Page 44: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

44

Morphological Image Processing

● Mathematical morphological operations

● Tools for extracting image components that are useful in the

representation and description of shapes.

Page 45: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

45

Image Morphing (Metamorphosis)

● Transformation of one digital image to another. Special visual effect in

the entertainment industry!

Page 46: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

46

Image Stitching (Mosaics)

● Blend together overlapping images to produce a panoramic stitched

image

+ +........+

=

Page 47: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

47

And now...what do you see?

Page 48: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

48

We are smarter than computers!

● How do you recognize the

banana?

● How can you get a computer

to do that?

Page 49: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

49

Representation and Description

● Representation – make a decision on how the extracted data should be

represented

Page 50: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

50

Recognition and Interpretation

● Recognition – the process that assigns a label to an object based on the

information provided by its descriptors.

● Interpretation – assigning meaning to an ensemble of recognized

objects.

Page 51: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

51

Knowledge Base

● A problem domain – detailing regions of an image where the

information of interest is known to be located

● Help to limit search, pinpoint information details to be used for further

processing.

Page 52: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

52

High-level Processing

● The two last stages in the chart (Representation & Recognition) are

often categorized as high-level processing and usually belong to the

area of Computer Vision / Pattern Recognition.

● Depending on the usage or application, the earlier stages can be used

to prepare images for high-level processing.

● Let's see what applications that considered high-level processing...

Page 53: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

53

Fingerprint Recognition

Page 54: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

54

Content-based Image Retrieval

Query

image

Page 55: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

55

Face Detection

Final Year Project 2006 – FACEFIND, Nusirwan & Chong

Page 56: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

56

Face Detection

Is it harder to detect faces in a large group of people?

Page 57: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

57

Tracking and Counting People

Page 58: TDI2131 Digital Image Processing - Multimedia Universitypesona.mmu.edu.my/~johnsee/teaching/tdi2131/lect01.pdf · TDI2131 Digital Image Processing Introduction to ... many other forms

58

Readings

● Digital Image Processing (3rd Edition), Gonzalez & Woods,

– Chapter 1

● MATLAB Getting Started Guide from Mathworks

– http://www.mathworks.com/access/helpdesk/help/pdf_doc/matlab/getstart.pdf

● More tutorials to get you started (downloadable from my website

links):

– MATLAB Primer – Concise but extensive introduction to Matlab

– Two basic introductory tutorials by Gerald Recktenwald – very easy

to understand