1.

Comparsion between scan line and xiaolin wu's algorithm ​

Answer»

Answer:

Anti-Aliased LINE Drawing

Below is the IMAGE showing line drawn with BRESENHAM’s line algorithm (left) and Xiaolin Wu’s line algorithm (right) which smooths the line. Which one looks better to you ?

AALine

Anti Aliasing concept

Suppose we want to draw a line from point(1 , 1) to point(8 , 4) with rectangular edges . The ideal line would be the one shown in figure A . Since I want to display it on screen I cannot use that . Line needs to GO through a process called Rasterization which would determine color of individual pixels . Several ALGORITHMS



Discussion

No Comment Found

Related InterviewSolutions