ndimage: more efficient testing of binary morphology functions
The purpose of this MR is to refactor existing binary morphology tests from a single dense product over all parameters to 2 or 3 products over a small subset of the parameters. The functionality tested should be equivalent while reducing the total number of test cases run by an order of magnitude.
When running the morphology tests with pytest flag -k Binary, the number of tests that run is reduced from 4054 (before) to 412 (after).
/test mini
This pull request is now in conflicts. Could you fix it @grlee77? 🙏
conflicts have been resolved, please retest
/test mini