answersLogoWhite

0

//i failed to upload figure.if u want figure for better under standing mail me the request//

Let di = f(N) + f(S), where d can be called as "decision parameter", so that

if di<=0,

then, N(x+1,y) is to be chosen as next pixel i.e. xi+1 = xi+1 and yi+1 = yi,

and if di>0,

then, S(x+1,y-1) is to be chosen as next pixel i.e. xi+1 = xi+1 and yi+1 = yi-1.

reason-since f(N) will be positive being outside the circle while f(S) will be negative as it is inside the circle.thus it comes out.

Derivation

We know that for a circle,

x2 + y2 = r2, where r represents the radius of the circle, an input to the algorithm.

Errors can be represented as

f(N) = (xi + 1)2 + yi2 - r2, -(1)

f(S) = (xi + 1)2 + (yi - 1)2 - r2 -(2)

As di = f(N) + f(S),

di = 2(xi+1)2 + yi2 + (yi-1)2 - 2r2 -(3)

Calculating next decision parameter,

di+1 = 2(xi+2)2 + yi+12 + (yi+1-1)2 - 2r2 -(4)

from (4)- (3), we get,

di+1 di = 2((xi+2)2-(xi+1)2) + (yi+12 - yi2) + ((yi+1-1)2 + (yi-1)2)

di+1 = di + 2((xi+2+xi+1)(xi+2-xi-1)) + ((yi+1+yi)(yi+1-yi)) + ((yi+1-1+yi-1)(yi+1-1-yi+1))

di+1 = di + 2(2xi+3) + ((yi+1+yi)(yi+1-yi)) + ((yi+1-1+yi-1)(yi+1-1-yi+1))

Now, if (di<=0),

xi+1=xi+1 and yi+1=yi

so that di+1 = di + 2(2xi + 3) + ((yi+1+yi)( yi-yi)) + ((yi-1+yi-1)(yi-1-yi+1))

_

di+1 = di + 2(2xi + 3) +

((yi+1+yi)(0)) + ((yi-1+yi-1)(0))

_

di+1 = di + 4xi + 6

else

di+1 = di + 2(2xi+3) + ((yi-1+yi)(yi-1-yi)) + ((yi-2+yi-1)(yi-2-yi+1))

_ di+1 = di + 4xi+6 + ((2yi-1)(-1)) + ((2yi-3)(-1))

_ di+1 = di + 4xi+6 - 2yi - 2yi + 1 + 3

_ di+1 = di + 4(xi - yi) + 10

To know di+1, we have to know di first. The initial value of di

can be obtained by replacing x=0 and y=r in (3). Thus, we get,

do = 2 + r2 + (r - 1)2 -2r2

do = 2 + r2 + r2 + 1 -2r - 2r2

do = 3 - 2r

by jagraj sidhu(jagraj.sidhu@Yahoo.com)

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

Use of midpoint method to derive decision parameters that can be used to generate a straight line segment with any slope?

You can check this http://www.mat.univie.ac.at/~kriegl/Skripten/CG/node25.html


What is 323x 133 equal to in Euclid's algorithm?

To find the product of 323 and 133 using Euclid's algorithm, we first note that Euclid's algorithm is typically used to find the greatest common divisor (GCD) of two numbers rather than their product. However, the product of 323 and 133 is simply 42,919. If you were looking to apply Euclid's algorithm, you would use it to find the GCD first, which can then be used to derive other relationships between the numbers, but it does not directly provide the multiplication result.


Derive the castiglinos theorem?

Derive the castiglino's theorem


Where does the word gargantuan derive from?

it derive from Negro...lol


Use derive in a sentence?

I derive that this question needs to be moved.


What is the advantage of table?

One advantage of decision table is that table is drawn in the first iteration which acts as a stepping stone to derive a new decision table. One disadvantage is that the table does not scale up well.


What derive the basic SOP format from what?

We derive the basic SOP format from which of the following?


What is the model building of quantitative techniques?

Model building in quantitative techniques involves creating mathematical representations of real-world processes or systems to analyze and predict outcomes. This typically includes defining variables, establishing relationships through equations, and utilizing statistical methods to estimate parameters. The process often involves data collection, model validation, and refinement to ensure accuracy and reliability. Ultimately, the goal is to derive insights that can inform decision-making or strategic planning.


What benefit do animals derive from having a coelom?

what benfit do animals derive from having a coelm


How do governments derive their power according to Jefferson?

Governments derive their powers from the consent of the governed.


Can you make a sentence with the word derive?

I don't see how they derive that much information from such scant evidence.


What pedagogical benefits can you derive from formulating objectives?

what pedagogical benefits can you derive from formulating SMART objectives