digital image processing ch5... · 2010. 11. 23. · colour composite images note: there is a...

25
DIGITAL IMAGE PROCESSING Introduction Geo-Information Science (GRS-10306)

Upload: others

Post on 26-Aug-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

DIGITAL IMAGE PROCESSING

Introduction Geo-Information Science (GRS-10306)

Page 2: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Digital image processing - Topics

� Image representation (rescaling, colour composites)

� Image space - feature space

� Classification

Page 3: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Image Processing OptionsTape/DVD/CD: Screen:latent image → Visualization → picture 1

picture 2--------------

picture nOptions:e.g. spectral band selection filtering

displaying band composites band ratioingcontrast modification vegetation index computationhistogram equalization classificationgrey scale enhancement texture analysiscolour assignment segmentationdensity slicing geometric correctionprincipal componentstransformation

Page 4: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Contrast ModificationGrey scale enhancement(stretching):

Histogram

No stretch

Linear stretch

Histogram stretch

Image values

Image values

Image values

Display values

Display values

Display values

60

60

60

60

108

108

108

158

158

158

158

255

255

255

255

255

255

0

0

0

0

0

0 38

127

Page 5: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Linear stretchequal data intervals and unequal frequencies

0

5000

10000

15000

20000

25000

1 3 5 7 9 11 13 150 2 4 6 8 10 12 14

Num

ber

of p

ixel

s pe

r co

lour

cla

ss

Page 6: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Histogram equalizationunequal data intervals and approximately equal frequencies

0

2000

4000

6000

8000

10000

12000

14000N

umbe

r of

pix

els

per

colo

ur c

lass

1 3 5 7 9 11 13 150 2 4 6 8 10 12 14

Result: high frequent DN-values in the image are divided into small steps(intervals) at the display, so the result is a picture with more contrast.

Page 7: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Example of black-and-white image without stretching

Page 8: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Linear stretch

Page 9: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Histogram equalization

Page 10: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Colour Theory

� Additive colours (e.g. TV, PC, digital image processing):Blue + Green + Red = WhiteB + G = CyanB + R = MagentaG + R = Yellow

� Subtractive colours (e.g. colour films, AP, printing):Cyan = W - RMagenta = W - GYellow = W - B

Page 11: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Additive Colours

Page 12: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Subtractive Colours

Page 13: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Colour Composite ImagesNote: there is a difference between:

• spectral colours (related to visible EM wavelengths) → fixed• image processing colours (using monitor colour guns B, G, R) → variable

In image processing systems the assignment of spectral bands tothe colour guns is free !

E.g.: TM band: Colour gun:1 blue green2 green red3 red blue

The resulting pictures will look quite different, although the information presented is identical (same image).

Page 14: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Examples Colour Composites

TM band 1: blue

TM band 2: green "true colour”TM band 3: red

TM band 2: blueTM band 3: green "false colour”

TM band 4: red

SPOT band 1: blue

SPOT band 2: green "false colour”SPOT band 3: red

Page 15: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Example TM-image, band 3-2-1 (R,G,B)

Page 16: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Example TM-image, band 4-3-2 (R,G,B)

Page 17: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Example TM-image, band 2-3-4 (R,G,B)

Page 18: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Image Space - Feature Space

24 30 40 25 62135 26

9 77682833289628

44

10

39784

229

107

27857

30 54 157 54 6

12 19168

79

Scan directionF

light

dire

ctio

nD

igita

l num

ber

band

2

Digital number band 1

Image spacespatial patterns

Feature spacespectral patterns

Page 19: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Image Space - Feature Space

24 30 40 25 62135 26

9 77682833289628

44

10

39784

229

107

27857

30 54 157 54 6

12 19168

79

Scan directionF

light

dire

ctio

n

Digital number band 1

Dig

ital n

umbe

r ba

nd 2

A

B

CFeature spacespectral patterns

Image spacespatial patterns

Page 20: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Classification

( = ordering, discrimination, assigning labels)

• supervised: using ground truth, training areas

• unsupervised: using no field information

Steps in the classification process:

(1) choice of the decision rule(2) assigning class labels to all pixels of the image(3) evaluation of the classification result by analyzing

spatial patterns in the image space(4) if necessary, adjusting the classfication result

Page 21: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Minimum distance to means classification

1

Digital number band 4

water

urban

forest

crop

soil

heather

2

3

Dig

ital n

umbe

r ba

nd 3

Page 22: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Nearest neighbour classification

Digital number band 4

water

urban

forest

crop

soil

heather

3

2

1

Dig

ital n

umbe

r ba

nd 3

Page 23: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Maximum likelihood classification

Dig

ital n

umbe

r ba

nd 3

Digital number band 4

water

urban

forest

crop

soil

heather

1

2

3

Page 24: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Parallelepiped (box) classification

Digital number band 4

water

urban

forest

crop

soil

heather

2

1

3

Dig

ital n

umbe

r ba

nd 3

Page 25: DIGITAL IMAGE PROCESSING Ch5... · 2010. 11. 23. · Colour Composite Images Note: there is a difference between: • spectral colours (related to visible EM wavelengths) →fixed

Classification “Noordoostpolder”