CreateProjectVMR Method


Description

Creates a VMR project file. VMR projects consist of three-dimensional high-resolution scans used to overlay statistical maps, i.e. in Talairach space. VMR files are also used for head and surface reconstructions.

Syntax

objDocument objBrainVoyager.CreateProjectVMR(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.
CreateProjectVMR("IMA", path + "5807-130-1924.ima", 170, 1, 256, 256, 2)

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

docVMR = BrainVoyager.
CreateProjectVMR("IMA", path + "5807-130-1924.ima", 170, 1, 256, 256, 2);

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

$docVMR = $BrainVoyager->
CreateProjectVMR("IMA", $path . "5807-130-1924.ima", 170, 1, 256, 256, 2);