scilus / scilpy

The Sherbrooke Connectivity Imaging Lab (SCIL) Python dMRI processing toolbox
Other
54 stars 59 forks source link

New script to compute similarity between mask and atlas (nii) #994

Open frheault opened 1 month ago

frheault commented 1 month ago

Quick description

This is similar to scil_bundle_pairwise_comparison.py, but for mask and atlas (as nifiti). This is an easy way to quantify the similarity between wmparc of bundle label maps or BET mask in scan-rescan or across subjects for example.

This is generating a JSON file that contains four measures: dice, adjacency_voxels, overlap and overreach.

Everything has to be in uint8 or uint16, coregistered nifti.

...

Type of change

Check the relevant options.

Provide data, screenshots, command line to test (if relevant)

...

Checklist

codecov[bot] commented 1 month ago

Codecov Report

Attention: Patch coverage is 1.92308% with 102 lines in your changes are missing coverage. Please review.

Project coverage is 67.65%. Comparing base (11f218b) to head (9a56930).

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #994 +/- ## ========================================== - Coverage 67.97% 67.65% -0.32% ========================================== Files 419 420 +1 Lines 21615 21717 +102 Branches 3251 3270 +19 ========================================== Hits 14693 14693 - Misses 5633 5735 +102 Partials 1289 1289 ``` | [Components](https://app.codecov.io/gh/scilus/scilpy/pull/994/components?src=pr&el=components&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | Coverage Δ | | |---|---|---| | [Scripts](https://app.codecov.io/gh/scilus/scilpy/pull/994/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `68.42% <1.92%> (-0.54%)` | :arrow_down: | | [Library](https://app.codecov.io/gh/scilus/scilpy/pull/994/components?src=pr&el=component&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=scilus) | `66.49% <ø> (ø)` | |