This method is an alternative way to improve segmentation quality in Brain Voyager,by completing following steps you'll be able to create an anatomical image with a labeled WM as a single intensity value in Brain Voyager. Be sure you have freesurfer installed before starting these steps.
1) Go to the dicom directory where T1MPR images are and type the following command;
recon-all -subject burak -i filename01.dcm -autorecon1 -autorecon2
this will last 4-5 hours.
2)Go to freesurfer subject directory and under the subject you have analyzed there is a folder called "mri" , find wm.seg.mgz file under it and copy it somewhere else.
3)Go to that folder and run following command;
mri_convert --in_type mgz --out_type nii -input_volume wm.seg.mgz --output_volume wm.nii
this command will convert the mgz format to nii format which we can import to BV with nifti gifti plugin.
4) Open Brain Voyager go to plugins tab and choose "nifti gifti plugin" than run "NIFTI 1 converter"
select input type nifti then select wm.nii file, choose output volume type "vmr";
while converting BV will ask -->
Adapt intensity Values : "Yes"
Labels : "No"
at this point you should have "wm.vmr" which looks likes as follows;
5) Go to Brain Voyager 3D volume tools, choose "spatial transfer" card, than hit the "To Sag" button , it will ask to convert sagital orientation; say NO;
after that correct the orientation in BV's conventional way;
at this point you should get "wm_SAG.vmr"
6) Create subject.VMR in conventional way in BV than observe GM intensities over the ribbon (i.e.90-110)
7) Since WM data converted from many file formats, location of the WM may change , to correct this mismatch;
Open wm_SAG.vmr register it to subject.vmr, you will get .trf file after that transform wm_SAG.vmr to wm_SAG_TRF.vmr.
8) Open subject.vmr overlay the wm_SAG_TRF.vmr check the transformation quality.
9) Open wm_SAG_TRF.vmr , from contrast&brightness settings -->
set brightness level to maximum 100;
set contrast level 1-10; choose contrast level to adjust the intensity 40-50 higher than GM level
10) Apply your mask to original subject.vmr file ;
From 3Dvolume tools --> Segmentation --> options --> masking
choose your wm_SAG_TRF_masked.vmr and set max - min values to cover the intesity value of your mask.
11) Save your new VMR file as white matter masked version, than you can AutoSegment this version using BV 3DvolumeTools.
If everything was fine you should be able to get good segmentation ...
Hi,
ReplyDeleteI'm very interested in this procedure you have outlined here; my lab is split, some people using brain voyager and others using FreeSurfer/FSL. I need to be able to segment files in FreeSurfer and then convert them to BV friendly formats, but our version of BV is relatively old (QX 1.10.2). Im wondering if this plug-in works on this version of Brain Voyager, as it would save me TONS of manual segmentation.
So far, I have found no way for this plug in to work with our version, but I was wondering what version you use it on and if you have any suggestions.
Thanks,
Chris
Thanks for this post. After some trial and error, I got some comments: 1. 3) should use —input_volume (double "--", instead of single "-" as in -input_volume)
ReplyDelete2. 5) should press x -90 once, z + 90 twice, to achieve the desired orientation
3. 7) may need to know that the to-be-coregistered volume should be in the ACPC plane (but somehow I have to save in the original space, in order not to misalign when merging the TRF_masked.vmr with the original vmr).
4. 9) after adjustment, should save the wm_SAG_TRF.vmr as wm_SAG_TRF_masked.vmr
5. 11). As noted in 3, that I have to save the merged file in the original space first, then doing aAPCT and aTAL at this stage.
6. 11a). Typically, automatic segmentation is recommended to use the .TAL version, so I also started with that, and the results are not bad.