Closed martynakielbasa closed 2 years ago
How are you reconstructing the volume, using Plus or 3D Slicer?
For Plus, I think you need to specify ReferenceCoordinateFrame and ImageCoordinateFrame in the VolumeReconstruction element in the config file. http://perk-software.cs.queensu.ca/plus/doc/nightly/user/AlgorithmVolumeReconstruction.html
I am using Plus' VolumeReconstructor.exe. I only use Slicer to view the volume.
I was using the command-line parameter '--image-to-reference-transform=ImageToReference'. Now I have specified ReferenceCoordinateSystem as "Reference" and ImageCoordinateSystem as "Image" and the result of reconstruction is still incorrect. The picture below is what I got after reconstruction. It was supposed to be the femural head.
When you visualize the tracked ultrasound slice in 3D Slicer, does the tracking seem good?
If you mean the three slices from different planes, then not really - I'm not able to see the correct shape of the bone.
No, I meant the live tracked ultrasound image.
I haven't tested it, but this config file should stream the live ultrasound image to Slicer in the Reference coordinate system. stream_us_config_file.txt
You'll need to use the "Volume reslice driver" module from SlicerIGT to display the slice as it's tracked.
I'll test it as soon as I get to the lab again and let you know about the the results.
The tracking of the slice seems good, I tried moving the probe in various directions and also rotate it a bit (result below). It gets a bit laggy but I assume that's when the camera can't see the markers on the probe.
I'm attaching two clips: one from Slicer with the tracked ultrasound slice and another of irl prove movement:
https://drive.google.com/drive/folders/1yblxomDxxZpqb28U08CPKEtnXT3X_MOk?usp=share_link
I also tried to use Slicer to reconstruct volume, but I was not able to record anything (e.g. scout scan). I assumed that it was impossible due to the fact that there was no CaptureDevice available (I compared it with your exemplary elbow sweep file and noticed it then). Does it have something to do with the config file?
My file:
The elbow sweep file:
Yes, the scout scan needs a Virtual capture device. Probably you can just copy it from the other config file.
You can also perform live volume reconstruction directly in Slicer using the Volume Reconstruction module in SlicerIGT: https://www.youtube.com/watch?v=2vXeJxYFou4
I don't see the Volume Reconstruction module in SlicerIGT. I have Slicer 5.0.3. The SlicerIGT extension version is c73b307 (2022-07-08).
For Slicer 5.0.3, you'll need to install the SlicerIGSIO extension.
I tried using the Volume Reconstruction module from Slicer, but still got weird results. The reconstructed volume seems to be lacking depth and cramped.
I also noticed that the image from the ultrasound probe was not displayed correctly - it looked like it was squeezed a bit. I use the Telemed linear probe size 60 mm - maybe that's the problem?
I also tried changing the transformation hierarchy. I tried two different options - none of the worked correctly: Perhaps I still haven't used the proper one.
Image_Image transforming it with ImageToReference, and sending the image as Image_Reference are both correct.
Are you using the same ultrasound probe depth that you calibrated your probe with?
Hello again,
found a solution to my problem by recalibrating with UF image orientation and adding another coordinate system named 'Patient' next to the existent 'Reference' one. I then changed the ReferenceCoordinateSystem for Volume Reconstruction and conducted live volume reconstruction using Slicer. Results below (not a full model yet, only a control scan):
Thank you for all your help and and involvement in this matter!
Great, thanks for the update!
Hello again,
I have encountered a problem that I am not able to solve on my own.
I have performed a full calibration using fCal.exe and now I would like to record a tracked ultrasound sequence of a femur phantom. I want the tool on the phantom to be the reference coordinate system, so that I can move it, rotate it etc. while scanning (picture below). I have the .rom file of the tool.
So far I haven't had much success in solving this issue. Here's what I did: in my config file (the one with the calibration result) I swapped the .rom files of the tools (the one on the calibration phantom and the one on the femur phantom). When I connected my devices, the tool on the femur phantom was seen as 'Reference'. I know that my reasoning was probably wrong, but I wanted to try out the easiest solution that came to my min
After volume reconstruction I got a shattered model, that's how I know the coordinate systems are not correctly specified.
Could you please instruct me on how to solve the problem? FYI, I'm attaching the config file (with swapped file). config_file.txt