Brain Architecture Project

Uncovering the blueprint of the brain,
across multiple species

segVoxReassign

This repository contains MATLAB tools for remapping large Allen Brain Atlas segmentation IDs (usually uint32 or uint64) to more manageable uint16 ranges.

Overview

When working with Allen Brain Atlas data, the segmentation IDs can be unwieldy due to their large values. This tool provides a streamlined approach to remap these values while maintaining the integrity of the segmentation data.

Key Features

Main Function: allen_segid_remap

function newI = allen_segid_remap(segname, outname, outext, is2bg, bgvals, addval)

Parameters:

Outputs:

Example Usage

% Example: Remapping Allen segmentation with two background values
allen_segid_remap('allen_seg.vtk', 'allen_seg_remapped', '.nii', 1, [0, 100000], 10000);

View the Full Repository

View on GitHub

Download

Download ZIP Clone with git