AMR projects can be created via scripting when the following 7 parameters are known: string FileType, string FirstFile, number NrOfSlices, number SwapBytes, number x_res, number y_res and number byte_per_pixel.
An AMR project can be created in the following way:
var docAMR = BVQX.CreateProjectAMR( "SIEMENS", ObjectsRawDataPath + "5807-1-1.ima", 3, true, 256, 256, 2 );
Via scripting |
Via the BrainVoyager user interface |
Select the BrainVoyager QX project type:
CreateProjectAMR()
|
|
Parameter 1: file type Define the file type (see topic 'Project parameters').
|
|
Parameter 2: first file name Create a variable with the first file name. |
|
Parameter 3: number of slices Specify the number of slices. |
|
Parameter 4: endianness In case the data are Big Endian, set the 'swapBytes' parameter to true.
|
|
Parameter 5: width of image The x-resolution parameter should describe the width of the image.
|
|
Parameter 6: height of image The y-resolution parameter should describe the height of the image.
|
|
Parameter 7: number of bytes The number of bytes is for a AMR project often just 2 (16 bits) or 1 (8 bits). In the script example above, the value 2 is used. For more information, see the section Bytes per pixel.
|
|
Save the project with the SaveAs( name ) method.
|
|