limhoyeon / ToothGroupNetwork

3D Dental surface segmentation with Tooth Group Network
150 stars 37 forks source link

Visualization code #34

Open Frq-F opened 4 months ago

Frq-F commented 4 months ago

Hello ,When I was using your visualization code to visualize the segmentation results, I find a problem 屏幕截图 2024-04-28 164149 why one teeth not in color.I check the FDI: [ 0 11 12 13 14 15 16 17 21 22 23 24 25 26 27],it's correct

deepsea6034625 commented 4 months ago

I also met same problem. I checked unique values in output json flle. The labels were like this: {0, 11, 12, 13, 14, 15, 16, 17, 21, 22, 23, 24, 25, 26, 27} So, there should be 14 teeth, but the Open3D result only showed 13 teeth. Does anyone know why this happened? Screenshot_8

deepsea6034625 commented 4 months ago

Hello.

I analyzed eval_visualize_results.py source code. There was an logical error in get_colored_mesh() function. For example, the teeth label was [0, 11, 12, 13, 14, 15, 16, 17, 21, 22, 23, 24, 25, 26, 27]. But the source code divide these labels into palte count(17). So, the label 17 became 0. so its color changed to background color.

This was the reason. Thank you.