MATLAB: Triangulating fiducial marker position in c-arm image (DICOM) using stereoParameters

Computer Vision Toolboxdicomstereoparamterstriangulate

Hi,
I have 2 DICOM images exported from a c-arm imaging device. The images are 60 degrees apart in rotation and there is no translation between the two images. There is a marker in each image of which I would like to return the 3-D coordinates in world coordinate system.
The source-imager distance, pixel size, coordinates of the marker in each image, and angle between the two images are all known.
I'm attempting to use stereoParameters and triangulate to achieve this however I am unable to change the FocalLength parameter manually.
Is anyone able to assist me with this? Or recommend an alternative method to achieve my aim?
Regards, Joel

Best Answer

If you have the 3x4 projection matrices for the two gantry positions, then you can use the attached routine to do the triangulation. It isn't the optimal triangulation algorithm, but if your 2D localization errors are small, it serves most practical purposes.