Surface element shielding judgment method during irradiation of random fluctuation interface by sound wave
Technical Field
The invention relates to an underwater target detection method, in particular to a method for judging the shielding of a surface element which is not irradiated by sound waves.
Background
The method is characterized in that the occlusion judgment of the surface element is one of key technologies when a physical acoustic method is used for calculating the problem of a random fluctuating interface scattering sound field, and the surface element which does not contribute to the scattering sound field is removed by judging the occlusion relation of the surface element. The traditional method is to perform traversal search and judge whether each surface element is mutually shielded, so that the problems of large calculation amount and low efficiency exist. The fast search method of the occlusion surface element is researched by methods such as a topological trace method (research on occlusion algorithm of complex cavities of airplane engines in the Tantao, Chenyulin, 2013, volume 11, No. 2) and a surface element grouping method (Jijin ancestor, Liu station combination, electromagnetic occlusion algorithm based on surface element grouping and optimization thereof, the university of Beijing aerospace, 2009, volume 35, No. 4), but the occlusion problem of regular-shaped targets is solved. In the method for rapidly searching occlusion surface elements when random fluctuation interfaces are irradiated by sound waves (CN2015101409180), the calculation amount is reduced by a method for reducing the search area, the efficiency is improved relative to the traversal search, and the surface element search still needs to be carried out.
Disclosure of Invention
The invention aims to provide a surface element shielding judgment method when sound waves with simple logic and small calculation amount irradiate a random fluctuation interface.
The purpose of the invention is realized as follows:
(1) importing N surface element node information of a random fluctuating interface subjected to triangular surface element division and a sound wave incidence direction;
(2) projecting the random fluctuating interface to an observation plane according to the incident direction of sound waves, wherein the side lengths of the observation plane are LxAnd Ly;
(3) Setting the pixel resolution N of the observation planepixLet N stand forpix≥2LmaxL, wherein LmaxIs LxAnd LyL is the bin side length;
(4) discretizing each surface element by using a Z-buffer algorithm and taking pixels as units, and recording the pixel number M of the non-shielding display on each surface element
0And calculating to obtain the pixel number M of each bin for normal display
1Memory for recording
The surface element shielding rate is;
(5) setting a surface element shielding judgment threshold value Q, if QMIf the surface element is larger than Q, judging that the surface element is not blocked; otherwise, the image is judged to be blocked.
(6) And 5, judging all surface elements in the step 5, and deleting all blocked surface elements, namely finishing the surface element blocking judgment in the sound wave irradiation process.
The present invention may further comprise:
1. the observation plane completely contains the projection plane of the random undulating interface.
2. The value range of Q is (0, 1).
Aiming at the surface element shielding problem of a random fluctuation interface, the invention provides a method for judging the shielding surface element when sound waves irradiate the random fluctuation interface by calculating the surface element shielding rate without surface element searching, so that the process of searching and judging the surface element by the existing method is avoided, and compared with the existing method for judging the shielding by searching, the method has the following advantages that:
1. the Z-buffer algorithm is utilized to calculate the pixel number on the surface element only, and the surface element is subjected to shielding judgment by calculating the surface element shielding rate, so that the surface element searching and judging process is avoided, and the calculated amount is reduced;
2. the method has simple logic and is easy to realize the program.
Drawings
Fig. 1 is a random undulating interface that has been triangularly binned.
Fig. 2 shows the azimuth and elevation angles in a rectangular coordinate system.
Fig. 3 is a schematic projection view.
FIG. 4 is a random undulating interface with occluded bins removed.
FIG. 5 is a flow chart of bin occlusion when the acoustic wave illuminates the relief interface.
Detailed Description
With reference to fig. 5, the method for determining surface element shielding when a random fluctuation interface is irradiated by sound waves of the present invention includes the following steps:
1. and importing N surface element node information of the random undulating interface subjected to triangular surface element division and the incident direction of the sound wave.
2. Projecting the random fluctuation interface to an observation plane according to the incident sound wave direction, wherein the observation plane completely comprises the projection plane of the random fluctuation interface, and the side lengths of the observation plane are LxAnd Ly。
3. Setting an observation plane pixel resolution NpixLet N stand forpix≥2LmaxL, wherein LmaxIs LxAnd LyAnd l is the bin side length.
4. Using Z-buThe ffer algorithm discretizes each surface element by taking pixels as units, and records the pixel number M of the unshielded display on each surface element
0And calculating to obtain the pixel number M of each bin for normal display
1Memory for recording
Is the bin shading rate.
5. Setting a surface element shielding judgment threshold value Q, wherein the value range of Q is (0,1), and if Q isMIf the surface element is larger than Q, judging that the surface element is not blocked; otherwise, the image is judged to be blocked.
6. And 5, judging all surface elements in the step 5, and deleting all blocked surface elements, namely finishing the surface element blocking judgment in the sound wave irradiation process.
The invention is described in more detail below by way of example.
In the first step, referring to fig. 1, the lengths of the random undulating interface in the x direction and the y direction are both 6m, and the side length of the surface element is 0.1 m.
Secondly, referring to fig. 2, the azimuth angle θ of the incident direction of the sound wave is set to 0 degree, and the pitch angle is set
Thirdly, with reference to fig. 3, the random undulating interface 1 is projected to the observation plane 2 according to the incident sound wave direction, and the side lengths of the observation plane 2 are respectively Lx4.24m and Ly=6m。
The fourth step, according to the formula Npix≥2LmaxSetting the pixel resolution N of an observation planepixWherein L ismax=LyN is set in this embodiment as 6mpix=512。
Fifthly, discretizing each surface element by using a Z-buffer algorithm and taking pixels as units, and recording the number M of pixels displayed without shielding on each surface element
0And calculating to obtain the pixel number M of each bin for normal display
1Memory for recording
For bin occlusion rate, preserving occlusion of all binsAnd (4) obtaining a rate result.
The sixth step is to set a bin blocking judgment threshold Q, where the value range of Q is (0,1), and Q is set to 0.5 in this embodiment.
And seventhly, comparing the shielding rate of all the surface elements stored in the fifth step with a shielding judgment threshold Q with the graph shown in FIG. 4, and deleting the surface elements with the shielding rate smaller than the threshold Q to finish the judgment of the shielding of the surface elements.