|
Size: 1020
Comment:
|
Size: 3145
Comment:
|
| Deletions are marked like this. | Additions are marked like this. |
| Line 1: | Line 1: |
| This proposes a new program, called `mri_overlap`, that will replace the redundant (and buggy) `mri_compute_seg_overlap` and `mri_compute_overlap`. A detailed report of the overlap results can be output to a json file. | = mri_overlap = This page proposes a new program, called `mri_overlap`, that will replace the redundant (and buggy/slow) `mri_compute_seg_overlap` and `mri_compute_overlap`. A primary new feature is the ability to save a detailed overlap report to a JSON file. |
| Line 8: | Line 10: |
| DESCRIPTION: This program computes the overlap between two segmentation volumes. The following statistics can be calculated for each label: dice coefficient - F1-measure of the similarity between the two labels jaccard coefficient - intersecting volume over the combined volume of the two labels volume difference - fractional difference between the label volumes By default, only dice scores are computed, but this can be reconfigured with the --measures flag. Each structure in the input volumes will be considered by default, but an alternative list of labels can be specified with the -l flag. Additionally, the --seg flag will compute the overlap between the following 12 major anatomical structures: Hippocampus (17,53) Caudate (11,50) Putamen (12,51) Pallidum (13,52) Amygdala (18,54) Thalamus Proper (10,49) Lateral Ventricle (4,43) Third and Fourth Ventricles (14,15) Inf Lateral Vent (5,44) Cerebral White Matter (2,41) Cerebral Cortex (3,42) Accumbens Area (26,58) |
|
| Line 11: | Line 43: |
| Save detailed overlap report to a json file. | Save detailed overlap report to a JSON file. |
| Line 15: | Line 47: |
| are computed. Options include: dice - ... jaccard - ... voldiff - ... |
are computed. Options include: dice, jaccard, voldiff |
| Line 21: | Line 50: |
| Space-separated list of labels to use. By default, the overlap | Space-separated list of label valuess to include. By default, the overlap |
| Line 25: | Line 54: |
| File with space-separated list of labels to use. | File specifying a list of labels to include. This file can either be a space-separated list of label values or in the format of a freesurfer color lookup-table. |
| Line 29: | Line 60: |
| }}} | |
| Line 30: | Line 62: |
| -q, --quiet Quiet mode - do not print computed results to stdout |
The proposed JSON output would look something like this: {{{ { "names": { "1": "structure 1", "2": "structure 2" ... }, "inputs": [ "/path/to/manual_label.mgz", "/other/path/to/aseg.mgz" ], "measures": { "dice": { "mean": 0.9142, "std": 0.0232, "labels": { "2": 0.9143, "3": 0.8739, "4": 0.9002, ... } }, "jaccard": { "mean": 0.8902, "std": 0.0144, "labels": { "2": 0.8921, ... } }, "voldiff": { "mean": 0.0221, "std": 0.0032, "labels": { "2": 0.0123, ... } } } } |
mri_overlap
This page proposes a new program, called mri_overlap, that will replace the redundant (and buggy/slow) mri_compute_seg_overlap and mri_compute_overlap. A primary new feature is the ability to save a detailed overlap report to a JSON file.
USAGE:
mri_overlap <vol1> <vol2> [options]
DESCRIPTION:
This program computes the overlap between two segmentation volumes. The following
statistics can be calculated for each label:
dice coefficient - F1-measure of the similarity between the two labels
jaccard coefficient - intersecting volume over the combined volume of the two labels
volume difference - fractional difference between the label volumes
By default, only dice scores are computed, but this can be reconfigured
with the --measures flag.
Each structure in the input volumes will be considered by default, but
an alternative list of labels can be specified with the -l flag. Additionally,
the --seg flag will compute the overlap between the following 12 major
anatomical structures:
Hippocampus (17,53)
Caudate (11,50)
Putamen (12,51)
Pallidum (13,52)
Amygdala (18,54)
Thalamus Proper (10,49)
Lateral Ventricle (4,43)
Third and Fourth Ventricles (14,15)
Inf Lateral Vent (5,44)
Cerebral White Matter (2,41)
Cerebral Cortex (3,42)
Accumbens Area (26,58)
OPTIONAL ARGUMENTS:
-o, --out
Save detailed overlap report to a JSON file.
-m, --measures
List of measures to compute. By default, only dice scores
are computed. Options include: dice, jaccard, voldiff
-l, --labels
Space-separated list of label valuess to include. By default, the overlap
will be computed between all labels available in both input volumes.
-f, --labelfile
File specifying a list of labels to include. This file can either be a
space-separated list of label values or in the format of a freesurfer
color lookup-table.
-s, --seg
Compute overlap between the major segmentation structures listed above.The proposed JSON output would look something like this:
{
"names": {
"1": "structure 1",
"2": "structure 2"
...
},
"inputs": [
"/path/to/manual_label.mgz",
"/other/path/to/aseg.mgz"
],
"measures": {
"dice": {
"mean": 0.9142,
"std": 0.0232,
"labels": {
"2": 0.9143,
"3": 0.8739,
"4": 0.9002,
...
}
},
"jaccard": {
"mean": 0.8902,
"std": 0.0144,
"labels": {
"2": 0.8921,
...
}
},
"voldiff": {
"mean": 0.0221,
"std": 0.0032,
"labels": {
"2": 0.0123,
...
}
}
}
}