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

I didn't find the model_file in corneal_top_gen class #2

Open SeanPan2 opened 2 years ago

SeanPan2 commented 2 years ago

Wonderful work! I am studying this program for my research. However, I didn't find the model_ file which contains the dimension information in this project folder. So this program did not run successfully. How can I get this file?

Hoping for your answer!!

sidgairo18 commented 2 years ago

Hi @SeanPan2! Thank you for reaching out. The model_file for the 3D Placido head (placido_head.stl) is at ./data/ring_distribution.txt.

SeanPan2 commented 2 years ago

ok, I find it. Thanks By the way,I also find some other confusing codes: (1): in mire_detection.py, this part of code

idx here is traversing the angles

    for idx, angle in enumerate(np.arange(start_angle, end_angle, jump)):

       '' _if len(image_cent_list[idx]) <= mire:
            r_pixels_temp.append(0)
            coords_temp.append((-1,-1))
        else:
            r = math.sqrt((center[0]-image_cent_list[idx][mire][0])**2 
                + (center[1]-image_cent_list[idx][mire][1])**2)
            x, y = image_cent_list[idx][mire][0], image_cent_list[idx][mire][1]
            r_pixels_temp.append(r)
            coords_temp.append((y,x)) # Note: coords is (y,x) rather than (x,y)_''

It seems that we should change "<=" to ">=" (2): According to what I tested, the image_cent_list is a two dimensional tuple, so I am not sure the index form "image_cent_list[idx][mire][1]" is valid or not. I am rookie in python.