Научная статья на тему 'METHOD OF STRAIGHT LINE DETECTOR ON THE CONTOUR IMAGE'

METHOD OF STRAIGHT LINE DETECTOR ON THE CONTOUR IMAGE Текст научной статьи по специальности «Компьютерные и информационные науки»

CC BY
24
7
i Надоели баннеры? Вы всегда можете отключить рекламу.
Ключевые слова
method of straight / line detector / contour image.

Аннотация научной статьи по компьютерным и информационным наукам, автор научной работы — Beknazarova Saida Safibullaevna, Abdullayeva Ozoda Safibullaevna

In this paper described method of straight line detector on the contour image. Presented the result of summing over all straight lines is a two-dimensional function depending on angle and distance. The resulting function does not carry information about the location of the segments on the line, it only says that it exists, therefore, in addition to the described operations, it will be necessary to implement the segment localization algorithm on the line.

i Надоели баннеры? Вы всегда можете отключить рекламу.
iНе можете найти то, что вам нужно? Попробуйте сервис подбора литературы.
i Надоели баннеры? Вы всегда можете отключить рекламу.

Текст научной работы на тему «METHOD OF STRAIGHT LINE DETECTOR ON THE CONTOUR IMAGE»

APRIL 27-28, 2023

METHOD OF STRAIGHT LINE DETECTOR ON THE CONTOUR IMAGE

Beknazarova Saida Safibullaevna1, Abdullayeva Ozoda Safibullaevna2

1Dsc, doctor of technical science, Professor, head of Dept. Audiovisual technologies of Tashkent University of Information Technologies named by Muhammad Al- Khwarizmi,

saida.beknazarova@gmail.com 2Phd, Professor, Namangan engeneering-construction institute https://doi.org/10.5281/zenodo.7859327

Abstract. In this paper described method of straight line detector on the contour image. Presented the result of summing over all straight lines is a two-dimensional function depending on angle and distance. The resulting function does not carry information about the location of the segments on the line, it only says that it exists, therefore, in addition to the described operations, it will be necessary to implement the segment localization algorithm on the line.

Keywords: method of straight, line detector, contour image.

The first stage involves the selection of contours. At the second stage, the brightness of the points is summed along a straight line, which is specified by the angle and length.

The result of summing over all straight lines is a two-dimensional function depending on angle and distance. The resulting function does not carry information about the location of the segments on the line, it only says that it exists, therefore, in addition to the described operations, it will be necessary to implement the segment localization algorithm on the line.

The advantages of the conversion include the high reliability of detection of straight lines. Contour line breaks along a straight line have little effect on the algorithm.

The disadvantages include the need to carry out the operation of finding contours, searching for areas of intersection of the trajectories of individual points in a multidimensional space of parameters, and the need for additional algorithms to localize segments on the found straight lines.

Angle detectors one of the first algorithms was suggested by Bedet [1-5]. It determines the positions of the corners by the maxima of the Hessian determinant from the image brightness function:

H _ ^xx^yy + Ixy (1)

This method works well with angles of 90. And since the method uses the second derivatives of the brightness function, the result is heavily influenced by noise. In turn, Forstner [11] proposed an angle detector using only the first derivatives of the brightness function and defined the angles as local maxima:

-2 -2 ,-\2

—2—2,-

F(x,y) = f* V«'yJ , (2)

¡X+Iy

where the dashes above the variables denote the average value in some area of the point

The disadvantage of angle detectors using luminance gradient components is that the determination of the gradient components themselves is based on differential masks, models of horizontal and vertical contrast differences. They don't work well at corners, because the mask assumes that the contrast gradient can be extended in a straight line to infinity.

APRIL 27-28, 2023

Circle Detectors An obvious way to find circles in an image is to trace the curvature of contour lines. Ali Aidari Rad et al. proposed an algorithm for quickly finding circles in an image [10] using the opposite directionality of a pair of gradient vectors lying at opposite ends of a circle, as well as the fact that their bases lie on a straight line parallel to them [6-8]. The method is faster than the Hook method for finding circles and is more resistant to salt and pepper noise (noise in the form of random white and black dots).

Pattern search methods allow you to detect some geometric primitives in the image. The detection process is fast in speed, but the primitive matching algorithm can be very computationally complex, because it is necessary to take into account the relative position of the primitives in the image with the object in the image being searched.

Thus, deterministic methods perceive an object with practically unchanged properties in a video sequence, methods are based on the detection of graphic primitives: a point, a line, a circle ... The methods are computationally complex, they are very popular nowadays due to their detection quality.

Optical flow search methods

Optical flow search methods are based on the calculation of the direction of the characteristic areas of the image. In these methods, the detection process is divided into two stages: the calculation of the vector velocity field and the determination of the object's displacement.

Lucas-Kanade method The Lucas-Kanade method is a local method for calculating the optical flow, which has linear computational complexity . The main equation of the optical flow contains two unknowns and cannot be uniquely resolved. The Lucas-Kanade method circumvents the ambiguity by using information about neighboring pixels at each point.

The method is based on the assumption that the value of the optical flow is the same in

the local neighbourhood of each pixel. Consider a pixel p, then, according to the Lucas-Kanade

method, the optical flow should be the same for all pixels located in the window centered at the

point p. Namely, the optical flow vector ( Vx,Vy) at a point pis determined by the formula:

— t

ZiMilMi)2 ItatUqtWqd

XiMiIx{qdIy{qd li^ilyiqi)2

Wx] = LiVilxWi) LiUilAqdlyWO l-Zi^lAqdltiqd] m

Ki Y^Ua^Ua,) Y^Ua,)2 ^Yuiiytidittidr

where q±,q2, —,qnare the pixels inside the window, Ix(qi), !y(qi), h(qi)are the partial derivatives of the image I with respect to coordinates x,yand time tcalculated at the point qi, Mi is the weight assigned to the pixel q^As weights , the normal distribution of the distance between m j and pis usually used qi [10].

The Lucas-Kanade method is purely local and cannot determine the direction of pixel movement within homogeneous regions. Some images may give a degenerate matrix A, for which the inverse matrix cannot be found, so it is impossible to determine the bias for such images. To date, the Lucas-Kanade method has many modifications. In the Tomasi -Kanade method, displacement is considered to be movement and is calculated by iteratively solving the constructed system of linear equations. The Shi- Tomasi -Kanade method takes into account affine distortions. The Jean- Favaro - Soatto method takes into account affine changes in illumination.

Methods for finding singular points

APRIL 27-28, 2023

The algorithm of the methods for finding singular points can be divided into two stages: detection of singular points, comparison of singular points. Feature descriptors are used to match detected features. The singularity descriptor is a vector of numerical characteristics of the neighborhood of the singularity D(x) = [f1(w(x))...fn(w(x))], where w(x)is some neighborhood of the point x, and f(w1, w2)is a measure used to compare the neighborhoods of the singular points. In feature matching, it is the feature descriptors that are compared to make decisions about whether features match or not.

Harris-Laplace method The Harris-Laplace method finds singular points in an image. The classical Harris-Laplace method is not resistant to scaling of objects in the image; the method does not find singular points when the scale is greatly changed. Let us describe the Harris-Laplace method, which takes into account the scaling of objects in the image. 1. First, it is necessary to calculate the values of the scale-adapted Harris function for the scales (Jn = • o"0 H(x, a1, aD) = det(^(x, a1, aD)) + 0.04 • trace2(^(x, a1, aD)), (4)

where ß(x,a1,aD) = g(a1)

^x.norm (x, aD) ^xy.norm (x, Od) ux,norm (x, Od) ^xy.norm (x, Od)

Ol = an, Od = salts

0.7

2. The number of layers and the value of the scale step should be chosen depending on how large the scale change between two images can be.

3. For each scale level, find the local maxima of the calculated Harris function, these are the singular points for a given image scale. Usually enough points are obtained in this way and some of them can be discarded. For example, you can discard all points for which the value of the Harris function does not exceed some value Hthr, because maxima with a small value of the Harris function are less stable.

4. For each singularity found in this way, establish whether the maximum of the function LoG(x,an) = \Lxxnorm(x,on) + Lyynorm(x, an)|with respect to the variable is reached in it n, i.e. LoG(x,on_.i) < LoG(x,on),LoG(x,on l) < LoG(x,on). If the local maximum is not reached, or the value of the function does not exceed the threshold LoGthr, then the point is discarded.

5. All remaining points are features of the image, each point is associated with the scale an on which it was detected [9].

Invariant handle to rescaling

When using the scale - space feature detector, scale invariance is very easy to achieve. To do this, before calculating the descriptor, it is sufficient to carry out normalization in accordance with the local scale of the feature, for example, if the scale 2 is associated with the feature, then the neighborhood of the feature should be scaled with a factor of 0.5, etc. If the descriptor consists of expressions that use exclusively normalized derivatives, then it is not necessary to scale the neighborhood. It suffices to calculate the values of the derivatives for the value of the scale o, which is associated with the singularity.

REFERENCES

1. Anstedt, T. Video analytics: Myths and reality [Text] / T. Anstedt, I. Keller, H. Lutz. - M.: Sequrity Focus, 2012 - 176 p. - 1500 copies - ISBN 978-5- 9901176-5-5.

APRIL 27-28, 2023

2. Alpatov, B. A. Methods of automatic detection and tracking of objects. Image processing and control [Text] / B. A. Alpatov, P. V. Babayan, O. E. Balashov, A. I. Stepashkin, - M.: Radio Engineering, 2008, - 176 p. - ISBN 978-5-88070-201-5.

3. Tracking (computer graphics) [Electronic resource]: Material from Wikipedia - free encyclopedia / Wikipedia authors // Wikipedia, free encyclopedia,. - San Francisco: Wikimedia Foundation, 2014. - Access mode: http://ru.wikipedia.org /?oldid=67077116.

4. Wasserman, F. Neurocomputer technology: Theory and Practice - Neural Computing. Theory and Practice [Text] / F. Wasserman - M.: Mir, 1992. - 240 p. - ISBN 5-03-0021159.

5. Beaudet, P. Rationally Invariant Image Operations [Text] / P. Beaudet // International Joint Conference on Pattern Recognition. - 1978. - pp. 579-583.

6. Forstner, W. A feature based correspondence algorithm for image matching [Text] / W. Forstner // International Archives of Photogrammetry and Remote Sensing. - 1986. - № 5. -150-166

7. Rad, A. A. Fast Circle Detection Using Gradient Pair Vectors [Text] / A. A. Rad, K. Faez, N. Qaragozlou // Proc. VIIth Digital Image Computing: Techniques and Applications. -2003. - pp. 879-887.

8. Krasnobayev, A. A. Review of algorithms for detecting simple image elements and analysis of the possibility of their hardware implementation [Electronic resource] / A. A. Krasnobayev // Institute of Applied Mathematics named after M. V. Keldysh of the Russian Academy of Sciences. - 2005. - Electron. text. dan. - Access mode: http://www.keldysh.ru/papers/2005/prep114/prep2005_114.html (accessed: 17.06.2015).

9. Beknazarova, S., Latipova, N.M., Maxmudova, M.J., Alekseeva, V.S./ Experimental Evaluation of the Efficiency of Compression of Files by Fractal-Spectral Codec/ Communications in Computer and Information Sciencethis link is disabled, 2022, 1703 CCIS, pp. 12-21

10. S. Beknazarova, R. Bazhenov, A Zatonskiy. Advantages of Freeware-based Simulation Tools for Technical and Technological Modeling/Conference: 2021 International Conference on Industrial Engineering, Applications and Manufacturing (ICIEAM) DOI: 10.1109/ICIEAM51226.2021.9446186.

i Надоели баннеры? Вы всегда можете отключить рекламу.