fsl.data.vest¶
This module contains a handful of functions for working with VEST files.
Returns |
|
Assumes that the given file is a VEST LUT file, and attempts to load it. |
-
fsl.data.vest.looksLikeVestLutFile(path)[source]¶ Returns
Trueif the givenpathlooks like a VEST LUT file,Falseotherwise.
-
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.float32array of shape(n, 3), wherenis the number of colours in the file.If
normalise=True(the default), the colour values are normalised to the range0-1.