Geoinformation II

44
Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer Geoinformation II Vorlesung 10 SS 2000 Quadtrees

description

Institut für Kartographie und Geoinformation Prof. Dr. Lutz Plümer. Geoinformation II. Vorlesung 10 SS 2000. Quadtrees. Übersicht I. Rasterstruktur Raster Quadtrees Region quadtree Unterteilung Aufbau Unterteilung der Rasterstruktur Varianten des Quadtrees Punkte Punktstruktur. - PowerPoint PPT Presentation

Transcript of Geoinformation II

Page 1: Geoinformation II

Institut für Kartographie und GeoinformationProf. Dr. Lutz PlümerInstitut für Kartographie und GeoinformationProf. Dr. Lutz Plümer

Geoinformation IIVorlesung 10

SS 2000

Quadtrees

Page 2: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

2 2

Übersicht I

• Rasterstruktur• Raster• Quadtrees• Region quadtree

– Unterteilung– Aufbau

• Unterteilung der Rasterstruktur• Varianten des Quadtrees• Punkte• Punktstruktur

Page 3: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

3 3

Übersicht II

• Point quadtree– Knotenstruktur– Aufbau

• Landkarte• Motivation des PM-Quadtrees• Ein Quadtree für Maschen

• PM1 quadtree

• Punkt- in-Landkarte• Nächste Woche

Page 4: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

4 4

Rasterstruktur

Page 5: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

5 5

Raster

• zweidimensionales Array– Einträge: Pixel– Adressierung durch Index von Reihe und Spalte

• aber auch:– regelmäßige Tessellation (Landkarte) mit quadratischen

Maschen gleicher Größe

• Modellierung von Feldern– siehe GIS I, Felder und Objekte– sehr effiziente Speicherung– Ausgangspunkt der Bildverarbeitung / Photogrammetrie

Page 6: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

6 6

Quadtrees

• Baum• jeder Knoten hat 0 oder 4 Nachfolger

– Nordwest– Nordost– Südwest– Südost

• Blattknoten sind homogen• Konstruktion eines Quadtrees für ein gegebenes

Raster

Page 7: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

7 7

Region quadtree - Unterteilung

Page 8: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

8 8

Region quadtree - Unterteilung

Page 9: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

9 9

Region quadtree - Aufbau

inhomogen

inhomogen

Page 10: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

10 10

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 11: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

11 11

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 12: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

12 12

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 13: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

13 13

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 14: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

14 14

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 15: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

15 15

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 16: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

16 16

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 17: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

17 17

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 18: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

18 18

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 19: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

19 19

Region quadtree - Aufbau

SWSONW

NO

NW NO

SW SO

Page 20: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

20 20

Unterteilung der Rasterstruktur

Page 21: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

21 21

Unterteilung der Rasterstruktur

Page 22: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

22 22

Varianten des Quadtrees

• für Punkte• für Polygone

Page 23: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

23 23

Punkte

Page 24: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

24 24

Punktstruktur

1

2

3

4

5

6

7

8

9

10

11

12 13

14

Page 25: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

25 25

Point quadtree - Knotenstruktur

X Y NW NO SW SO Daten

X Y NW NO SW SO Daten

Page 26: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

26 26

Point quadtree - Aufbau

1

1NW NO

SW SO

NW NO SW SO

Page 27: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

27 27

Point quadtree - Aufbau

1

1

2

2

Page 28: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

28 28

Point quadtree - Aufbau

1

21

2

3

3

Page 29: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

29 29

Point quadtree - Aufbau

1

2 31

2

3

4

4

Page 30: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

30 30

Point quadtree - Aufbau

1

2 31

2

4

5

3

45

Page 31: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

31 31

Point quadtree - Aufbau

1

1

2

2 3

4

5

3

45

Page 32: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

32 32

Landkarte

Page 33: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

33 33

Motivation des PM-Quadtrees

• in folgenden Fällen ist leicht zu entscheiden, zu welcher Masche ein Punkt gehört:

Page 34: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

34 34

Ein Quadtree für Maschen

Page 35: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

35 35

PM1 quadtree

1. wie beim Quadtree wird die Ebene in Quadrate zerlegt

2. statt der Homogenitätsforderung gilt hier:1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das

höchstens einen Knoten enthält.2. Ein Blatt, das einen Knoten enthält, darf nur Kanten

enthalten, die zu diesem Knoten inzident sind3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen

Teil einer Kante enthalten

3. sind diese Bedingungen nicht erfüllt, wird das zugeordnete Quadrat in 4 gleich große Quadrate geteilt

Page 36: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

36 36

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

PM1 quadtree

Page 37: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

37 37

PM1 quadtree

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

Page 38: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

38 38

PM1 quadtree

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

Page 39: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

39 39

PM1 quadtree

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

Page 40: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

40 40

PM1 quadtree

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

Page 41: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

41 41

PM1 quadtree

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

Page 42: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

42 42

PM1 quadtree

1. Jedes Blatt des Quadtrees repräsentiert ein Quadrat, das höchstens einen Knoten enthält.

2. Ein Blatt, das einen Knoten enthält, darf nur Kanten enthalten, die zu diesem Knoten inzident sind

3. Ein Blatt, das keinen Punkt enthält, darf höchstens einen Teil einer Kante enthalten.

Page 43: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

43 43

Punkt- in-Landkarte

Sie haben drei Verfahren kennengelernt:• Zerlegung der Maschen in Streifen (Trapeze)• Bounding Boxes• PM-Quadree

– Zerlegung der Ebene in Quadrate

• Grundsätzlicher Unterschied– Zerlegung des Objekts und Aufbau einer Zugriffsstruktur für das

Objekt

• Trapezverfahren

– Zerlegung des Raumes (der Ebene) und Schaffung einer Zugriffsstruktur für den Raum

• PM-Quadtree

Page 44: Geoinformation II

Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10 Lutz Plümer - Geoinformation - 6. Semester - SS 2001 - Vorlesung 10

44 44

Nächste Woche

• Seminarvorstellung– Konzept– Anforderungen– Themenvergabe

• Dauer: 10 Uhr c.t. bis 12 Uhr• Teilnahme ist obligatorisch