3D Freehand Ultrasound Workflow: customize output directory

Hi ImFusion Support,

3D Freehand Ultrasound Workflow output directory is always set to /var/tmp/ImFusionRecordedSweeps.

Is there any to keep the last input directory when adding 3D Freehand Ultrasound Workflow ?

Thank you,
David

Hi,

Not directly, it doesn’t have its last configuration in the application settings.

But there’s an alternative solution: The 3D Freehand Ultrasound Workflow uses existing sweep recorders when you open them. This way, you can configure the recorder as you wish, and only then open the workflow. This can be done from a workspace files.

You can also load a workspace file first with a default configuration (with neither input nor output), and then do everything from the UI. For instance:

<propertyfile version="1.1">
    <property name="Algorithms">
        <property name="Record Ultrasound Sweeps">
            <param name="savePath">C:/xxx</param>
        </property>
    </property>
</propertyfile>

Whenever you create a recorder after this file is loaded from the UI, the path is configured as specified.

Best,
Oliver

1 Like

Hi Oliver,

When the path is preconfigured as suggested, adding 3D Freehand Ultrasound Workflow leads to the following log messages:

Unsupported mesh extension in /home/david/sources/bitbucket.org/deski/configuration-imfusion/build
Failed to load ultrasound probe mesh model! Resource path: /home/david/sources/bitbucket.org/deski/configuration-imfusion/build
Probe changed, reloading mesh
Unsupported mesh extension in /home/david/sources/bitbucket.org/deski/configuration-imfusion/build
Failed to load ultrasound probe mesh model! Resource path: /home/david/sources/bitbucket.org/deski/configuration-imfusion/build

The extra configuration that has been added is the following:

        <property name="Recorder Controls">
            <param name="savePath">/home/david/sources/bitbucket.org/deski/configuration-imfusion/data</param>
        </property>

Recorder Controls property has been used instead of Record Ultrasound Sweeps because the path displayed by UI was unchanged and the imf files were still generated in /var/tmp/ImFusionRecordedSweeps.

The log message is the same if savePath param is set to /var/tmp/ImFusionRecordedSweeps.
It looks like configuring this savePath leads to side effects.

How can this be worked around?

Thank you,
David

Hi,

That error message complains that the default US probe model mesh cannot be found. It doesn’t have anything to do with the default save folder but relates to the location in the binary’s resources. Add this to the Recorder parameters to override it:

<param name="probeModelPath">:/UltrasoundProbeModel.obj</param>

Alternatively, we also have :/UltrasoundProbeModelConvex.obj available.

You can also provide an own mesh in obj format, in which case it is advisable to also define probeModelReg as a 4x4 matrix where the mesh can be found in local (image) coordinates.

Best,
Oliver