107
Introduction Lecturer: Dr. Hossam Hassan Email : [email protected] Computers and Systems Engineering

Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

  • Upload
    others

  • View
    4

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Introduction

Lecturer: Dr. Hossam Hassan Email : [email protected]

Computers and Systems Engineering

Page 2: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Essential Books

1. Digital Image Processing – Rafael Gonzalez and Richard Woods, Third Edition, Prenhall, 2008

2. Digital Image Processing using MATLAB – Rafael Gonzalez, Richard Woods and Steven Eddins, Prenhall, 2008

3. Image processing, analysis and machine vision – Milan Sonka, Vaclav Hlavac and Roger Boyle, Third edition, Thomson

Learning, London, 2008

Page 3: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Course Contents

• Introduction

• Digital Image Fundamentals

• Image Enhancement in the Spatial Domain

• Image Enhancement in the Frequency Domain

• Edge Detection

• Image Segmentation

• Representation and Description

• Introduction to Object Recognition

3

Page 4: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Grading System

• Final examination 70%

• Midterm examination + Assignment/Quiz/Report 30%

• Warnings:

– A quiz may be given without being informed before.

– Copying assignment is prohibited.

– Delay of submission influences on marks

4

Page 5: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Overview

• Early days of computing, data was numerical.

• Later, textual data became more common.

• Today, many other forms of data: voice, music,

speech, images, computer graphics, etc.

• Each of these types of data are signals.

• Loosely defined, a signal is a function that conveys information.

Page 6: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Relationship of Signal Processing to other fields

• As long as people have tried to send or receive

through electronic media : telegraphs,

telephones, television, radar, etc. there has been

the realization that these signals may be affected

by the system used to acquire, transmit, or

process them.

• Sometimes, these systems are imperfect and introduce noise, distortion, or other artifacts.

Page 7: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

• Understanding the effects these systems have and

finding ways to correct them is the fundamental of

signal processing.

• Sometimes, these signals are specific messages

that we create and send to someone else (e.g.,

telegraph, telephone, television, digital networking,

etc.).

• That is, we specifically introduce the information

content into the signal and hope to extract it out later.

Page 8: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Acquiring

Natural

Image

Enhance

Picture

Compress

for

Transmission

Encode and

Transmit over

Digital network

Transmitted

Codes of

Image Decode Decompress Display

Sender

Recipient

Page 9: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Concerned fields:

• Digital Communication

• Compression

• Speech Synthesis and Recognition

• Computer Graphics

• Image Processing

• Computer Vision

Page 10: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

What is Image Processing?

• Image processing is a subclass of signal

processing concerned specifically with pictures.

• Improve image quality for human perception and/or computer interpretation.

Page 11: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Several fields deal with images

• Computer Graphics : the creation of images.

• Image Processing : the enhancement or other

manipulation of the image – the result of which is

usually another images.

• Computer Vision: the analysis of image content.

Page 12: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Several fields deal with images

Page 13: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

2 Principal application areas

1. Improvement of pictorial information for human

interpretation.

2. Processing of image data for storage,

transmission, and representation for autonomous machine perception.

Pictorial: of or expressed in pictures; illustrated

Page 14: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Ex. of fields that use DIP

• Categorized by image sources

– Radiation from the Electromagnetic spectrum

– Acoustic

– Ultrasonic

– Electronic (in the form of electron beams used

in electron microscopy)

– Computer (synthetic images used for modeling and visualization)

Page 15: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Gamma-Ray Imaging

• Nuclear Image

– (a) Bone scan

– (b) PET (Positron emission

tomography) image

• Astronomical

Observations.

– (c) Cygnus Loop

– Nuclear Reaction

– (d) Gamma radiation from a reactor valve

Page 16: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

X-ray Imaging

• Medical diagnostics

– (a) chest X-ray (familiar)

– (b) aortic angiogram

– (c) head CT

• Industrial imaging

– (d) Circuit board

• Astronomy – (e) Cygnus Loop

Page 17: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Imaging in Visible and Infrared Bands

• Astronomy

• Light microscopy

• Pharmaceuticals – (a) taxol (anticancer agent)

– (b) Cholesterol

• Micro-inspection to materials characterization – (c) Microprocessor

– (d) Nickel oxide thin film

– (e) Surface of audio CD

– (f) Organic superconductor

Page 18: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Remote sensing

Page 19: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Remote Sensing: Weather Observations

Page 20: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)
Page 21: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)
Page 22: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)
Page 23: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Imaging in Radio Band

Page 24: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Ultrasound Imaging

Page 25: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Generated images by computer

Page 27: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Fundamental steps

Page 28: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Image Acquisition:

Page 29: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Camera

Page 30: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Frame Grabber

Page 31: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Image Enhancement

Page 32: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Image Restoration

Page 33: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Color Image Processing

Page 34: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Wavelets

Page 35: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Compression

Page 36: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Morphological processing

Page 37: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Image Segmentation

Page 38: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Representation & Description

Page 39: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Representation & Description

Page 40: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Recognition & Interpretation

Page 41: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Knowledge base

Page 42: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Human and Computer Vision

Page 43: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Simple questions

43

Page 44: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

What is Vision?

Recognize objects

– people we know

– things we own

• Locate objects in space

– to pick them up

• Track objects in motion

– catching a baseball

– avoiding collisions with cars on the road

• Recognize actions

– walking, running, pushing

Page 45: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Vision is

• Deceivingly easy

• Deceptive

• Computationally demanding

• Critical to many applications

Page 46: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Vision is Deceivingly Easy

•We see effortlessly

– seeing seems simpler than “thinking”

– we can all “see” but only select gifted people can

solve “hard” problems like chess

– we use nearly 70% of our brains for visual

perception!

• All “creatures” see

– frogs “see”

– birds “see”

– snakes “see”

but they do not see alike

Page 47: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Vision is Deceptive

Vision is an exceptionally strong sensation

– vision is immediate

– we perceive the visual world as external to

ourselves, but it is a reconstruction within our brains

– we regard how we see as reflecting the world “as

it is;” but human vision is

• subject to illusions

• quantitatively imprecise

• limited to a narrow range of frequencies of radiation

• passive

Page 48: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Some Illusion

Page 49: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Some Illusion

Page 50: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Some Illusion

Page 51: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Some Illusion

Page 52: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Human Vision is Passive

• It relies on external energy sources (sunlight,

light bulbs, fires) providing light that reflects

off of objects to our eyes

• Vision systems can be “active” - carry their

own energy sources – Radars

– Bat acoustic imaging systems

Page 53: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Spectral Limitation of Human Vision

• We “see” only a small part of the energy

spectrum of sunlight

– we don’t see ultraviolet or lower frequencies of

light

– we don’t see infrared or higher frequencies of light

– we see less than .1% of the energy that reaches

our eyes

• But objects in the world reflect and emit energy in

these and other parts of the spectrum

Page 54: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Structure of the Human Eye

Page 55: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Structure of the Human Eye

Page 56: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Lens & Retina

Page 57: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Receptors

Page 58: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Cones

Page 59: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Rods

Page 60: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Contrast sensitivity

Page 61: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Weber ratio

Page 62: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Simultaneous contrast

Which small square is the darkest one ?

Page 63: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Signals

Page 64: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Time-Varying Signals

Page 65: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Spatially-Varying Signals

Page 66: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Spatiotemporal Signals

Video Signal!

Page 67: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Types of Signals

Page 68: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Analog & Digital

Page 69: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Sampling

Page 70: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Quantization

Page 71: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Digital Image Representation

Page 72: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Digital Image Representation

Page 73: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Digital Image Representation

Page 74: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Example of Digital Image

Page 75: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Light-intensity function

Page 76: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Illumination and Reflectance

Page 77: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Illumination and Reflectance

Page 78: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Gray level

Page 79: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Color Perception

• Color is an important part of our visual experience.

• We distinguish only 100 levels of grays but hundreds of

thousands of colors.

• Color detection is important to computer vision;

• Object recognition is easier

• Underutilized because more processing is required, hard

to publish

Page 80: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Color Perception of Reflection

Page 81: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Color Models

• Color Models are useful for driving hardware that generates

or captures images

• Monitors, TVs, video cameras

• Color printers

• Since color sensation can be reproduced by combination of

pure colors, it is simpler to use phosphors and CCD

(charge-couple device) elements that have sharp and

narrow spectra rather than combine overlapping spectra.

• Color models describe in what proportion to combine

these spectra to produce different color impressions.

Page 82: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Additive Color Models

• In monitors, 3 electron beams illuminate phosphors of 3

colors that act as additive light sources.

• The powers of these beams are controlled by the

components of colors described by the R,G,B model

Page 83: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Color Models (RGB Cube)

Page 84: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Number of bits

Page 85: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Resolution

Page 86: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Checkerboard effect

Page 87: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

False contouring

Page 88: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Nonuniform sampling

Page 89: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Example

Page 90: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Example

Page 91: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Nonuniform quantization

Page 92: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Image Formation

Page 93: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Lens-less Imaging Systems - Pinhole

Optics • Projects images

– without lens

– with infinite depth of field

• Smaller the pinhole

– better the focus

– less the light energy from any single point

• Good for tracking solar eclipses

Page 94: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Pinhole Camera (Cont…)

Distant Objects are Smaller

Page 95: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Pinhole Camera (Cont…)

Bigger Hole-More Blurred Images

Page 96: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Lenses Collect More Lights

• With a lens, diverging rays from a scene point are

converged back to an image point

Page 97: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Lens Equation

n: Lens’ Refractive Index

hI: Image Height

ho: Object Height

The negative values for image height indicate that the image is an inverted

image…

Page 98: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Thin Lens

• relates the distance between the scene point being viewed

and the lens to the distance between the lens and the point’s

image (where the rays from that point are brought into focus

by the lens)

• Let M be a point being viewed, p is the distance of M from the

lens along the optical axis.

• The thin lens focuses all the rays from M onto the same point,

the image point m at distance q from the lens.

Page 99: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Thin Lens Equation

• m can be determined by intersecting two known rays

– MQ is parallel to the optical axis, so it must be refracted to pass

through F.

– MO passes through the lens center, so it is not bent.

• Note two pairs of similar triangles – MSO and Osm (yellow)

– OQF and Fsm (green)

Page 100: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Thin Lens Equation

• As p gets large, q approaches f

• As q approaches f, p approaches infinity

Page 101: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Field of View

• As f gets smaller, image becomes more wide angle (more

world points project onto the finite image plane).

• As f gets larger, image becomes more telescopic (smaller

part of the world projects onto the finite image plane)

Page 102: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

According to that MODEL?

Page 103: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Vanishing Point?

Page 104: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Vanishing Point – TWO Points Perspective

vx vy

Page 105: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Optical Power and Accommodation

Optical power of a lens - how strongly the lens bends the

incoming rays

– Short focal length lens bends rays significantly

– It images a point source at infinity (large p) at distance f

behind the lens. The smaller f, the more the rays must be

bent to bring them into focus sooner.

– Optical power is 1/f, with f measured in meters. The unit is

called the diopter

– Human vision: when viewing faraway objects the distance

from the lens to the retina is 0.017m. So the optical power of

the eye is 58.8 diopters

Page 106: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Accommodation

How does the human eye bring nearby points into focus on the

retina? – by increasing the power of the lens

– muscles attached to the lens change its shape to change the lens

power

– accommodation: adjusting the focal length of the lens

– bringing points that are nearby into focus causes faraway

points to go out of focus

– depth-of-field: range of distances in focus

Page 107: Digital Image Processingmct.asu.edu.eg/uploads/1/4/0/8/14081679/cse468-lec1.pdf · Imaging in Visible and Infrared Bands • Astronomy • Light microscopy • Pharmaceuticals –(a)

Accommodation

Physical cameras: mechanically change the distance between

the lens and the image plane