Getting started
Installation
Early development
brainhops is in a very early stage of development, and its interfaces may change at any time.
Description
brainhops is a library for applying spatial transformations to images. It aims to support most of the image and transformation formats used in neuroimaging and microscopy.
A central aim of brainhops is to scale to very large images. Arrays can
live in several backends (numpy, cupy and dask.array), so the same
code can run on a GPU or in parallel over chunks of an image that does not
fit in memory.
brainhops has two interfaces:
- The command-line interface, invoked as
brainhops, exposes a subset of the library. Itsreslicecommand applies a chain of transformations to an image and resamples the result onto a reference grid, and itsconvertcommand rewrites an image or a transformation in another format. A command for combining transformations is planned but not implemented yet. - The Python interface, imported as
brainhops, models many kinds of spatial transformation and reads and writes most neuroimaging and microscopy formats.