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

📄 fbr.tff

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

# BVQX/Trackmark file format for *.FBR files (FiBeR file)
# FBR FileVersions supported: 3, 4
#
# FBR files contain coordinates of a group voxels of interest.
#
# Version:  v0.7a
# Build:    7072014
# Date:     Jul-20 2007, 2:34 PM CEST
# Author:   Jochen Weber, Brain Innovation, B.V., Maastricht, NL
# URL/Info: http://wiki.brainvoyager.com/BVQXtools

# FILE FORMAT
Description:Fiber files (*.fbr)
Extensions:fbr
FieldDelimiters: {[32]}
LineDelimiters: {[13, 10], [10]}
ParagraphArrays:0
SkipEmptyLines:1
Magic:|
name          |range       |type    |magic
FBR_NrOfFibers|1, 320      |regexpi |\s+nroffibers\:\s*\d+
EndMagic

# FIELDS
ListOfFields:!
type !cond               !field               !datatype!format !dim    !default !varname
FIELD!                   !FileVersion         !double  !%d     !1      !3       !FileVersion
FIELD!                   !CoordsType          !string  !%s     !1      !BVI     !CoordsType
FLIST!@FileVersion > 3   !FibersOriginX       !double  !%d     !1      !128     !FibersOriginX
FLIST!@FileVersion > 3   !FibersOriginY       !double  !%d     !1      !128     !FibersOriginY
FLIST!@FileVersion > 3   !FibersOriginZ       !double  !%d     !1      !128     !FibersOriginZ
WRTLN!@FileVersion > 3   !!!!!!# empty line
FIELD!                   !NrOfGroups          !double  !%d     !1      !1       !NrOfGroups

# determine array width
EXPRE!!!!!!!if @FileVersion < 4, $aw = 3; else $aw = 6; end

# loop over Groups
EXPRE!$TFFREAD      !!!!!!$Group = cell2struct(cell(0, 0, 7), {'Name', 'Visible', 'Animate', 'Thickness', 'Color', 'NrOfFibers', 'Fiber'}, 3); if @NrOfGroups > 0, @Group(@NrOfGroups).Name = ''; end
BLOOP!                   ! ! ! !@NrOfGroups ! !GroupNo
WRTLN!!!!!!!  # empty line
FLIST!                   !Name                !string  !%s     !1      !1       !Group($GroupNo).Name
FLIST!                   !Visible             !double  !%d     !1      !1       !Group($GroupNo).Visible
FLIST!                   !Animate             !double  !%d     !1      !0       !Group($GroupNo).Animate
FLIST!                   !Thickness           !double  !%.1f   !1      !0.3     !Group($GroupNo).Thickness
FLIST!                   !Color               !double  !%d     !3      !        !Group($GroupNo).Color
WRTLN!@FileVersion > 3   !!!!!!# empty line
FLIST!                   !NrOfFibers          !double  !%d     !1      !1       !Group($GroupNo).NrOfFibers

# loop over Groups
EXPRE!!!!!!!$NrOfFibers = @Group($GroupNo).NrOfFibers;
EXPRE!$TFFREAD      !!!!!!@Group($GroupNo).Fiber = cell2struct(cell(0, 0, 2), {'NrOfPoints', 'FiberPoints'}, 3);  if $NrOfFibers > 0, @Group($GroupNo).Fiber($NrOfFibers).NrOfPoints = 0; end
BLOOP!                   ! ! ! !$NrOfFibers ! !FiberNo
WRTLN!!!!!!!  # empty line
EXPRE!$TFFWRITE     !!!!!!$NrOfFPts = size(@Group($GroupNo).Fiber($FiberNo).FiberPoints, 1); @Group($GroupNo).Fiber($FiberNo).NrOfPoints = $NrOfFPts;
FIELD!                   !NrOfPoints          !double  !%d     !1      !1       !Group($GroupNo).Fiber($FiberNo).NrOfPoints
EXPRE!$TFFREAD      !!!!!!$NrOfFPts = @Group($GroupNo).Fiber($FiberNo).NrOfPoints;
ARRAY!                   !FiberPoints         !double  !%.g    !$NrOfFPts, $aw !!Group($GroupNo).Fiber($FiberNo).FiberPoints
ELOOP!                   ! ! ! !  ! !FiberNo

ELOOP!                   ! ! ! !  ! !GroupNo

WRTLN!!!!!!!  # empty line
EndListOfFields

NewFileCode:!
@FileVersion = 4;
@CoordsType = 'BVI';
@FibersOriginX = 128;
@FibersOriginY = 128;
@FibersOriginZ = 128;
@NrOfGroups = 1;
@Group.Name = 'default';
@Group.Visible = 1;
@Group.Animate = 0;
@Group.Thickness = 0.3;
@Group.Color = [64, 64, 192];
@Group.NrOfFibers = 0;
@Group.Fiber = cell2struct(cell(0, 0, 2), {'NrOfPoints', 'FiberPoints'}, 3);
EndNewFileCode

⌨️ 快捷键说明

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