Hello.
Using 3D Slicer, I implemented the registration of ultrasound images and OTS data, overlaying a cyan-colored needle model on the ultrasound images. As shown in the figure below, I want to extract the needle tip position and angle of the needle model in pixel coordinates relative to the ultrasound image.
The extracted information is intended to be used as ground truth for evaluating the performance of an ultrasound-based needle detection algorithm.
Currently, the data hierarchy is as follows:
Image_Transducer ← Ultrasound Image
ProbeToImage ← Pointer Calibration Result
└NeedleToProbe ← OTS Data
└NeedleTipToNeedle ← Pivot Calibration Result
└NeedleModel
I receive image data (Image_Transducer) from the ultrasound device and transformation matrix data (NeedleToProbe) from OTS using markers attached to the needle.
Transformation matrices, such as NeedleTipToNeedle and ProbeToImage, have been calculated using pivot and pointer calibrations.
I have been using the GetMatrixTransformToParent() function of the vtkMRMLTransformNode class in the Python console of 3D Slicer, but I am not obtaining the desired data. The extracted values are not in the pixel coordinate system of the ultrasound image.
I need guidance on how to extract the desired information from the data.