Open SeanPan2 opened 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
.
ok, I find it. Thanks By the way,I also find some other confusing codes: (1): in mire_detection.py, this part of code
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.
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!!