For creating an FMR project from mosaic functional data, the CreateProjectMosaicFMR() method is available.
In comparison to the CreateProjectFMR() method, three extra parameters are added. These extra parameters are the width and height of the mosaic image and the number of volumes in a single mosaic file.
To use the method CreateProjectMosaicFMR(), the following steps can be followed:
Via scripting |
Via the BrainVoyager user interface |
Select the project type:
CreateProjectMosaicFMR() |
+
|
Define the file type (see topic 'Project parameters'). |
|
Create a variable with the first file name including the file path. |
|
Specify the number of volumes
|
|
Specify the number of volumes that should be skipped
|
|
Indicate whether a pseudo AMR project should be created from the first functional volume via true or false
|
|
Specify the number of slices. |
|
Provide an prefix name that will be used for the *.stc slices
|
|
In case the data are Big Endian, set the 'swapBytes' parameter to true. |
|
Indicate to x-resolution of the mosaic image, this is the size of the concatenated slices (for example 25 slices will be in a square grid of 5 x 5. When the x-resolution of a single file is 64, the x-resolution for the mosaic image is 5 x 64 = 320. The size is also visible in the 'Rows' and 'Columns' of the Info tab when creating a project via the user interface.
|
|
Do the same for the y-resolution.
|
|
Insert the number of bytes per pixel of the data. For functional data, the number of bytes is usually 2.
|
|
Provide the name of the path where the files should be saved. |
|
Specify the number of volumes in the mosaic image. |
|
The x-resolution parameter should describe the width of the image. |
|
The y-resolution parameter should describe the height of the image.
|
|
Save the project with the SaveAs( name ) method.
|
|
The function could look the following: