jacopoantonello / zernike Goto Github PK
View Code? Open in Web Editor NEWPython code for Zernike polynomials
License: Apache License 2.0
Python code for Zernike polynomials
License: Apache License 2.0
Just a heads-up that orthopy also has Zernike polynomials. orthopy does everything with numerically stable recurrence relations, so it's very fast, too. Perhaps it's useful to you.
thanks for the recent changes - very useful.
i have just attempted to install using pip2 (python2), but the version number is 0.0.0 instead of 0.0.30. doing the same using pip3 (python3) correctly shows it as 0.0.30.
in the end i opted to install from git instead of pip. this installed the correct code and the version is now correct.
here are the steps i followed to install from github:
$ git clone https://github.com/jacopoantonello/zernike
$ pip2 install zernike
I got: ModuleNotFoundError: No module named 'h5py'
at line: from zernike import RZern
So H5PY dependency was not installed along wiht zernike when using pip install. I see it in the setup.py setup_requires, so not sure exactly why this happens. In Ubuntu, I started from a fresh conda environment with:
$ conda create -n <name> python=3.9
$ pip3 install torch torchvision torchaudio
$ pip install zernike
This is the fourth term with a coefficient of 1 calculated by this module:
and this is calculated by matlab function:
the matlab function can be downloaded here.
So, why the results are different? Which is correct?
Thank you for your excellent works!
I searched and it seems Zernike derivatives have not yet been implemented. Any plans for that, or which part of the code could you suggest to modify for that purpose?
Thanks,
WDC
Hi, I just cloned this and am trying to understand the module, but my Linter is complaining:
The line ang = self.angular(k, theta_i).reshape((L, 1), order='F')
in the method make_pol_grid seems to be wrong, since self.angular returns a float.
please create a TAG with the version number whenever you push a new release to pypi.org
Hi, supposing as input we have a set of 3-D points (x,y,z) that lie on a 3 dimensional surface.
How would the zernike fitting function work in this case? From the examples it is not apparent what the input should be exactly.
Would be grateful for your help.
Thank you.
Hi Jacopo,
I installed the package zernike. I am wondering if you can share with me the source code to plot the cover figure. Many thanks.
Ji
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()?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.