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)¶ Returns
True
if the givenpath
looks like a VEST LUT file,False
otherwise.
-
fsl.data.vest.
loadVestLutFile
(path, normalise=True)¶ Assumes that the given file is a VEST LUT file, and attempts to load it.
Returns a
numpy.float32
array of shape(n, 3)
, wheren
is the number of colours in the file.If
normalise=True
(the default), the colour values are normalised to the range0-1
.