CREATING FMR PROJECTS

Functional imaging projects (*.fmr) projects can be created via the method CreateProjectFMR(). The parameters are:

 

 CreateProjectFMR(fileType, name, nrOfVols, skipVols, createAMR, nrSlices, stcprefix,byteswap, sizeX, sizeY,bytesperpixel)

 

For more information about parameters for creating BrainVoyager projects, see the topic Project parameters.

 

In case the time is the first in the 4D array (t-x-y-z), use the same procedure as described below but exchange the CreateProjectFMR() command for CreateProjectFMRSlicesTimeLooping().

 

 

Via scripting

Via the BrainVoyager user interface

 

Create the FMR project:

 

var docFMR =  BrainVoyagerQX.CreateProjectFMR(fileType, fmrname, nrOfVols, skipVols, createAMR, nrSlices, stcprefix,byteswap, sizeX, sizeY, bytesperpixel);

 

or use CreateProjectFMRSlicesTimeLooping() in case time is running fastest (the slices x time option in the 'Create project' dialog: t-x-y-z instead of x-y-z-t). The parameters for the command stay the same.

 

For Mosaic FMR projects, see Mosaic FMR Projects.

 

 

 

and, if needed

 

 

 

Define the file type (see topic 'Project parameters').

 

var fileType = "DICOM";

 

or use one of "SIEMENS", "GE_I", "GE_MR", "PHILIPS_REC", "ANALYZE" (see Project parameters).

 

 

 

 

Create a variable with the first file name including the file path:

var firstFile = "C:/Data/0001.dcm";

 

 

 

 

Specify the number of volumes:

var nrOfVols = 252;

 

 

 

 

Specify the number of volumes that should be skipped:

var skipVols = 2;

 

 

 

Indicate whether a pseudo AMR project should be created from the first functional volume via true or false:

var createAMR = true;

 

 

 

Specify the number of slices:

var nrSlices = 25;

 

 

 

 

Provide an prefix name that will be used for the *.stc slices:

var stcprefix = "run1";

 

 

 

 

In case the data are Big Endian, set the 'swapBytes' parameter to true:

var byteswap = false;

 

 

 

 

Insert the number of bytes per pixel of the data. For functional data, the number of bytes is usually 2:

var bytesperpixel = 2;

For more information, see Bytes per pixel.

 

 

 

Provide the name of the path where the files should be saved:

var savingDir = "C:/Data/";

 

 

 

The x-resolution parameter should describe the width of the image:

var sizeX = 64;

 

 

 

 

The y-resolution parameter should describe the height of the image:

var sizeY = 64;

 

 

 

Save the project with the SaveAs( <name> ) method.

 

docFMR.SaveAs(savingDir + stcprefix + ".fmr");

docFMR.Close();