{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

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

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

View Full Document Right Arrow Icon
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
Image of page 1

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

View Full Document Right Arrow Icon
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
Image of page 2
Raster conversion algorithms: requirements visual accuracy spatial accuracy speed
Image of page 3

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

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

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

View Full Document Right Arrow Icon
DDA ( Digital Differential Algorithm ) m < 1
Image of page 6
DDA ( Digital Differential Algorithm ) m > 1
Image of page 7

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

View Full Document Right Arrow Icon
DDA ( Digital Differential Algorithm ) m > 1
Image of page 8
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 ))
Image of page 9

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

View Full Document Right Arrow Icon
Image of page 10
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern