MRtrix3 / mrtrix3

MRtrix3 provides a set of tools to perform various advanced diffusion MRI analyses, including constrained spherical deconvolution (CSD), probabilistic tractography, track-density imaging, and apparent fibre density
http://www.mrtrix.org
Mozilla Public License 2.0
291 stars 179 forks source link

New command testing_diff_mask #2864

Open Lestropie opened 6 months ago

Lestropie commented 6 months ago

In trying to sort out #2789, there's a number of places where there is a desire to compare two masks, but to allow some amount of tolerance in the comparison of those masks. This is done my running both through a smoothing filter.

A better solution would be to have a command testing_diff_mask, which has a command-line option permitting a tolerance of distance mismatch between the two images.

I'm intuiting that in the context of binary images, the should be a set of basic image processing steps to do the trick: