Create VTC in Talairach space

In the simplest case for creation of a volume time course (*.vtc) in Talairach space 5 parameters are required (see sample script below).

 

There are two methods for creating a VTC file in Talairach space, the CreateVTCinTALSpace() method and the CreateVTC() method. The CreateVTCinTALSpace() method is available since BrainVoyager QX 1.3 and is the recommended method.

 

In BrainVoyager QX 1.8, the VTCs can be created with extended Talairach space. This can be performed by setting the new property BVQXproject.ExtendedTALSpaceForVTCCreation = true. This causes the Talairach box on the z-axis is to be 24 mm larger: 52 to 196 instead of 52 to 172. This feature is default off. To create this extended VTC, set the property to true before invoking the CreateVTCinTALSpace() method.

To ensure that the proper bounding box will be applied, set the property to false if the cerebellum should not be included BVQXproject.ExtendedTALSpaceForVTCCreation = false.

 

 

Via scripting

Via the BrainVoyager user interface

 

1. Open the anatomical image via the OpenDocument() method.

 

var docVMR = BrainVoyagerQX.OpenDocument(FileDialog.getOpenFileName("*.vmr", "Please select the VMR"));

 

 

 

 

2. Add the source FMR file parameter (*.fmr)

 

var fmrName = FileDialog.getOpenFileName("*.fmr", "Please select an FMR ");

 

 

 

3. Add the initial alignment transformation file (*_IA.trf)

 

var IA = FileDialog.getOpenFileName("*_IA.trf");

 

 

 

4. Add the fine alignment transformation file (*_FA.trf)

 

var FA = FileDialog.getOpenFileName("*_FA.trf");

 

 

 

5. Add the transformation file used for transformation of the anatomical image from native space to AC-PC space (*_ACPC.trf).

 

var ACPC = FileDialog.getOpenFileName("*_ACPC.trf");

 

 

 

6. Add the file containing the landmarks for the transformation to Talairach space (*.tal)

 

var TAL = FileDialog.getOpenFileName("*.tal");

 

 

 

7. Enter a file name for the VTC to be created

 

var newVTCname = FileDialog.getSaveFileName("*.vtc", "Please enter a name for the new VTC");

 

 

 

8. Specify the resolution; this can be 1, 2, or 3 (mm3).

 

var res = Input.getNumber("Please enter the resolution (1, 2 or 3 mm)", 3);

 

 

 

9. Select an interpolation method (1 is trilinear)

 

var interp = 1; // Interpolation method, no choices possible for the moment

 

 

 

10. Specify the default intensity threshold

 

var bbithresh = Input.getNumber("Please enter the intensity threshold", 100);

 

 

 

 

 

11. Set the parameter for extended Talairach box to true if the cerebellum should be included.

 

var extAnswer = MessageBox.information("Would you like to have TAL space with extended cerebellum?", MessageBox.Yes, MessageBox.No);

docVMR.ExtendedTALSpaceForVTCCreation = (extAnswer == MessageBox.Yes) ? true : false;

 

 

 

 

12. Add the BrainVoyager method CreateVTCinTALSpace() for creating a VTC in Talairach space.

 

var success = docVMR.CreateVTCInTALSpace(fmrName, IA, FA, ACPC, TAL, newVTCname, res, interp, bbithresh);

 

 

 

 

See the Script to quickly create 3 VTCs in TAL space