How to measure tip position error and angle error between two needles in CT image?

Hello everyone, I am very new to 3D Slicer, and I found this software very amazing! Thank you to the development team!

Currently I am doing a project to compute the tip position error and angle error between two needles in the CT image. I am wondering if anyone can provide any help on this issue. Any suggestion is highly appreciated!

System: Windows 10
Software version: 5.2.1


This is the reference data. As you can see, the needle is short and it is placed in the skull phantom.


This is the second data (Maybe we can call it ‘test data’). As you can see, the needle is longer and it is also placed in the skull phantom.


This is the image where I show them together. One thing I need to mention is that: the CT C-arm is fixed and just does a rotating scan, and the phantom is also fixed, therefore no registration is performed. This may make the problem simpler and more accurate, since registration error may happen. As you can see, some artifects exist because the needle is made from metal.

So with these images, I would like to know how I can compute the tip position error and angle error between two needles? The shorter one is regarded as the reference.


Idea 1:

Do I need to do needle segmentation first? Then how the tip can be automatically detected and computed?


Idea 2:

Maybe I can draw out the two line segments mannually, but this may reduce the accuracy.


Does anyone have better idea? Thank you very much for your advice!

Manually specify a line markup that is aligned with needle takes less than one minute (one click near the tip in the 3D view, then click on the dropped point and adjust in slice views; then repeat this for another point along the needle shaft, as far as possible from the tip).

You could automate the process quite easily, as the needle has very high voxel value, a unique shape, and it is not connected to any other object. For example a fully automatic process could be the following: do thresholding, split islands to segments, then compute segment statistics; the needle will have relatively small volume and very elongated shape - there will be no other segments similar to it.However, since manual definition of the needle is so fast and simple, it might not worth the effort - only if you need to process thousands of cases or you use this intraoperatively and one minute is too long or you don’t have anyone in the operating room that could do the manual marking.