chapter 6 implementation algorithms

24
Chapter 6 Implementation Algorithms Myung-Soo Kim Seoul National University http://cse.snu.ac.kr/mskim http://3map.snu.ac.kr

Upload: others

Post on 20-Apr-2022

13 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Chapter 6 Implementation Algorithms

Chapter 6Implementation Algorithms

Myung-Soo Kim

Seoul National University

http://cse.snu.ac.kr/mskim

http://3map.snu.ac.kr

Page 2: Chapter 6 Implementation Algorithms

Line Drawing

Page 3: Chapter 6 Implementation Algorithms

Line Drawing Algorithms

Page 4: Chapter 6 Implementation Algorithms

DDA Algorithm

Page 5: Chapter 6 Implementation Algorithms

Bresenham Algorithm

Page 6: Chapter 6 Implementation Algorithms

Bresenham Algorithm

Page 7: Chapter 6 Implementation Algorithms

Bresenham Algorithm

Page 8: Chapter 6 Implementation Algorithms

Bresenham Algorithm

Page 9: Chapter 6 Implementation Algorithms

Bresenham Algorithm

Page 10: Chapter 6 Implementation Algorithms

Pixel Addressing

Page 11: Chapter 6 Implementation Algorithms

Pixel Addressing

Page 12: Chapter 6 Implementation Algorithms

Scan-Line Polygon Fill

Page 13: Chapter 6 Implementation Algorithms

Scan-Line Polygon Fill

Page 14: Chapter 6 Implementation Algorithms

Boundary-Fill Algorithm

Page 15: Chapter 6 Implementation Algorithms

Boundary-Fill Algorithm

• This procedure requires considerable stacking of neighboring points

Page 16: Chapter 6 Implementation Algorithms

More Efficient Algorithm

Page 17: Chapter 6 Implementation Algorithms

Flood-Fill Algorithm

Page 18: Chapter 6 Implementation Algorithms

Antialiasing

• Information loss due to under-sampling

Page 19: Chapter 6 Implementation Algorithms

Antialiasing

• Super-sampling Straight-Line Segments

Page 20: Chapter 6 Implementation Algorithms

Antialiasing

• Sub-pixel Weighting Masks

• Area Sampling Line Segments

Pixel (10,20) is about 90% covered, Pixel (10,21) is about 15% covered

Page 21: Chapter 6 Implementation Algorithms

Antialiasing

• Filtering Techniques

Page 22: Chapter 6 Implementation Algorithms

Antialiasing

• Pixel Phasing

Page 23: Chapter 6 Implementation Algorithms

Antialiasing

• Area Boundaries

Page 24: Chapter 6 Implementation Algorithms

Antialiasing

• Pittway-Watkinson Algorithm