{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

5-lines-and-circles

# 5-lines-and-circles - Raster conversion algorithms for line...

This preview shows pages 1–10. Sign up to view the full content.

Raster conversion algorithms for line and circle Introduction - Pixel addressing - Primitives and attributes Line drawing algorithms - DDA - Bresenham Circle generating algorithms - Direct method - Bresenham algorithm

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Pixel addressing in raster graphics Pixel address Pixel  x      x+1   x+2   x+3   x+4 y y+1 y+2 y+3 Theoretical length Actual length
Raster conversion algorithms: requirements visual accuracy spatial accuracy speed

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
Line drawing algorithms images symbols &  y = 2x + 5 x0 = 100 y0 = 50 d = 100 thickness = 4 descriptions
Line – raster representation

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
DDA ( Digital Differential Algorithm ) m < 1
DDA ( Digital Differential Algorithm ) m > 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
DDA ( Digital Differential Algorithm ) m > 1
Digital Differential Algorithm input line endpoints, (x 0 ,y 0 ) and (x n , y n ) set pixel at position (x 0 ,y 0 ) calculate slope m Case |m|≤1: repeat the following steps until (x n , y n ) is reached: y i+1 = y i + y/ x x i+1 = x i + 1 set pixel at position (x i+1 ,Round(y i+1 ))

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern