CreateProjectMosaicFMR Method


Description

Creates a FMR project file. FMR projects consist of a set of functional data in the original "slice space". For each slice a stack of repeated measurements (images) is stored in an STC file. The "Mosaic" version of FMR creation is necessary when reading Siemens files from scanning sequences which store several slices within a single image. The format of such "mosaic-images" is not a stack of slices (i.e. as in ANALYZE files), therefore special treatment is required.

Syntax

objDocument objBrainVoyager.CreateProjectMosaicFMR(strFileType, strFirstFile, intNrOfVolumes, intNrOfSlices, strSlicePrefix, intSwapBytes, intImageXRes, intImageYRes, intBytesPerPixel, strTargetPath, intSliceXRes, intSliceYRes)

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" and "DCxVR" (explicit value coding version of DICOM 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. The parameters intImageXRes and intImageYRes describe the resolution of a single image (i.e. 256 x 256) whereas intSliceXRes and intSliceYRes (i.e. 64 x 64) describe the resolution of the actual slices within an image. 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.
CreateProjectMosaicFMR("IMA", path + "5807-4-34.ima", 126, 16, "slice-", 1, 256, 256, 2, path, 64, 64)

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

docVMR = BrainVoyager.
CreateProjectMosaicFMR("IMA", path + "5807-4-34.ima", 126, 16, "slice-", 1, 256, 256, 2, path, 64, 64);

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

$docVMR = $BrainVoyager->
CreateProjectFMR("IMA", $path . "5807-4-34.ima", 126, 16, "slice-", 1, 256, 256, 2, $path, 64, 64);