[Proba Volume] Convert to colored atlas for visualization

This process converts a 4D volume of probabilities into an atlas-like RGB volume were colors are weighted by class probabilities. This allows to look at all the probabilities at once. It is for visualization purposes only.

Description

Figure 1. Class probabilities stored in the 4D volume are used to merge the atlas colors with appropriate weights. A voxel with a probability of 1 to belong to class isocortex will have th same color as in a segmentation. A voxel with probabilities 0.5 to belong to isocortex and 0.5 to belong to white matter will have a color obtained by the merge of the corresponding colors.
Figure 2. Example of application. The first columns shows the probability map and corresponding color atlas for the prior probabilities (the ones derived from the registered atlas). The second column shows the probability map and corresponding color atlas for the posterior probabilities (obtained after EM optimization and used to derive the resulting segmentation).

Parameters

input_proba: Probabilities Volume ( input )

A 4D volume of probabilities.

input_hierarchy: P:Atlas Labels Hierarchy ( input )

The associated hierarchy in which colors corresponding to each class are stored.

output_colormap: 3D Volume ( output )

Output RGB volume.

Technical information

Toolbox : Primatologist

User level : 0

Identifier : probaToColorMap

File name : brainvisa/toolboxes/primatologist/processes/tools/probaToColorMap.py

Supported file formats :

input_proba :
gz compressed NIFTI-1 image, Aperio svs, BMP image, DICOM image, Directory, ECAT i image, ECAT v image, FDF image, FreesurferMGH, FreesurferMGZ, GIF image, GIS image, Hamamatsu ndpi, Hamamatsu vms, Hamamatsu vmu, JPEG image, Leica scn, MINC image, NIFTI-1 image, PBM image, PGM image, PNG image, PPM image, SPM image, Sakura svslide, TIFF image, TIFF image, TIFF(.tif) image, TIFF(.tif) image, VIDA image, Ventana bif, XBM image, XPM image, Zeiss czi, gz compressed MINC image, gz compressed NIFTI-1 image
input_hierarchy :
Hierarchy, Hierarchy
output_colormap :
gz compressed NIFTI-1 image, BMP image, DICOM image, Directory, ECAT i image, ECAT v image, FDF image, GIF image, GIS image, JPEG image, MINC image, NIFTI-1 image, PBM image, PGM image, PNG image, PPM image, SPM image, TIFF image, TIFF(.tif) image, VIDA image, XBM image, XPM image, gz compressed MINC image, gz compressed NIFTI-1 image