MCQ IN COMPUTER SCIENCE & ENGINEERING

COMPUTER SCIENCE AND ENGINEERING

COMPUTER GRAPHICS

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
The formula for finding initial decision parameter p0 in Bresenham’s circle generating algorithm
A
1-R
B
3-2R
C
x2 + y2-R
D
None of these
Explanation: 

Detailed explanation-1: -Set initial values of (xc, yc) and (x, y) Set decision parameter d to d = 3 – (2 * r).

Detailed explanation-2: -It is decided by using the decision parameter d as: If d <= 0, then N(x+1, y) is to be chosen as next pixel. If d > 0, then S(x+1, y-1) is to be chosen as the next pixel.

Detailed explanation-3: -Pk+1 = Pk + 4 x Xk+1 + 6 =-17 + (4 x 1) + 6 =-7.

There is 1 question to complete.