imglib / imglib2-algorithm

Image processing algorithms for ImgLib2
http://imglib2.net/
Other
22 stars 20 forks source link

Allow wider Shape generics in lists in morphology ops #85

Closed gselzer closed 3 years ago

gselzer commented 4 years ago

This PR refactors all morphology methods taking a List< Shape > as input (they now take a List< ? extends Shape >), allowing for wider input sets while maintaining compile-time and runtime safety. This is especially useful for imagej-ops, since the wildcard generic allows a wider query of (safe) Op requests to match wrapper ops for these methods.