Skip to main content

Openwater Focused Ultrasound Toolkit

Project description

Actions Status Documentation Status

PyPI version PyPI platforms

GitHub Discussion

openlifu is a toolbox for planning and controlling focused ultrasound treatments. It generally replicates the functionality developed in the MATLAB open-TFUS toolbox.

Installation

Requirements

Python 3.10-3.12 on Windows or Linux.

Create Virtual Environment

Windows:

C:\Users\<uname>\AppData\Local\Programs\Python\Python311\python.exe -m venv env
.\env\Scripts\activate

Linux:

python3.11 -m venv env

Install project (editable)

With this repo as the working directory:

Basic mode

pip install -e .

Dev mode

pip install -e '.[dev]'

Installing Meshroom

If you are using openlifu.nav.photoscan to reconstruct meshes from photo collections, then you will need to set up Meshroom 2025.1.0.

Ubuntu

Download and Extract

  1. Download Meshroom 2025.1.0 for Linux from https://github.com/alicevision/Meshroom/releases/tag/v2025.1.0.

  2. Extract the downloaded archive:

    tar -xvf Meshroom-2025.1.0-Linux.tar.gz

Add Meshroom to PATH

Temporary (Current Session) Run:

export PATH="<path-to-meshroom>/Meshroom-2025.1.0-Linux:$PATH"

Replace <path-to-meshroom> with the actual path where Meshroom was extracted.

Permanent (Persistent Across Sessions) For Bash users:

echo 'export PATH="<path-to-meshroom>/Meshroom-2025.1.0-Linux:$PATH"' >> ~/.bashrc
source ~/.bashrc

Windows

Download and Extract

  1. Download Meshroom 2025.1.0 for Windows from https://github.com/alicevision/Meshroom/releases/tag/v2025.1.0.

  2. Extract the downloaded archive to a directory of your choice.

Add Meshroom to PATH

  1. Open Edit environment variables for your account from the Start menu.

  2. In the Environment Variables window, under User variables, select Path and click Edit.

  3. Click New, and add the path to the folder containing Meshroom.exe.

  4. Click OK to save the changes.

Enable GPU Acceleration

To ensure Meshroom uses your NVIDIA GPU:

  1. Open NVIDIA Control Panel.

  2. In the left sidebar under 3D Settings, click Manage 3D settings.

  3. Go to the Program Settings tab.

  4. Click Add, then browse to and select Meshroom.exe from the folder where you extracted Meshroom.

  5. Under Select the preferred graphics processor for this program, choose High-performance NVIDIA processor.

  6. Click Apply.

Getting Sample Data

A sample database for testing and examples is maintained in the openlifu-sample-database repository. Its files are tracked with Git LFS, so first install Git LFS.

Then check out the tagged version of the sample database that is compatible with this version of openlifu:

git clone --depth 1 --branch openlifu-v0.20.0 https://github.com/OpenwaterHealth/openlifu-sample-database.git
cd openlifu-sample-database
git lfs pull

Disclaimer

CAUTION - Investigational device. Limited by Federal (or United States) law to investigational use. The system described here has not been evaluated by the FDA and is not designed for the treatment or diagnosis of any disease. It is provided AS-IS, with no warranties. User assumes all liability and responsibility for identifying and mitigating risks associated with using this software.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

openlifu-0.21.0.tar.gz (286.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

openlifu-0.21.0-py3-none-any.whl (180.2 kB view details)

Uploaded Python 3

File details

Details for the file openlifu-0.21.0.tar.gz.

File metadata

  • Download URL: openlifu-0.21.0.tar.gz
  • Upload date:
  • Size: 286.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openlifu-0.21.0.tar.gz
Algorithm Hash digest
SHA256 1cc47f882d3216be0ecf7c2b9e585e5ee77cd0ea54c45edfe2a469e9e9a24bc0
MD5 680745550739d778bb29c6da92d11d69
BLAKE2b-256 daa57f8b660af033458438f128e4e3b6d4b0a07bed75ddc77acaca3138ffea85

See more details on using hashes here.

Provenance

The following attestation bundles were made for openlifu-0.21.0.tar.gz:

Publisher: cd.yml on OpenwaterHealth/openlifu-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file openlifu-0.21.0-py3-none-any.whl.

File metadata

  • Download URL: openlifu-0.21.0-py3-none-any.whl
  • Upload date:
  • Size: 180.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.12

File hashes

Hashes for openlifu-0.21.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a118a3c34ddff540ee3c54905fe08986e35ace848a7eb3741720c30c18af8cde
MD5 9eb4a69ca6ad5d7e71119fedd7235f45
BLAKE2b-256 d33a15994250bce593e015de1587db0d168b1f9d3b32c9ea0e10e063c3ded4cc

See more details on using hashes here.

Provenance

The following attestation bundles were made for openlifu-0.21.0-py3-none-any.whl:

Publisher: cd.yml on OpenwaterHealth/openlifu-python

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page