Skip to main content

Preview nifti images on the terminal

Project description

niicat

This is a tool to quickly preview nifti images on the terminal. This can be helpful if you are working on a remote server via SSH and do not have a -X connection. Per default it uses libsixel to display the images. If you add the option -ic it will use iTerm2's imgcat command instead of libsixel to display the images.

Install:

pip install niicat

Install prerequisite libsixel (if you do not use iterm2):

Ubuntu

sudo apt install libsixel-bin

Mac (build from source)

git clone https://github.com/saitoha/libsixel.git
cd libsixel
./configure
make
make install

Also check out the terminal requirements for libsixel to work.

Usage:

niicat T1.nii.gz

This code is based on the following code:

niipre
imgcat

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

niicat-0.2.tar.gz (4.9 kB view hashes)

Uploaded Source

Built Distribution

niicat-0.2-py3-none-any.whl (11.5 kB view hashes)

Uploaded Python 3

Supported by

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