chapter 6 implementation algorithms
TRANSCRIPT
![Page 1: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/1.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/2.jpg)
Line Drawing
![Page 3: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/3.jpg)
Line Drawing Algorithms
![Page 4: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/4.jpg)
DDA Algorithm
![Page 5: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/5.jpg)
Bresenham Algorithm
![Page 6: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/6.jpg)
Bresenham Algorithm
![Page 7: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/7.jpg)
Bresenham Algorithm
![Page 8: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/8.jpg)
Bresenham Algorithm
![Page 9: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/9.jpg)
Bresenham Algorithm
![Page 10: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/10.jpg)
Pixel Addressing
![Page 11: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/11.jpg)
Pixel Addressing
![Page 12: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/12.jpg)
Scan-Line Polygon Fill
![Page 13: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/13.jpg)
Scan-Line Polygon Fill
![Page 14: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/14.jpg)
Boundary-Fill Algorithm
![Page 15: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/15.jpg)
Boundary-Fill Algorithm
• This procedure requires considerable stacking of neighboring points
![Page 16: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/16.jpg)
More Efficient Algorithm
![Page 17: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/17.jpg)
Flood-Fill Algorithm
![Page 18: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/18.jpg)
Antialiasing
• Information loss due to under-sampling
![Page 19: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/19.jpg)
Antialiasing
• Super-sampling Straight-Line Segments
![Page 20: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/20.jpg)
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](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/21.jpg)
Antialiasing
• Filtering Techniques
![Page 22: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/22.jpg)
Antialiasing
• Pixel Phasing
![Page 23: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/23.jpg)
Antialiasing
• Area Boundaries
![Page 24: Chapter 6 Implementation Algorithms](https://reader034.vdocuments.us/reader034/viewer/2022042421/62600374e1b4f2684347e5ea/html5/thumbnails/24.jpg)
Antialiasing
• Pittway-Watkinson Algorithm