Description Usage Arguments Value Examples
Decodes values from a GIFTI image
1 2 3 4 5 6 7 8 |
values |
text from XML of GIFTI image |
encoding |
encoding of GIFTI values |
datatype |
Passed to |
endian |
Endian to pass in |
ext_filename |
if |
n |
number of values to read. Relevant if
|
Vector of values
1 2 3 4 5 6 7 8 9 10 11 12 13 | if (have_gifti_test_data(outdir = NULL)) {
gii_files = download_gifti_data(outdir = NULL)
L = gifti_list(gii_files[1])
orig = L$DataArray$Data[[1]]
encoding = attributes(L$DataArray)$Encoding
datatype = attributes(L$DataArray)$DataType
endian = attributes(L$DataArray)$Endian
vals = data_decoder(orig, encoding = encoding,
datatype = datatype, endian = endian)
enc = data_encoder(vals, encoding = encoding,
datatype = datatype, endian = endian)
enc == orig
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.