jhacsonmeza / StructuredLight_3DfreehandUS

Multimodal medical imaging technique by combining 3D freehand ultrasound and structured light
33 stars 3 forks source link

If I have the pose sequence and coresponding 2D US sequence... #1

Closed Sere1nz closed 21 hours ago

Sere1nz commented 2 months ago

if I already had the probe pose and coresponding 2D US sequence, and I only want to reconstruct 3d ultrasound like the following figure. image

What should I do next or which sricpts should I focus on? Do I have enough reconstruction information? If not, what extra information do I need? Thank you very much!

jhacsonmeza commented 2 months ago

Hi @Sere1nz You also need the transformation between the ultrasound image coordinate system and the probe coordinate system (which is the marker or target you use for the probe pose estimation). You can estimate this transformation through a calibration process. Here https://github.com/jhacsonmeza/US-Calibration you can find a repo I have for that. It's based on the calibration process using a stereo vision system and that specific marker, but you can use your own tracker and use the same UScalib.py script to do your calibration. Once you have this transformation, you're ready to do what you want (the 3D mapping of your ultrasound slides to the 3D space). You can achieve that with these lines of code. You just need to replace the function mapMask with mapBscans. The difference is that mapMask only maps to the 3D space the pixels inside a mask, and mapBscans maps the entire ultrasound slide (which is what you want). Hope this can help. If you have any other question, please let me know!