basics of digital image processing erkki rämö. digital image processing 29.8.20152 editing and...

49
BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö

Upload: olivia-hardy

Post on 25-Dec-2015

225 views

Category:

Documents


2 download

TRANSCRIPT

Page 1: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

BASICS OF DIGITAL IMAGE PROCESSINGErkki Rämö

Page 2: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Digital image processing

19.04.23 2

Editing and interpreting of picture information Examples: Improving the visual quality of the

image Removing an error from the image Automated interpretation of the

image

Page 3: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Related disciplines

Page 4: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Group discussion 1• Discuss application areas of digital image processing.

19.04.23 4

Page 5: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Where is image processing applied?

19.04.23 5

Biological research – cell studies

Page 6: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Lauri Toivio 6

Military research – interpretation of reconnaissance photos

Page 7: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Lauri Toivio 7

Document control – scanning, interpretation, archiving

Page 8: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Lauri Toivio 8

Industry automation – machine vision

Page 9: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Lauri Toivio 9

Forensics – Fingerprint analysis

Page 10: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Lauri Toivio 10

Medicine – x-ray image analysis

Page 11: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Lauri Toivio 11

Photography – Digital photography

Page 12: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Publishing

19.04.23 12

Page 13: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Erkki Rämö 13

Space investigation

Page 14: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Erkki Rämö 14

Remote Sensing

Page 15: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Erkki Rämö 15

Mapping (eg. Google street view)

Page 16: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 Erkki Rämö 16

Film industry

Page 17: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Visual image

Light = electromagnetic radiationDifferent wavelengths of light reflect from the object and absorb to the object in different ways, depending on objects surfaces construction and material

Reflecting light is perceived with the eye-brain visual system as an image

Wavelength of visual light is 400 - 700 nm

19.04.23 17

Page 18: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Perceiving of the visual image

What is needed:Light source

Light bulb radiates light of some color

Targetwhich reflects part of the light and absorbs the rest

Eye receives the signal signal is interpreted by brain

19.04.23 18

Page 19: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

10-6 10 103 109

Cosmicrays

Gammarays

X-rays

UVInfra-red

Micro-wave

Radio

nm

Visible light

400 nm 700 nm

Spectrum of light

Page 20: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Group discussion2• List imaging applications working in different wavelengths.• Can you find imaging using else than electromagnetic

radiation

19.04.23 20

Page 21: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Eyesight

Eye, visual nervetrack and brains visual centre form the human visual system

There’s no visual system better than the eye Some animal eyes are better than human

eye Examples of ‘analog’ image processing

A paddle in the water, refraction of light in the interface of two substances

Image restoration by eyeglasses

19.04.23 21

Page 22: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

From optical image to a digital image

Page 23: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

The construction of the eye

Cross-section of the human eye

Page 24: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Comparison between an eye and a cameraSimilarities:

In the eye image is drawn upside down to the retinaPupil works like the iris of the cameraRetina, with two types of visual cells, rods (about 120

million) and cones(about 7 million)

Differencies:Focus by changing the refraction of the lense by means

of the radial deformation

19.04.23 24

Page 25: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Visual cells of the eye

Rodsthousands of times more sensitive than cones. responsible of dark vision

ConesResponsible of seeing the colors Three kinds: sensitive for blue-purple, green and red-

yellow. Peaks of sensitivity are in the wavelengths of 447 nm,

540 nm ja 577 nm

19.04.23 25

Page 26: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Anatomy of the eyeIn the area of accurate sight, in the middle of the yellow-

spots fovea there are no rods but plenty of cones.Outside the fovea, accuracy of vision is poor

5° from the fovea – only half of the accuracyOnly a small area of field of vision is seen accurateMoving the eyeball we can focus on different details

19.04.23 26

Page 27: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Anatomy of the eye 2

Sensitivity of visual cells to alteration of lighting is logarithmicWebers law

JND=K*I Where K is constant and JND (Just Noticable Difference)

Example: 100 W lighting 10 W power increment.

In 1000W lighting we need 100W increment for same resultImage: Intensity must be doubled to notice the same

visual difference

27

Page 28: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Visual cells react with one anotherMach Band Effect

Eye works like a high pass filter sharpening the detailsOn the edge of the tone slope, dark color seems lighter and

light color seems darker

19.04.23 28

Page 29: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Influence of the background Simultaneous contrast

19.04.23 29

Page 30: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Influence of the background Simultaneous contrast

19.04.23 30

Page 31: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Frequency responseHow small details are still visible?Influences:

Number and positioning of cells, elasticity of the eye, brain response, intensity of light

31

Page 32: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Procedure classes of image processing

Procedures have been developed already in1960’s, though due to lack of computing power they were hard to implement

Some procedures enhance the quality of the imageOthers pick and analyze information from the image

19.04.23 32

Page 33: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

5 Procedure classes

1. Image Enhancement

2. Image Restoration

3. Image Analysis

4. Image Compression

5. Image Synthesis

19.04.23 33

Page 34: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image Enhancement

Most common procedure classCan be used as independent enhancement method or

as pre-operation for other methods, for example reducing the image before analysis

19.04.23 34

Page 35: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image enhancement 2

Goal is to enhance the visual quality of the imagecontrast and brightnessnoise reductionsharpening

19.04.23 Erkki Rämö 35

Page 36: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Example: adjusting contrast

Photoshop ”autolevels”, which implements the whole tone scale for the image

19.04.23 Lauri Toivio 36

Page 37: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image Restoration

Goal is to restore an image as original or removal of known photographic errorCorrections:

• Removal of geometric distortion• Removal of blur• Noise removal• Motion-blur removal

19.04.23 37

Page 38: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Example: enhancing sharpnessPhotoshop ”Unsharp mask”

19.04.23 38

Page 39: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image AnalysisAs result there rarely is an image, but information about

what’s in the imageImplemented in various tasks involving artificial vision

19.04.23 39

Page 40: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Example: Measuring of an object

19.04.23 40

Page 41: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image compressionGoal is to compress image-information so that it would consume less space

Pros needs less space faster transfer

Methods:lossless compression(max 2:1)lossy compression(max 100:1)

Based on redundant information in the image

19.04.23 41

Page 42: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Example: JPEG-compression

183 KB 17 KB

19.04.23 Lauri Toivio 42

Page 43: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image SynthesisImage is built out of other images orVisualization of non-image informationUsed when:

taking a picture is not physically possible fast and/or slow events

modelling an object which does not exist

Examples:2D images of projection images mathematicallyvisualization of chart information as an image

19.04.23 43

Page 44: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

19.04.23 44

Construction of image processing application

Application can be divided into unit tasks

• Application construction:

Applications

Fundamental Classes

Operations

Process

Page 45: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Application level19.04.23 Lauri Toivio 45

Basic description of application Example application:

Capture video image of cars licence plate Process and interpret the signs on the plate Check register if the vehicle has any offense

Page 46: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Image processing part

19.04.23 46

Process image and identify letters and numbers as an array

In short: Read the signs of the licence plate

Page 47: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Process classes

19.04.23 47

Divide application into unit tasks Image enhancing: Improve the image

quality Image analysis: Interpret the letters and

numbers of the plate

ZHO-408

Page 48: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Operations48

Image enhancement: Improve the image quality Contrast alteration: steepen the contrast Edge highlighting: Outlines of signs

Image analysis: Interpretation of the letters and numbers of the plate Detaching edges: Follow the outlines Classification of objects: Fit vectors into images in

model library

Page 49: BASICS OF DIGITAL IMAGE PROCESSING Erkki Rämö. Digital image processing 29.8.20152  Editing and interpreting of picture information  Examples:  Improving

Methods

Contrast alteration: steepening of contrastContrast stretching as pixel operation

Edge highlighting: Outlines of symbolsSobels edge highlighting algorithm

Finding edges: Follow the outlines Edge finding algorithm

Classification of vectors: Fit vectors into images in model library

19.04.23 49