Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New command testing_diff_mask #2864

Open
Lestropie opened this issue Mar 15, 2024 · 0 comments
Open

New command testing_diff_mask #2864

Lestropie opened this issue Mar 15, 2024 · 0 comments

Comments

@Lestropie
Copy link
Member

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:

  • Any voxels present in image A that is absent from image B even after N dilations
  • Any voxels absent from image A that are present in ~(~B dilated N times)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant