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. It uses libsixel to display the images.
Install:
pip install niicat
Usage:
niicat T1.nii.gz
Possible problems
If nothing is displayed check if your terminal supports sixel.
You might also encounter the following error message:
ctypes.ArgumentError: argument 2: <class 'TypeError'>: wrong type
This is a known problem when using libsixel-python.
In this case try using niicat with the option -ic
if you are using iterm2 (this will use imgcat
from iterm2) or
with the option -lb
(this will use libsixel-bin
which can be installed via sudo apt install libsixel-bin
).
This code is based on the following code:
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file niicat-0.3.2.tar.gz
.
File metadata
- Download URL: niicat-0.3.2.tar.gz
- Upload date:
- Size: 5.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 31e2fda913712824e6b698989adddbbd5b78e6fcd12f1c51eac806262c7ef983 |
|
MD5 | 81b23cbf911490280e87505c762668dc |
|
BLAKE2b-256 | 14c8b3a69d3d1b22c175207b2dffdec56f684e97e87671615d6d60131b08bc5b |
Provenance
File details
Details for the file niicat-0.3.2-py3-none-any.whl
.
File metadata
- Download URL: niicat-0.3.2-py3-none-any.whl
- Upload date:
- Size: 14.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/2.0.0 pkginfo/1.5.0.1 requests/2.22.0 setuptools/41.4.0 requests-toolbelt/0.9.1 tqdm/4.25.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 867a9c5584ae07924d5b04645467c9bbd9ee8109c67bb0fe4e336ba1a6af4a92 |
|
MD5 | b8d1f37bcfe1b1c09827299045c335eb |
|
BLAKE2b-256 | a9df242bdfdb9bb2a80012f94171bb66a5be856ec730d5c37bd8d6d085794503 |