Presentation is loading. Please wait.

Presentation is loading. Please wait.

Circles! You are going to create an “image” with circle(s)

Similar presentations


Presentation on theme: "Circles! You are going to create an “image” with circle(s)"— Presentation transcript:

1 Circles! You are going to create an “image” with circle(s)

2 The Project circleim.raw
How are we going to automatically create a circle? What steps do you think are needed? Lets talk about the algorithm Hint: Sine & Cosine circleim.raw

3 The Algorithm What is the valid output range of sine & cosine
Do you need to scale the sin/cos output? How do you turn the sin/cos output into a pixel value? How do you move sin/cos output to the center of the image?

4 The steps How many FILE operators are we going to need?
What will you iterate over? How large will each iterator increment by? How will you map a 1D array into a 2D array Width * Row + Col The data will need to be scaled once its extracted You would like a uniform pixel value what should that value be? Pixel[Sine(x), Cosine(x)] = value


Download ppt "Circles! You are going to create an “image” with circle(s)"

Similar presentations


Ads by Google