CreateProjectAMR Method


Description

Creates an AMR project file. AMR projects consist of a set of two-dimensional anatomical scans used to overlay statistical maps in the original "slice space".

Syntax

objDocument objBrainVoyager.CreateProjectAMR(strFileType, strFirstFile, intNrOfSlices, intSwapBytes, intXRes, intYRes, intBytesPerPixel)

Remarks

If successful, objDocument is returned. Use this object to access document methods. If the project creation operation fails, the return value is x. The parameter strFileType can be one of the following strings: "IMA" (native Siemens format), "DICOM", "DCxVR" (explicit value coding version of DICOM format), "ANALYZE" and "GE_MR" (a native GE format). The strFirstFile parameter must contain the full path information. In most cases, the intSwapBytes and intBytesPerPixel parameters should be set to 1 and 2, respectively. You may want to check proper reading of your data using the New Project Wizard or Create Project dialog before using this command in your scripts.

Example

' VBScript
Set BrainVoyager =
CreateObject("BrainVoyager.1")
path = "C:\My Documents\SampleData\"

Set docVMR = BrainVoyager.
CreateProjectAMR("IMA", path + "5807-2-4.ima", 15, 1, 256, 256, 2)

// JScript
BrainVoyager =
new ActiveXObject("BrainVoyager.1");
path = "C:\\My Documents\\SampleData\\";

docVMR = BrainVoyager.
CreateProjectAMR("IMA", path + "5807-2-4.ima", 15, 1, 256, 256, 2);

# PerlScript
$BrainVoyager =
Win32::OLE->new("BrainVoyager.1");
$path = "C:\\My Documents\\SampleData\\";

$docVMR = $BrainVoyager->
CreateProjecAVMR("IMA", $path . "5807-2-4.ima", 15, 1, 256, 256, 2);