📜 ⬆️ ⬇️

Exact selection of contours on images

I want to describe one of the nonlinear contour extraction algorithms on images.

Classic

Almost all known contour extraction algorithms approaching an image as a matrix of numbers with values ​​of 0..255, integers within one machine byte (16 bits are considered later). Then, convolution with the coefficient matrix is ​​done.

And if you do not do that?

')
And if you do not do that?

But if we deepen, in our analysis, and assume an even deeper fragmentation of the image, namely, “embroider” it into binary layers .
in place of a single matrix of 0..255 values, we consider 8 matrices of the same size, but with values ​​of 0..1

And now we apply to the obtained binary matrices convolution with ...

image

Without coefficients. Just perform the function of Boolean algebra. After all, the input data is binary values. [one]

Exposing

Where did this boolean function come from?

visual results:
image


for comparison:
image


and another live example
image

options
image
"Ascending"

image
"Downward"

[1] Aizenberg I. and Butakoff C., “Image Processing Using Multiple-Valued and Universal Binary Neurons”, Journal of VLSI Signal Processing Systems for Video, Image and Video Technology, Vol. 32, 2002, pp. 169-188.
[2] XZSun, and ANVenetsanopoulos “Adaptive Schemes for Noise Filtering and Edge Detection by us
Statistics ”, IEEE Transactions on Circuits and Systems, vol. CAS-35, 1988, pp. 57-69
[3] RMHaralick “Statistics and Structural Approach to Texture”, Proceedings IEEE, vol. 67, No 5, 1979, pp. 786-804

Source: https://habr.com/ru/post/128803/


All Articles