Array Data
Accessing BrainVoyager data through Numpy arrays
Accessing BrainVoyager data through Numpy arrays
This module provides a speed optimized interface to BrainVoyager data working with Numpy arrays.
It has to be imported before it can be used by calling import bv
.
Get volume for specified time point t of FMR document as a contigous 1D numpy array. Note: This provides direct access to the original (float32) memory block (no copy).
x = bv.fmrarray_t(a, b)
Get three arrays of the x, y, z coordinates of the vertices of a mesh (SRF) document as contigous 1D numpy arrays. Note: This function provides direct access to the original (float32) memory blocks (no copy).
x, y, z = bv.mesharrays(a)
Sets the values of the volume for the specified time point t of FMR document from provided float32 numpy array.
x = bv.set_fmrarray_t(a, b ,c)
True
or False
)Sets the values of the x, y, z coordinates of the vertices of a mesh (SRF) document from 3 provided float32 numpy arrays.
x = bv.set_mesharrays(a, b, c, d)
True
or False
)Sets the values of surface map specified with index i of hosting VMR-SRF document from provided float32 numpy array.
x = bv.set_smparray_i(1, b, c)
True
or False
)Sets the values of volume map specified with index i of hosting VMR document from provided float32 numpy array.
x = bv.set_vmparray_i(a, b, c)
True
or False
)Sets the values of the volume of VMR document from provided uint8 numpy array.
x = bv.set_vmrarray(a, b, c)
True
or False
)Get surface map for specified index i of hosting VMR-SRF document as a contigous 1D numpy array. Note: This function provides direct access to the original (float32) memory block (no copy).
x = bv.smparray_i(a, b)
Get volume map for specified index i of hosting VMR document as a contigous 1D numpy array. Note: This provides direct access to the original (float32) memory block (no copy).
x = bv.vmparray_i(a, b)
Get the volume of VMR document as a contigous 1D numpy array. Note: This provides direct access to the original byte (uint8) memory block (no copy).
x = bv.vmparray_i(a)