Introduction

amap is included with cellfinder, and exists as a standalone tool if you do not need the cell detection part

About

amap is the part of cellfinder that takes care of image registration and atlas-based segmentation. It is a Python port of aMAP (originally written in Java), which has been validated against human segmentation.

The actual registration is carried out by NiftyReg.

Details

The aim of amap is to register the template brain (e.g. from the Allen Reference Atlas) to the sample image. Once this is complete, any other image in the template space can be aligned with the sample (such as region annotations, for segmentation of the sample image). The template to sample transformation can also be inverted, allowing sample images to be aligned in a common coordinate space.

To do this, the template and sample images are filtered, and then registered in a three step process (reorientation, affine registration, and freeform registration.) The resulting transform from template to standard space is then applied to the atlas.

Full details of the process are in the original paper.

Overview of the registration process

Installation

pip install amap

For detailed instructions see Installation

Usage

amap /path/to/raw/data /path/to/output/directory -x 2 -y 2 -z 5

For more information see Getting started