educelab / quick-segment

Quick volume segmentation tool
GNU General Public License v3.0
13 stars 0 forks source link

quick-segment

Installation

cd /path/to/quick-segment/
python3 -m venv venv
source venv/bin/activate

python -m pip install -e .

Usage

source venv/bin/activate  # if you haven't already
quick-segment --input-volpkg <volpkg_path> --volume <volume_id>

Updating the resources file

Use rcc provided by Qt6 to process resources.qrc. By default, this produces a file which imports PySide6, so make sure to modify the import for PyQt6.

cd qs/
rcc -g python resources.qrc | sed 's/PySide6/PyQt6/g' > resources.py

macOS

For some reason, rcc isn't linked into the PATH. It can currently be found at:

/opt/homebrew/Cellar/qt/6.4.0_1/share/qt/libexec/rcc