Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adds dcm2niix build instructions to README #37

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ with the segmentations generated by TotalSegmentator
- GPU-enabled machine
- Docker
- Required for running the MAP. Not required for running source code
- dcm2niix ([see build instructions](#dcm2niix-install))

## Setup

Expand Down Expand Up @@ -120,6 +121,27 @@ echo $CR_PAT | docker login ghcr.io -u <github-username> --password-stdin
docker push ghcr.io/gstt-csc/totalsegmentator-aide/map-init:0.2.0
```

## dcm2niix install

This MAP requires [dcm2niix](https://github.com/rordenlab/dcm2niix). For best performance, we build from source
following the [guidelines here](https://github.com/rordenlab/dcm2niix#build-from-source).

Instructions in short (assuming Ubuntu):
```shell
# install dcm2niix dependencies
sudo apt-get install cmake pkg-config

# build and install dcm2niix
git clone https://github.com/rordenlab/dcm2niix.git
cd dcm2niix
mkdir build && cd build
cmake -DZLIB_IMPLEMENTATION=Cloudflare -DUSE_JPEGLS=ON -DUSE_OPENJPEG=ON ..
sudo make install # creates dcm2niix inside /usr/local/bin

# test install
dcm2niix -h
```

## GitHub Packages

Note: two containers are present under GitHub Packages:
Expand Down