MIN Better error message

If the user uses the wrong dimension for a structuring element, let them
know exactly what is going on.