Circles! You are going to create an “image” with circle(s)
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
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?
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