jacopoantonello / zernike

Python code for Zernike polynomials
Apache License 2.0
133 stars 37 forks source link

Question about fitting #4

Closed shz224 closed 3 years ago

shz224 commented 4 years ago

Thanks for your code. I have a problem with fitting a complex array. Could you please give an example of fitting with data generated by ways except eval_grid()?

jacopoantonello commented 4 years ago

Fitting a complex array works for polar coordinates, see the last example in the home page (Example: fit Zernike polynomials in polar coordinates) and the test using complex data here. I'm not sure the code currently works for Cartesian coordinates, but it should be relatively easy to implement.

shz224 commented 4 years ago

OK, thanks a lot for your reply.