Extending the Morphological Hit-or-Miss Transform to Deep Neural Networks