Generate simulated ultrasound images

I have encountered a problem when trying to run the python files of the thesis to execute ImfusionConsole or ImfusionSuite to generate simulated ultrasound images

  1. 03_simulate_lumbar_spine_ultrasound.py
    The details of “03” are as follows:
    errors in imfusion suite:
    [Workspace] Failed to create algorithm “Hybrid Ultrasound Simulation” with specified data.
    [Workspace] Could not restore algorithm Hybrid Ultrasound Simulation
    [Workspace] Could not dereference input data data1 for algorithm Image Resampling
    [Workspace] Skipping Algorithm “Image Resampling” because of missing data
    [Workspace] Could not restore algorithm Image Resampling
    [Workspace] Could not dereference input data 1 for algorithm ImFusionFile
    [Workspace] Skipping Algorithm “ImFusionFile” because of missing data
    [Workspace] Could not restore algorithm ImFusionFile
    [Workspace] Could not dereference input data 1 for algorithm 2D Image Set
    [Workspace] Skipping Algorithm “2D Image Set” because of missing data
    [Workspace] Could not restore algorithm 2D Image Set

  2. 04_ultrasound_simulation.py , but get the following error in imfusion:
    [Workspace] Failed to create algorithm “Hybrid Ultrasound Simulation” with specified data.
    [Workspace] Could not restore algorithm Hybrid Ultrasound Simulation
    Invalid annotation type: GlTrackingStream
    [Workspace] Could not dereference input data data1 for algorithm Image Resampling
    [Workspace] Skipping Algorithm “Image Resampling” because of missing data
    [Workspace] Could not restore algorithm Image Resampling
    Invalid annotation type: GlTrackingStream
    [Workspace] Could not dereference input data data1 for algorithm Volume Reslicing
    [Workspace] Skipping Algorithm “Volume Reslicing” because of missing data
    [Workspace] Could not restore algorithm Volume Reslicing, etc.

I hope to get the causes of errors and solutions, so as to simulate ultrasound images using CT images with imfusion in the thesis.
If you would give me a hand, I will be so much appreciated.

Hi!
Are you sure the ultrasound module is even available? Can you share the entire log, please?
Best,
Oliver

I used the free demo version of the software(Base ImFusion Suite - Demo) before. Do I need to get the paid version or the academic version to use the functions of the ultrasound module?

Thank you very much for your reply.

The full log of “03” is as follows:
[Python] failed to get the Python codec of the filesystem encoding
[Base.Framework] Available Plugins: ImFusionDicom, ImFusionDicomGui, ImFusionML, ImFusionReg, ImFusionSeg.
[GUI.MainWindowBase] OpenGL: 4.5.0 NVIDIA 527.41
[GUI.MainWindowBase] Vendor: NVIDIA Corporation
[GUI.MainWindowBase] GPU: NVIDIA GeForce MX250/PCIe/SSE2
[GUI.MainWindowBase] Memory: 1978 MB of 2048 MB available
[Workspace] Applied workspace file conversion from version 20 to 25: Renamed TrackingStream to TrackingSequence
[Workspace] Placeholder (DirSpline) will be replaced by: ['0.0
[Workspace] Placeholder (PathToFile) will be replaced by: D:\medphys_ct_us_registrations_rerun-main\dataset\01_training\verse004\verse004forcefield0_lumbar_deformed.nii.gz
[Workspace] Placeholder (PathToSaveLabels) will be replaced by: D:\medphys_ct_us_registrations_rerun-main\dataset\01_training\verse004\labels_force0
[Workspace] Placeholder (PathToSaveTrackingStream) will be replaced by: D:\medphys_ct_us_registrations_rerun-main\dataset\01_training\verse004\tracking_force0.ts
[Workspace] Placeholder (PathToSaveUS) will be replaced by: D:\medphys_ct_us_registrations_rerun-main\dataset\01_training\verse004\ultrasound_force0
[Workspace] Placeholder (TransdSpline) will be replaced by: ['0.0
[Workspace] Placeholder 1 will be replaced by: 53.0
[Workspace] Placeholder 10 will be replaced by: -53.0
[Workspace] Placeholder 11 will be replaced by: -83.5
[Workspace] Placeholder 12 will be replaced by: ']
[Workspace] Placeholder 2 will be replaced by: 83.5
[Workspace] Placeholder 3 will be replaced by: 0.0
[Workspace] Placeholder 4 will be replaced by: 53.0
[Workspace] Placeholder 5 will be replaced by: -83.5
[Workspace] Placeholder 6 will be replaced by: ']
[Workspace] Placeholder 7 will be replaced by: -53.0
[Workspace] Placeholder 8 will be replaced by: 83.5
[Workspace] Placeholder 9 will be replaced by: 0.0

Invalid annotation type: GlTrackingStream
[Workspace] Algorithm NIFTI File computed in 3.769 ms
Dataset ‘current_dataset’ has no modality. Consider setting the modality so that modality-specific algorithms can be launched.
Invalid annotation type: GlTrackingStream
[Workspace] Algorithm Set Modality computed in 0.041 ms
Invalid annotation type: GlTrackingStream
[Workspace] Failed to create algorithm “Hybrid Ultrasound Simulation” with specified data.
[Workspace] Could not restore algorithm Hybrid Ultrasound Simulation
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data1 for algorithm Image Resampling
[Workspace] Skipping Algorithm “Image Resampling” because of missing data
[Workspace] Could not restore algorithm Image Resampling
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data1 for algorithm Volume Reslicing
[Workspace] Skipping Algorithm “Volume Reslicing” because of missing data
[Workspace] Could not restore algorithm Volume Reslicing
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data2 for algorithm Replace Values
[Workspace] Skipping Algorithm “Replace Values” because of missing data
[Workspace] Could not restore algorithm Replace Values
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data2 for algorithm Replace Values
[Workspace] Skipping Algorithm “Replace Values” because of missing data
[Workspace] Could not restore algorithm Replace Values
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data1 for algorithm Extract Tracking Sequence
[Workspace] Skipping Algorithm “Extract Tracking Sequence” because of missing data
[Workspace] Could not restore algorithm Extract Tracking Sequence
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data3 for algorithm Tracking Sequence
[Workspace] Skipping Algorithm “Tracking Sequence” because of missing data
[Workspace] Could not restore algorithm Tracking Sequence
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data2 for algorithm Change Selection
[Workspace] Skipping Algorithm “Change Selection” because of missing data
[Workspace] Could not restore algorithm Change Selection
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data2 for algorithm 2D Image Set
[Workspace] Skipping Algorithm “2D Image Set” because of missing data
[Workspace] Could not restore algorithm 2D Image Set
Invalid annotation type: GlTrackingStream
[Workspace] Could not dereference input data data1 for algorithm 2D Image Set
[Workspace] Skipping Algorithm “2D Image Set” because of missing data
[Workspace] Could not restore algorithm 2D Image Set
Invalid annotation type: GlTrackingStream
Parent data of annotation Tracking Stream is unknown, restoring as global annotation.
Invalid annotation type: GlTrackingStream

Dear Xichen,
Base ImFusion Suite Demo does not include the 3D Ultrasound Module. Instead you can test with the ImFusion 3D Ultrasound Suite - Demo:

Best,
Julia

In addition to what Julia wrote: The demo versions are only intended to test functionality. Any productive use of our software, and that includes anything that leads to a publication, requires a license.

Best,
Oliver