The function to create a DMR project with user interface
The syntax for creating diffusion weighted BrainVoyager QX projects is almost identical to creating an FMR project, for example:
if (mosaic) {
var dmrproject = BrainVoyagerQX.CreateProjectMosaicDMR(filetype, firstfile,
nrOfVols, skipVols, createAMR, nrSlices, dwiprefix, byteswap,
mosaicSizeX, mosaicSizeY, bytesperpixel, targetfolder,
nrVolsInImg, sizeX, sizeY);
} else {
var dmrproject = BrainVoyagerQX.CreateProjectDMR(filetype, firstfile, nrOfVols,
skipVols, createAMR, nrSlices, dwiprefix,
byteswap, sizeX, sizeY, bytesperpixel, targetfolder);
}
A difference is that the "number of volumes" parameter does not refer to the number of volumes in a time series, but the number of directions.
An example script to create a DMR project with dialogs is printed below and can be copy-pasted into the BrainVoyager QX Script Editor.
To use the SaveAs() function, enter only the basename (like "series0005"), because ".dmr" is appended automatically.
For a wizard to create custom-sized DMR projects, please see the DTI page on the BrainVoyager wiki.
The parameter for creating DMR projects are provided in the table below. For the order of the arguments, please check the difference between mosaic and non-mosaic images in the example shown in the "Syntax" section above.
Description of parameter |
Argument type |
Argument value range |
Required for: |
|
|
|
|
File type of "raw" data |
String |
"DICOM" "ANALYZE" "PHILIPS_REC" |
CreateProjectDMR() CreateProjectMosaicDMR() |
Name of first file |
|
|
CreateProjectMosaicDMR() |
Number of directions |
Number |
|
CreateProjectMosaicDMR() |
Skip number of directions |
Number |
|
CreateProjectMosaicDMR() |
Create AMR |
Boolean |
true or false |
CreateProjectMosaicDMR() |
Number of slices per volume |
Number |
|
CreateProjectMosaicDMR() |
Prefix for DWI file |
String |
|
CreateProjectMosaicDMR() |
Swap bytes |
Boolean |
true or false |
CreateProjectMosaicDMR() |
X-dimension of mosaic matrix |
Number |
|
CreateProjectMosaicDMR() |
Y-dimension of mosaic matrix |
|
|
CreateProjectMosaicDMR() |
Bytes per pixel |
|
1-8 |
CreateProjectMosaicDMR() |
Name of target folder |
String |
|
CreateProjectMosaicDMR() |
Number of volumes per mosaic image |
Number |
|
CreateProjectMosaicDMR() |
X-dimension of image matrix |
|
|
CreateProjectMosaicDMR() |
Y-dimension of image matrix |
|
|
CreateProjectMosaicDMR() |
For an example of creating DMR projects, see Create DMR files (sample function).
Content-related documentation can be found on the DTI page of the wiki.