Abstract
The integration of mathematical morphology operations within convolutional neural network architectures has received an increasing attention lately. However, replacing standard convolution layers by morphological layers performing erosions or dilations is particularly challenging because the \(\min \) and \(\max \) operations are not differentiable. P-convolution layers were proposed as a possible solution to this issue since they can act as smooth differentiable approximation of \(\min \) and \(\max \) operations, yielding pseudo-dilation or pseudo-erosion layers. In a recent work, we proposed two novel morphological layers based on the same principle as the p-convolution, while circumventing its principal drawbacks, and showcased their capacity to efficiently learn grayscale morphological operators while raising several edge cases. In this work, we complete those previous results by thoroughly analyzing the behavior of the proposed layers and by investigating and settling the reported edge cases. We also demonstrate the compatibility of one of the proposed morphological layers with binary morphological frameworks.
















Similar content being viewed by others
References
Angulo, J.: Pseudo-morphological image diffusion using the counter-harmonic paradigm. In: International Conference on Advanced Concepts for Intelligent Vision Systems. Springer, pp. 426–437 (2010)
Bloch, I., Blusseau, S., Pérez, R.P., Puybareau, É., Tochon, G.: On some associations between mathematical morphology and artificial intelligence. In: International Conference on Discrete Geometry and Mathematical Morphology. Springer, pp. 457–469 (2021)
Bullen, P.S.: Handbook of Means and Their Inequalities, vol. 560. Springer, Berlin (2013)
Calafiore, G.C., Gaubert, S., Possieri, C.: Log-sum-exp neural networks and posynomial models for convex and log-log-convex data. IEEE Trans. Neural Netw. Learn. Syst. 31(3), 827–838 (2019)
Charisopoulos, V., Maragos, P.: Morphological perceptrons: geometry and training algorithms. In: International Symposium on Mathematical Morphology and Its Applications to Signal and Image Processing. Springer, pp. 3–15 (2017)
Dalla Mura, M., Benediktsson, J.A., Bruzzone, L.: Alternating sequential filters with morphological attribute operators for the analysis of remote sensing images. In: Image and Signal Processing for Remote Sensing XVI, vol. 7830. International Society for Optics and Photonics, p. 783006 (2010)
Davidson, J.L., Ritter, G.X.: Theory of morphological neural networks. In: Digital Optical Computing II, vol. 1215. International Society for Optics and Photonics, pp. 378–388 (1990)
Franchi, G., Fehri, A., Yao, A.: Deep morphological networks. Pattern Recogn. 102, 107246 (2020)
Hassoun, M.H., et al.: Fundamentals of Artificial Neural Networks. MIT Press, Cambridge (1995)
Hernández, G., Zamora, E., Sossa, H., Téllez, G., Furlán, F.: Hybrid neural networks for big data classification. Neurocomputing 390, 327–340 (2020)
Kirszenberg, A., Tochon, G., Puybareau, É., Angulo, J.: Going beyond p-convolutions to learn grayscale morphological operators. In: International Conference on Discrete Geometry and Mathematical Morphology. Springer, pp. 470–482 (2021)
Lange, M., Zühlke, D., Holz, O., Villmann, T., Mittweida, S.G.: Applications of Lp-norms and their smooth approximations for gradient based learning vector quantization. In: ESANN, pp. 271–276 (2014)
LeCun, Y., Bengio, Y., Hinton, G.: Deep learning. Nature 521(7553), 436–444 (2015)
LeCun, Y., Cortes, C., Burges, C.J.: The MNIST database of handwritten digits, 10(34), 14. http://yann.lecun.com/exdb/mnist (1998)
Masci, J., Angulo, J., Schmidhuber, J.: A learning framework for morphological operators using counter–harmonic mean. In: International Symposium on Mathematical Morphology and Its Applications to Signal and Image Processing. Springer, pp. 329–340 (2013)
Mellouli, D., Hamdani, T.M., Ayed, M.B., Alimi, A.M.: Morph-cnn: a morphological convolutional neural network for image classification. In: International Conference on Neural Information Processing. Springer, pp. 110–117 (2017)
Mellouli, D., Hamdani, T.M., Sanchez-Medina, J.J., Ayed, M.B., Alimi, A.M.: Morphological convolutional neural network architecture for digit recognition. IEEE Trans. Neural Netw. Learn. Syst. 30(9), 2876–2885 (2019)
Mondal, R., Dey, M.S., Chanda, B.: Image restoration by learning morphological opening–closing network. Math. Morphol. Theory Appl. 4(1), 87–107 (2020)
Nogueira, K., Chanussot, J., Dalla Mura, M., Schwartz, W.R., Santos, J.A.d.: An introduction to deep morphological networks. arXiv preprint arXiv:1906.01751 (2019)
Pessoa, L.F., Maragos, P.: Neural networks with hybrid morphological/rank/linear nodes: a unifying framework with applications to handwritten character recognition. Pattern Recogn. 33(6), 945–960 (2000)
Ritter, G.X., Sussner, P.: An introduction to morphological neural networks. In: Proceedings of 13th International Conference on Pattern Recognition, vol. 4. IEEE, pp. 709–717 (1996)
Roy, S.K., Mondal, R., Paoletti, M.E., Haut, J.M., Plaza, A.J.: Morphological convolutional neural networks for hyperspectral image classification. IEEE J. Sel. Top. Appl. Earth Observ. Remote Sens. (2021)
Serra, J.: Image Analysis and Mathematical Morphology. Academic Press, New York (1983)
Serra, J., Vincent, L.: An overview of morphological filtering. Circuits Syst. Signal Process. 11(1), 47–108 (1992)
Shen, Y., Zhong, X., Shih, F.Y.: Deep morphological neural networks. arXiv preprint arXiv:1909.01532 (2019)
Shih, F.Y., Shen, Y., Zhong, X.: Development of deep learning framework for mathematical morphology. Int. J. Pattern Recogn. Artif Intell. 33(06), 1954024 (2019)
Soille, P.: Morphological Image Analysis: Principles and Applications. Springer, Berlin (2013)
Sussner, P.: Morphological perceptron learning. In: Proceedings of the 1998 IEEE International Symposium on Intelligent Control (ISIC). IEEE, pp. 477–482 (1998)
Sussner, P., Campiotti, I.: Extreme learning machine for a new hybrid morphological/linear perceptron. Neural Netw. 123, 288–298 (2020)
Sussner, P., Esmi, E.L.: Morphological perceptrons with competitive learning: lattice-theoretical framework and constructive learning algorithm. Inf. Sci. 181(10), 1929–1950 (2011)
Valle, M.E.: Reduced dilation-erosion perceptron for binary classification. Mathematics 8(4), 512 (2020)
Wilson, S.S.: Morphological networks. In: Visual Communications and Image Processing IV, vol. 1199. International Society for Optics and Photonics, pp. 483–495 (1989)
Zamora, E., Sossa, H.: Dendrite morphological neurons trained by stochastic gradient descent. Neurocomputing 260, 420–431 (2017)
Zhang, Y., Blusseau, S., Velasco-Forero, S., Bloch, I., Angulo, J.: Max-plus operators applied to filter selection and model pruning in neural networks. In: International Symposium on Mathematical Morphology and Its Applications to Signal and Image Processing. Springer, pp. 310–322 (2019)
Author information
Authors and Affiliations
Corresponding author
Additional information
Publisher's Note
Springer Nature remains neutral with regard to jurisdictional claims in published maps and institutional affiliations.
Rights and permissions
About this article
Cite this article
Hermary, R., Tochon, G., Puybareau, É. et al. Learning Grayscale Mathematical Morphology with Smooth Morphological Layers. J Math Imaging Vis 64, 736–753 (2022). https://doi.org/10.1007/s10851-022-01091-1
Received:
Accepted:
Published:
Issue Date:
DOI: https://doi.org/10.1007/s10851-022-01091-1