⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 stc.bff

📁 toolbox of BVQX, This is the access between BV and matlab. It will help you to analysis data from BV
💻 BFF
字号:
# BinaryFileFormat (leave this tag as magic token!)

# BVQX file format for *.STC files (Slice Time Course data)
# STC FileVersions supported: 0 (no versioning information yet)
#
# An STC file contains the functional data (time series) of one
# slice of an experimental run. During FMR project creation, as
# many STC files as there are slices will be created. An FMR
# project links to the STC files with an "STCPrefix".
#
# Version:  v0.6e
# Build:    7061215
# Date:     Jun-12 2007, 3:45 PM CET
# Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
# URL/Info: http://wiki.brainvoyager.com/BVQXtools

# FILE FORMAT
Description:Slice time course files
EncodingSyntax:ieee-le
Extensions:stc

# FIELDS
ListOfFields:!
type  !cond                   !disktype!datatype!dim                      !default !varname
EXPRE !$BFFWRITE  !  !  !  !  !@NrOfRows = size(@STCData, 2); @NrOfCols = size(@STCData, 1); @NrOfVolumes = size(@STCData, 3);
FIELD !                       !uint16  !double  !1, 1                     !        !NrOfRows
FIELD !                       !uint16  !double  !1, 1                     !        !NrOfCols

# calculate NrOfVolumes for reading case...
EXPRE !$BFFREAD   !  !  !  !  !@NrOfVolumes = ($FILESIZE - 4) / (2 * @NrOfRows * @NrOfCols);

# make it fool proof
EXPRE !@NrOfVolumes ~= round(@NrOfVolumes) !!!!!error('BAD_NR_OF_VOLUMES_OR_FILESIZE');

# read/write STC data
FIELD !                       !uint16  !uint16  !@NrOfCols, @NrOfRows, @NrOfVolumes ! !STCData

# Read rest of File into REMAININGCONTENT
EXPRE !$BFFREAD   !  !  !  !  !$RemSize = $FILESIZE - ftell(fid);
EXPRE !$BFFWRITE  !  !  !  !  !$RemSize = 0; try, if isfield(@@, 'REMAININGCONTENT'), $RemSize = prod(size(@REMAININGCONTENT)); end, end
FIELD !$RemSize > 0           !uint8   !uint8   !1, $RemSize              !        !REMAININGCONTENT

EndListOfFields

# new file code snippet
NewFileCode:!
@NrOfRows = 64;
@NrOfCols = 64;
@NrOfVolumes = 1;
@STCData = uint16(0); @STCData(@NrOfCols, @NrOfRows, @NrOfVolumes) = @STCData(1);
EndNewFileCode

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -