How to assert that images are equal, in Python unit test?

Yes, and it as also worth noting that itkwasm-compare-images produces these in a convenient way – they are also available in metrics.

1 Like

This reminds me that one of the reasons I didn’t use this filter more was that it didn’t work with VectorImages and Images of Vectors as I recall. That was back in the day where complex meta-programming would have been required to dispatch to different functions for these different types.

I would imaging that now with the constexpr if statements, this would be much easier to support in the filter. Using constexpr if statements in SimpleITK really makes the code a lot more straight forwards and easier to read.

1 Like