My goal is to take any image and break it down to obtain its time-varying equations so it can be redrawn and store the picture as two equations. One for $x$ and one for $y$.
As I understand, MATLAB's Discrete Fourier Transform breaks down images into their Fourier coefficients, so for a circle it would be easier to just synthesize using the equation based on the referenced origin, the point $[h,k]$ and the radius $r$. I want to apply this method to any shape, not just a circle.
The important part is for me to get the equations rather than just the transform.
Understanding how it works for a circle would help me understand how it would work for other shapes.
Say I have a black and white picture of a circle on a 255x255 pixel grid. Something like this:
The circle equation is of the form: $$ (x-h)^2+(y-k)^2=r^2 $$
and it is related to the parametric form of $$x=r\sin(t)+h$$ $$y=r\cos(t)+k$$
I want to extract the Fourier series or coefficients that would allow me to reconstruct the circle if I were to calculate the $x$ coordinates and the $y$ coordinates.
So the end goal is to get something as follows:
plot(fourierseries_x,fourierseries_y)
Which should be able to reconstruct the circle.
where fourierseries_x is the fourier series of the $x$ coordinates
and fourierseries_y is the fourier series of the $y$ coordinates
Is this possible through Matlab's fft function?
Is the Fourier series the correct approach to this?
