Jon,
None of the existing utilities will calculate the Dice of two labels (at least not in a straightforward manner). However, its easy to do in matlab.
Attached is a script to do this. Copy it to your $FREESURFER_HOME/matlab directory.
Usage is:
dice_labels('label1.label','label2.label')
or just
dice_labels('label1','label2')
this assumes the two labels were created in the same volume.
Nick
On Thu, 2009-08-20 at 12:21 -0400, jentis@nmr.mgh.harvard.edu wrote:
Hi,
I need to compute the reliability of two manually traced ROIs and I was told to use the command mri_compute_seg_overlap. However, it seems this command needs its input to be in .mgz format, but the ROIs have been saved as .label files in Freeview. A simple renaming function does not work, so is there another way to make mri_compute_seg_overlap work with .label files? Thanks.
Best, Jon _______________________________________________ Freesurfer mailing list Freesurfer@nmr.mgh.harvard.edu https://mail.nmr.mgh.harvard.edu/mailman/listinfo/freesurfer