fsl.data.vest

This module contains a handful of functions for working with VEST files.

looksLikeVestLutFile Returns True if the given path looks like a VEST LUT file, False otherwise.
loadVestLutFile Assumes that the given file is a VEST LUT file, and attempts to load it.
fsl.data.vest.looksLikeVestLutFile(path)[source]

Returns True if the given path looks like a VEST LUT file, False otherwise.

fsl.data.vest.loadVestLutFile(path, normalise=True)[source]

Assumes that the given file is a VEST LUT file, and attempts to load it.

Returns a numpy.float32 array of shape (n, 3), where n is the number of colours in the file.

If normalise=True (the default), the colour values are normalised to the range 0-1.