wasserth / TotalSegmentator

Tool for robust segmentation of >100 important anatomical structures in CT and MR images
Apache License 2.0
1.38k stars 225 forks source link

Differentiation between right and left in appendicular bones? #332

Open Billiam2468 opened 1 month ago

Billiam2468 commented 1 month ago

I am working on a project that requires me to be able to differentiate right and left for appendicular bones but have noticed that the model labels each side of the body's respective bone under one label. Is there any way to have these be labeled separately? Thanks!

MOHeller commented 1 month ago

It would be interesting to hear if there are better ideas/alternatives. For the lower limbs, at least, we have sorted that for the most part using some heuristics. From reasonable assumptions about anatomical relationships, you can work out what is up/down, left/right, and the proximity of voxels associated with different structures also helps. Issues may arise if there are some artifacts that are not that easy to resolve for the midfoot/toes. We start our process by extracting the two largest connected components for the patellae, tibiae/fibulae, and hindfoot, to eliminate any strange voxels. PCA on the tibiae and distances between component centroids help sort out where is up/down, left/right, and back/front, and the rest follows from proximity etc. If indeed you are working with knowledge about left/right from the femora it's even easier. The upper extremities are likely more tricky to sort, especially with incomplete structures.