microsoft / SmartKC-A-Smartphone-based-Corneal-Topographer

This is the official implementation for the SmartKC project. SmartKC is a smartphone based corneal topographer.
Creative Commons Attribution 4.0 International
37 stars 14 forks source link

'RZern' object has no attribute 'eval_curvature_grid' #1

Open frascuelillo opened 2 years ago

frascuelillo commented 2 years ago

Hello, First, congrats for that proyect, it´s very interesting to use a smartphone to get corneal topography. I'm trying to compute one of the sample images, but I get the error: File "C:\Users\Francisco\Desktop\SmartKC-A-Smartphone-based-Corneal-Topographer-main\main.py", line 139, in zernike_smoothening k1, k2 = cart.eval_curvature_grid(c1, matrix=True) AttributeError: 'RZern' object has no attribute 'eval_curvature_grid'

Looking at Zernike library, there is no function called :'eval_curvature_grid' Any idea? best regards. Franciso

sidgairo18 commented 2 years ago

Hi @frascuelilo, thank you for your interest in our work. Sorry, I missed adding the updated zernike library code here.

However, I have created a pull request to the main Zernike repo: https://github.com/jacopoantonello/zernike/pull/10/commits/93b8dcd2ce462bcd691cdad77d38e55c2f69fac5

You can use the init.py function from there, and try to run it again. This time it should work. Hope you have fun using our code and testing things out :)