Basics of digital image processing

Post on 03-Jan-2016

87 views 3 download

Tags:

description

Basics of digital image processing. Erkki Rämö. Digital image processing. 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. Related disciplines. Group discussion 1. - PowerPoint PPT Presentation

Transcript of Basics of digital image processing

BASICS OF DIGITAL IMAGE PROCESSINGErkki Rämö

Digital image processing

20.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

Related disciplines

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

20.04.23 4

Where is image processing applied?

20.04.23 5

Biological research – cell studies

20.04.23 Lauri Toivio 6

Military research – interpretation of reconnaissance photos

20.04.23 Lauri Toivio 7

Document control – scanning, interpretation, archiving

20.04.23 Lauri Toivio 8

Industry automation – machine vision

20.04.23 Lauri Toivio 9

Forensics – Fingerprint analysis

20.04.23 Lauri Toivio 10

Medicine – x-ray image analysis

20.04.23 Lauri Toivio 11

Photography – Digital photography

Publishing

20.04.23 12

20.04.23 Erkki Rämö 13

Space investigation

20.04.23 Erkki Rämö 14

Remote Sensing

20.04.23 Erkki Rämö 15

Mapping (eg. Google street view)

20.04.23 Erkki Rämö 16

Film industry

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

20.04.23 17

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

20.04.23 18

10-6 10 103 109

Cosmicrays

Gammarays

X-rays

UVInfra-red

Micro-wave

Radio

nm

Visible light

400 nm 700 nm

Spectrum of light

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

radiation

20.04.23 20

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

20.04.23 21

From optical image to a digital image

The construction of the eye

Cross-section of the human eye

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

20.04.23 24

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

20.04.23 25

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

20.04.23 26

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

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

20.04.23 28

Influence of the background Simultaneous contrast

20.04.23 29

Influence of the background Simultaneous contrast

20.04.23 30

Frequency responseHow small details are still visible?Influences:

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

31

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

20.04.23 32

5 Procedure classes

1. Image Enhancement

2. Image Restoration

3. Image Analysis

4. Image Compression

5. Image Synthesis

20.04.23 33

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

20.04.23 34

Image enhancement 2

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

20.04.23 Erkki Rämö 35

Example: adjusting contrast

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

20.04.23 Lauri Toivio 36

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

20.04.23 37

Example: enhancing sharpnessPhotoshop ”Unsharp mask”

20.04.23 38

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

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

20.04.23 39

Example: Measuring of an object

20.04.23 40

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

20.04.23 41

Example: JPEG-compression

183 KB 17 KB

20.04.23 Lauri Toivio 42

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

20.04.23 43

20.04.23 44

Construction of image processing application

Application can be divided into unit tasks

• Application construction:

Applications

Fundamental Classes

Operations

Process

Application level20.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

Image processing part

20.04.23 46

Process image and identify letters and numbers as an array

In short: Read the signs of the licence plate

Process classes

20.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

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

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

20.04.23 49