A radar echo image processing method and device
By constructing radar bearing arrays and memory frames, the radar imaging process is optimized, solving the problems of slight lag in radar imaging and computational complexity, achieving faster image processing and reducing hardware costs.
Patent Information
- Application Number
- CN202110625676.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-06-04
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-06-04
AI Technical Summary
When existing radar imaging technology processes radar echo images, the calculations are complex and time-consuming, causing the imaging to lag slightly behind the actual position, increasing hardware costs and computer host configuration requirements.
By constructing a radar bearing array, establishing a memory frame, and obtaining the target's pixel position information on the memory frame based on the array information, the image is rotated, optimizing the radar imaging process and reducing computational complexity and hardware requirements.
It improves computer computing speed, reduces hardware costs, solves the problem of radar imaging slightly lagging behind the actual position, and achieves faster image processing.
Smart Images

Figure CN113284180B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of radar imaging technology, and in particular to a method and device for processing radar echo images. Background Art
[0002] The offshore target surveillance radar collects scan lines in every direction with the radar as the center, and the collection is generally in the form of polar coordinates. Computer drawing is generally in the rectangular coordinate system, so the polar coordinates need to be converted into rectangular coordinates. When displayed in the bow-up mode, the entire radar screen needs to be rotated according to the bow direction of the ship.
[0003] The prior art generally uses trigonometric functions to convert the polar coordinates of each point into rectangular coordinates. For each point, trigonometric conversion is performed, and at least two trigonometric conversions are required in the vertical and horizontal directions. Computers generally use the Taylor formula to calculate trigonometric function values, and the angles must be converted into radians before obtaining the trigonometric function values. It can be seen that the calculation process of the Taylor formula is quite complicated, including exponentiation, factorial operations, and multiple addition and subtraction operations. Assuming that the pixel radius of a computer image we display is 400, it takes at least 500,000 calculations to form an image. Summary of the invention
[0004] The technical problem to be solved by the present invention is to provide a radar echo image processing method and device, which solves the problem that the radar imaging lags slightly behind the actual position when processing the radar echo image, increases the computer operation speed, reduces the hardware cost, and reduces the requirements for the computer host configuration.
[0005] In order to solve the above technical problems, the technical solution of the present invention is as follows:
[0006] The present invention provides a method for processing a radar echo image, the method comprising:
[0007] Construct array information according to the radar azimuth array;
[0008] Create an empty memory map;
[0009] According to the array information, obtaining the first pixel position information of the target on the memory image sheet;
[0010] The first image corresponding to the first pixel position information is rotated to obtain a second image corresponding to the second pixel position information on the memory image sheet.
[0011] Optionally, construct array information based on the radar azimuth array, including:
[0012] Get the total number of directions of the radar in one rotation;
[0013] According to the total number of azimuths of one revolution of the radar, an azimuth array satisfying the display requirements of the memory map is constructed;
[0014] According to the azimuth array, the radar azimuth points within the target range are sorted to obtain array information.
[0015] Optionally, the orientation array that meets the display requirements of the memory map includes: a first orientation array and a second orientation array;
[0016] The first azimuth array stores a first pixel distance from the radar azimuth point to the radar center point;
[0017] The low-order byte of the second azimuth array stores the second pixel distance from the radar azimuth point to the radar center point in the x direction, and the high-order byte of the second azimuth array stores the third pixel distance from the radar azimuth point to the radar center point in the y direction.
[0018] Optionally, according to the azimuth array, the radar azimuth points within the target range are sorted to obtain array information, including:
[0019] Sorting the second pixel distances and the third pixel distances in the second orientation array in an orientation order to obtain an orientation sorting result;
[0020] According to the azimuth sorting result, the radar azimuth points on the same azimuth are sorted according to the first pixel distances in the first azimuth array to obtain array information.
[0021] Optionally, obtaining first pixel position information of the target on the memory map according to the target array information includes:
[0022] Get the current azimuth angle of the target;
[0023] When the radar is in a fixed state, the quadrant where the target is located is obtained according to the current azimuth angle of the target;
[0024] Acquire a pixel offset of the scanning position information of the target; the pixel offset includes a horizontal pixel offset and a vertical pixel offset;
[0025] According to the array information, the quadrant where the target is located, and the pixel offset, the radar starting center point position and the first pixel position information of the target on the memory map are obtained.
[0026] Optionally, obtaining the quadrant where the target is located according to the current azimuth angle of the target includes:
[0027] By formula Obtain the current azimuth number m of the target; where m is the current azimuth number of the target, α is the current azimuth angle of the target, β is the total number of azimuths for one rotation of the radar, and k is the number of azimuths that meet the display requirements of the memory map sheet.
[0028] According to the formula ρ = m & (k × 3 ÷ 4), obtain the ρ value; where the ρ value is the judgment value of the quadrant where the target is located.
[0029] Judge the quadrant where the target is located according to the ρ value. If the ρ value is 0, it is the 0th quadrant, and the quadrant range of the 0th quadrant is When the ρ value is k × 1 ÷ 4, it is the 1st quadrant, and the quadrant range of the 1st quadrant is When the ρ value is k × 2 ÷ 4, it is the 2nd quadrant, and the quadrant range of the 2nd quadrant is When the ρ value is k × 3 ÷ 4, it is the 3rd quadrant, and the quadrant range of the 3rd quadrant is k is the number of azimuths that meet the display requirements of the memory map sheet.
[0030] Optionally, according to the array information, the quadrant where the target is located, and the pixel offset, obtain the radar starting center point position and the first pixel position information of the target on the memory map sheet, including:
[0031] Obtain the radar starting center point position curOS through the formula curOS = ((yOS - yOffset) << U) + (xOS - xOffset); where << is the left shift operator, curOS is the radar starting center point position, yOS is the y value of the radar starting center point position, xOS is the x value of the radar starting center point position, yOffset is the vertical pixel offset, xOffset is the horizontal pixel offset, and U is the number of bits of the lower byte in the second azimuth array.
[0032] Calculate the first pixel position information of the target on the memory map sheet through the formula (curOS + (mask ^ tpRXY->m_lXY)); where curOS is the radar starting center point position, mask is the mask, and m_lXY is the azimuth information of the target's relative position to the radar on the memory map sheet obtained by looking up the array information.
[0033] Optionally, rotate the first image corresponding to the first pixel position information to obtain the second image of the second pixel position information on the memory map sheet, including:
[0034] Obtain the first coordinate point information of the first image.
[0035] According to the first coordinate point information, obtain the horizontal change rate and the vertical change rate.
[0036] A second image of second pixel position information on the memory image sheet is obtained according to the lateral change rate, the longitudinal change rate and the first coordinate point information of the first image.
[0037] The present invention provides a radar echo image processing device, the device comprising:
[0038] The acquisition module is used to construct array information according to the radar azimuth array and to create an empty memory map;
[0039] The processing module is used to obtain the first pixel position information of the target on the memory map according to the array information; rotate the first image corresponding to the first pixel position information to obtain the second image of the second pixel position information on the memory map.
[0040] The present invention provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the above method.
[0041] The above solution of the present invention includes at least the following beneficial effects:
[0042] The above scheme of the present invention constructs array information according to the radar azimuth array; establishes an empty memory map; obtains first pixel position information of the target on the memory map according to the array information; rotates the first image corresponding to the first pixel position information to obtain a second image of the second pixel position information on the memory map; solves the problem that the radar imaging lags slightly behind the actual position when processing the radar echo image, the computer operation speed is faster, the hardware cost is reduced, and the requirements for the computer host configuration are reduced. BRIEF DESCRIPTION OF THE DRAWINGS
[0043] Figure 1 is a schematic flow chart of a radar echo image processing method according to an embodiment of the present invention;
[0044] Figure 2 is a schematic diagram of image rotation in specific embodiment 5 of the present invention;
[0045] Figure 3 It is a schematic diagram of the structure of a radar echo image processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0046] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.
[0047] like Figure 1 As shown, an embodiment of the present invention provides a method for processing a radar echo image, the method comprising:
[0048] Step 11, constructing array information according to the radar azimuth array;
[0049] Step 12, create an empty memory map;
[0050] Step 13, obtaining the first pixel position information of the target on the memory image sheet according to the array information;
[0051] Step 14: Rotate the first image corresponding to the first pixel position information to obtain a second image corresponding to the second pixel position information on the memory image sheet.
[0052] In this embodiment, by constructing array information and searching the array information, the target is drawn on an empty memory map, and the first pixel position information of the target on the memory map is obtained. Finally, the image is rotated to obtain the second image of the second pixel position information on the memory map. This embodiment solves the problem that the radar imaging lags slightly behind the actual position when processing the radar echo image, and the computer operation speed is faster, the hardware cost is reduced, and the requirements for the computer host configuration are reduced.
[0053] Specifically, in an optional embodiment of the present invention, step 11 includes:
[0054] Step 111, obtaining the total number of azimuths of the radar during one revolution;
[0055] Step 112, constructing an azimuth array that meets the display requirements of the memory map according to the total number of azimuths of one revolution of the radar;
[0056] Step 113, sorting the radar azimuth points within the target range according to the azimuth array to obtain array information.
[0057] In this embodiment, the total number of azimuths of a radar rotation is first obtained, and an azimuth array that meets the display requirements of the memory map is constructed. According to the azimuth array that meets the display requirements of the memory map, all radar azimuth points within the displayable range of the memory map are sorted, and finally array information is obtained;
[0058] In a specific embodiment 1, it is preferably assumed that the number of azimuths that meet the display requirements of the memory map is 4096. When the number of azimuths that the radar actually meets the display requirements of the memory map is not 4096, the total number of azimuths of the actual radar rotation is an uncertain value β, and the current azimuth angle of the target is α. The actual number of azimuths of the radar is converted to the number of azimuths that meet the display requirements of the memory map is 4096. The formula α / β*4096 can be used for conversion. At the same time, it is also preferably assumed that the maximum resolution of the radar echo image to be processed is 2048*2048. If the actual maximum resolution of the radar echo image to be processed is less than the preset maximum resolution, it can be directly obtained from the corresponding azimuth array.
[0059] The orientation array that meets the display requirements of the memory map in step 112 includes: a first orientation array and a second orientation array;
[0060] The first azimuth array stores a first pixel distance from the radar azimuth point to the radar center point;
[0061] The low-order byte of the second azimuth array stores the second pixel distance from the radar azimuth point to the radar center point in the x direction, and the high-order byte of the second azimuth array stores the third pixel distance from the radar azimuth point to the radar center point in the y direction.
[0062] In this embodiment, an azimuth array that meets the display requirements of the memory map is constructed. Preferably, the total number of azimuths of the radar in one rotation can be divided into four quadrants, including: quadrant 0, quadrant 1, quadrant 2, and quadrant 3; the constructed azimuth array that meets the display requirements of the memory map specifically includes a first azimuth array and a second azimuth array, wherein the first azimuth array stores the pixel distance from the azimuth point of the radar to the center point of the radar, that is, the straight-line pixel distance from the center point of the radar to the azimuth point, and the second azimuth array stores the pixel distance from the center point of the radar to the straight-line pixel distance from the azimuth point to the center point of the radar, and the second azimuth array stores the pixel distance from the center point of the radar to the straight-line pixel distance from the center point of the radar to the azimuth point. The array includes 0 to 2U bits, wherein 0 to (U-1) bits, a total of U bits, store the pixel distance from the azimuth point of the radar to the center point of the radar in the x direction, that is, the array subscript in the x direction to the center point of the radar; U to 2U bits, a total of U bits, store the pixel distance from the azimuth point of the radar to the center point of the radar in the y direction, that is, the array subscript in the y direction to the center point of the radar; through the first azimuth array and the second azimuth array, the pixel information of a quadrant in the rectangular coordinate system can be constructed, and the pixel information of other quadrants can also be obtained in the above manner.
[0063] In a specific embodiment 2, an orientation array structure of the 0th quadrant with an orientation number ranging from 0 to 1024 is constructed as follows:
[0064] typedef struct tRXY
[0065] {unsigned m_lR;
[0066] unsigned m_lXY;
[0067] }tRXY;
[0068] Among them, m_1R stores the pixel distance from the radar's azimuth point to the radar's center point, and m_1XY includes 0 to 22 bits, of which 0 to 10 bits store the pixel distance from the radar's azimuth point to the radar's center point in the x direction, and 11 to 22 bits store the pixel distance from the radar's azimuth point to the radar's center point in the y direction.
[0069] Step 113 includes:
[0070] Step 1131, sorting the second pixel distances and the third pixel distances in the second orientation array in an orientation order to obtain an orientation sorting result;
[0071] Step 1132: According to the azimuth sorting result, the radar azimuth points on the same azimuth are sorted according to the first pixel distance in the first azimuth array to obtain array information.
[0072] In this embodiment, the azimuth order of the second pixel distance and the third pixel distance in the second azimuth array is sorted to obtain an azimuth sorting result, wherein the second pixel distance is U bits in the second azimuth array from 0 to 2U, and the pixel distance in the x direction of the stored radar azimuth point to the radar center point is U bits; the third pixel distance is U bits in the second azimuth array from U to 2U, and the pixel distance in the y direction of the stored radar azimuth point to the radar center point is U bits; according to the azimuth sorting result, the radar azimuth points on the same azimuth are sorted according to the distance size of the first pixel distance to obtain array information; wherein the first pixel distance is the pixel distance from the azimuth point of the radar stored in the first azimuth array to the radar center point; by first sorting the pixel distance in the x direction and the pixel distance in the y direction of the azimuth point, and then sorting the azimuth points on the same azimuth according to the size of the first pixel distance, direct correspondence to a certain azimuth can be achieved; the array information obtained after sorting can preferably be stored as a file for subsequent use when reading and calling the information in the array information.
[0073] In a specific embodiment 3, the pseudo code of the radar is:
[0074] for(int y=0;y<1024;y++)
[0075] for(int x=0;x<1024;x++)
[0076] {unsigned r=(unsigned)sqrtf((float)y*y+x*x);
[0077] m_RXYLup[y*1024+x].m_lR=r;
[0078] m_RXYLup[y*1024+x].m_lXY=(y<<11)+x;}
[0079] Among them, m_RXYLup is sorted by direction according to the x-direction information and y-direction information of m_lXY shown in Example 2, the number of which is 1024, and the starting position of the direction is stored in the m_RXYStart
[1024] array of size 1024; then, at the same direction, it is sorted according to the pixel distance size of m_lR shown in Example 2; and image information with a resolution of 1024*1024 on the 0th quadrant is constructed.
[0080] In an optional embodiment of the present invention, step 13 includes:
[0081] Step 131, obtaining the current azimuth angle of the target;
[0082] Step 132, when the radar position is in a fixed state, obtaining the quadrant where the target is located according to the current azimuth angle of the target;
[0083] Step 133, obtaining a pixel offset of the scanning position information of the target; the pixel offset includes a horizontal pixel offset and a vertical pixel offset;
[0084] Step 134, obtaining the radar starting center point position and the first pixel position information of the target on the memory map according to the array information, the quadrant where the target is located, and the pixel offset.
[0085] In this embodiment, the array information that needs to be calculated and constructed is required for drawing an empty memory map. It should be noted that the empty memory map is a map to be drawn constructed in the memory. For drawing an image, it is only necessary to draw image information of the same size as the screen display on the empty memory map. Preferably, the center point position of the screen display corresponds to the center point position of the empty memory map. When the screen display is drawn to the memory map, the position of the screen display size is taken from the drawn memory map and copied to the display area.
[0086] Specifically, in an optional embodiment of the present invention, step 132 includes:
[0087] Step 1321, by formula Get the current azimuth of the target m; where m is the current azimuth of the target, α is the current azimuth angle of the target, β is the total number of azimuths of one rotation of the radar, and k is the azimuth that meets the display requirements of the memory map;
[0088] Step 1322: Obtain the ρ value according to the formula ρ = m & (k × 3 ÷ 4); where the ρ value is the judgment value of the quadrant where the target is located.
[0089] Step 1323: Judge the quadrant where the target is located according to the ρ value. If the ρ value is 0, it is the 0th quadrant, and the quadrant range of the 0th quadrant is When the ρ value is k × 1 ÷ 4, it is the 1st quadrant, and the quadrant range of the 1st quadrant is When the ρ value is k × 2 ÷ 4, it is the 2nd quadrant, and the quadrant range of the 2nd quadrant is When the ρ value is k × 3 ÷ 4, it is the 3rd quadrant, and the quadrant range of the 3rd quadrant is k is the number of azimuths that meet the display requirements of the memory map.
[0090] In this embodiment, the rotation direction of the radar scan line is preferably clockwise. By the formula Map the radar scan line to obtain the current azimuth number m of the target, where m is the current azimuth number of the target; it should be noted that preferably there are 4 quadrants. Calculate the judgment value ρ of the quadrant where the target is located through the formula ρ = m & (k × 3 ÷ 4), and then obtain the range of the 4 quadrants according to the number of azimuths k that meet the display requirements of the memory map. Among them, the 0th quadrant is The 1st quadrant is The 2nd quadrant is The 3rd quadrant is k is the number of azimuths that meet the display requirements of the memory map, and the value of k is preferably 4096; finally, obtain the quadrant where the target is located according to the quadrant range where the ρ value is located.
[0091] In an alternative embodiment of the present invention, step 134 includes:
[0092] Step 1341: Obtain the radar starting center point position curOS through the formula curOS = ((yOS - yOffset) << U) + (xOS - xOffset); where << is the left shift operator, curOS is the radar starting center point position, yOS is the y value of the radar starting center point position, xOS is the x value of the radar starting center point position, yOffset is the vertical pixel offset, xOffset is the horizontal pixel offset, and U is the number of bits of the lower byte in the second azimuth array.
[0093] Step 1342: Calculate the first pixel position information of the target on the memory map sheet through the formula (curOS + (mask ^ tpRXY->m_lXY)); where, ^ is the exclusive OR operator, -> is the structure member operator, curOS is the radar starting center point position, mask is the mask, m_lXY is the second azimuth array, and tpRXY is the azimuth information of the target relative to the radar position on the memory map sheet obtained by looking up the array information.
[0094] In this embodiment, the horizontal pixel offset is xOffset, and the vertical pixel offset is yOffset. The radar starting center point position curOS is obtained through the formula curOS = ((yOS - yOffset) << U) + (xOS - xOffset); the first pixel position information of the target is calculated through the formula (curOS + (mask ^ tpRXY->m_lXY)), where mask is the mask, and the mask is determined by the quadrant where the radar scan line is located; tpRXY is the azimuth information of the target relative to the radar position on the memory map sheet, which can be obtained by looking up the constructed array information.
[0095] It should be noted that when the resolution of the memory map sheet is 2048 * 2048, the value of U is preferably 11.
[0096] Calculate the radar starting center position curOS, and record the longitude and latitude of the radar starting center position curOS. It should be noted that when the radar is in a displacement state, the radar starting center position also moves correspondingly in the memory map sheet, and the horizontal and vertical pixel change amounts can be calculated according to the change amount of its longitude and latitude; when the radar is in a fixed state, its radar center point position is fixed, and the quadrant where the target is located can be obtained and processed according to the quadrant.
[0097] In a specific Embodiment 4, an image with a resolution of 2048 * 2048 is established in the memory. The radar starting center point position is xOS = 1024, yOS = 1024. There are 4 quadrants. With the positive y-axis direction as due north and the positive y-axis direction as the 0-degree position, the radar always rotates clockwise. From the formula Map the radar scan line, the azimuth range is 0 to 4096, of which 0 to 1024 is the 0th quadrant, 1025 to 2048 is the 1st quadrant, 2049 to 3072 is the 2nd quadrant, and 3073 to 4096 is the 3rd quadrant; let the horizontal pixel offset be xOffset and the vertical pixel offset be yOffset, then the current position of the target is curOS = ((yOS-yOffset) << 11) + (xOS-xOffset), calculated by the formula (curOS + (mask^tpRXY->m_lXY)), where curOS is the starting center point of the radar; mask is determined by the quadrant where the radar scan line is located;
[0098] The following is an explanation of the calculation of mask:
[0099] #define RXYBITS 11
[0100] #define RXYXMASK((1< <RXYBITS)-1)
[0101] #define RXYYMASK(RXYXMASK< <RXYBITS)
[0102] #define RXYXYMASK(RXYXMASK|RXYYMASK)
[0103] The mask is determined by the quadrant position of the bearing of the radar scan line, where the starting position of the radar scan line is preferably due north, and the rotation direction is preferably clockwise; the 0th quadrant mask = RXYYMASK, the y XOR bits are all 1, then the position of y after XOR is inverted, which is equivalent to the complement of 1024 and the current position (1024-y), so compensation is required in the y direction. When y is moved to 0, curOS = curOS-(RXYXYMASK+1), the x XOR bits are all 0, which is equivalent to adding it, and no compensation is required; the 1st quadrant mask = 0, the values of x and y remain unchanged after XOR, so the position of the target does not need to be compensated; in the second quadrant, mask = RXYXMASK, the XOR bit of y is 0, and the XOR bit of x is 1. The position of the target needs to be compensated in the x direction, and the target is moved to position 0 in the x direction, so curOS = curOS-(RXYXMASK+1); in the third quadrant, mask = RXYXYMASK, the x and y positions of the target need to be moved to position 0, curOS = curOS-((RXYXYMASK+1)+(RXYXMASK+1)), and the mask can be obtained.
[0104] The calculation of tpRXY is explained below:
[0105] The radar scanning line bearing is bearing, according to the formula Get the position information of the radar on the memory map, and find the m_RXYStart position corresponding to the current scanning line of the radar. The 0th quadrant is m_RXYStart[bearing], the 1st quadrant is m_RXYStart[2048-bearing], the 2nd quadrant is m_RXYStart[bearing-2048], and the 3rd quadrant is m_RXYStart[4096-bearing]. Find the starting position of the azimuth line, and then calculate the pixel position pixR from the radar scanning point to the center point of the radar to get tpRXY.
[0106] In an optional embodiment of the present invention, step 14 includes:
[0107] Step 141, obtaining first coordinate point information of the first image;
[0108] Step 142, obtaining a lateral change rate and a longitudinal change rate according to the first coordinate point information;
[0109] Step 143, obtaining a second image of second pixel position information on the memory image sheet according to the lateral change rate, the longitudinal change rate and the first coordinate point information of the first image.
[0110] In this embodiment, the first coordinate point information of the first image is obtained, and the lateral change rate and the longitudinal change rate are obtained, then the first coordinate on the first image is mapped to the memory map, and the mapping of all coordinates on the first image to the memory map is completed in sequence to obtain the second image of the second pixel position information.
[0111] like Figure 2 As shown, in a specific embodiment 5, the image rotation angle is Then the positions of the four vertices of the second image after the image rotation are A(fxA,fyA), B(fxB,fyB), C(fxC,fyC), D(fxD,fyD), and the positions of the four points of the first image are a(fxa,fya), b(fxb,fyb), c(fxc,fyc), d(fxd,fyd). (Unit: degree), where r is the pixel length of AO, O is the starting center position of the radar (fxO, fyO), then we can get:
[0112] fxA=fxO-r*cosβ, fyA=fyO-r*sinβ;
[0113] fxB=fxO+r*sinβ, fyB=fyO-r*cosβ;
[0114] fxC=fxO-r*sinβ, fyC=fyO+r*cosβ;
[0115] fxD=fxO+r*cosβ, fyD=fyO+r*sinβ;
[0116] Its lateral rate of change is:
[0117] fxRow = (fxB - fxA) / 2048;
[0118] fyRow = (fyB - fyA) / 2048;
[0119] The longitudinal rate of change is:
[0120] fxLine = (fxD - fxA) / 2048;
[0121] fyLine = (fyD - fyD) / 2048;
[0122] The first coordinate of the first image displayed and mapped to the memory image sheet is (fx1, fy1), and its corresponding screen coordinate (j, i) is the screen coordinate of the i-th row and j-th column, jMin is the minimum horizontal value of the current row, then the first point in the vertical direction is fx1=fxA+fxLine*i+fxRow*jMin, fy1=fyA+fyLine*i+fyRow*jMin, and the previous point of the first point is (fxPre=fx1, fyPre=fy1); the calculation formula for the first point in the horizontal direction (fxCur, fyCur) is fxCur=fxPre+fxRow, fyCur=fyPre+fyRow. In this way, all coordinates on the first image are mapped to the memory image sheet in sequence, and the second image of the second pixel position information is obtained.
[0123] The solution of the embodiment of the present invention constructs array information according to the radar azimuth array; establishes an empty memory map; obtains first pixel position information of the target on the memory map according to the array information; rotates the first image corresponding to the first pixel position information to obtain a second image of the second pixel position information on the memory map; solves the problem that the radar imaging lags slightly behind the actual position when processing the radar echo image, the computer's operating speed is faster, the hardware cost is reduced, and the requirements for the computer host configuration are reduced.
[0124] The present invention also provides a radar echo image processing device 30, the device comprising:
[0125] The acquisition module 31 is used to construct array information according to the radar azimuth array and to establish an empty memory map;
[0126] The processing module 32 is used to obtain the first pixel position information of the target on the memory map by searching the array information according to the current azimuth angle of the target; rotate the first image corresponding to the first pixel position information to obtain the second image of the second pixel position information on the memory map.
[0127] Optionally, construct array information based on the radar azimuth array, including:
[0128] Get the total number of directions of the radar in one rotation;
[0129] According to the total number of azimuths of one revolution of the radar, an azimuth array satisfying the display requirements of the memory map is constructed;
[0130] According to the azimuth array, the radar azimuth points within the target range are sorted to obtain array information.
[0131] Optionally, the orientation array that meets the display requirements of the memory map includes: a first orientation array and a second orientation array;
[0132] The first azimuth array stores a first pixel distance from the radar azimuth point to the radar center point;
[0133] The low-order byte of the second azimuth array stores the second pixel distance from the radar azimuth point to the radar center point in the x direction, and the high-order byte of the second azimuth array stores the third pixel distance from the radar azimuth point to the radar center point in the y direction.
[0134] Optionally, according to the azimuth array, the radar azimuth points within the target range are sorted to obtain array information, including:
[0135] Sorting the second pixel distances and the third pixel distances in the second orientation array in an orientation order to obtain an orientation sorting result;
[0136] According to the azimuth sorting result, the radar azimuth points on the same azimuth are sorted according to the first pixel distances in the first azimuth array to obtain array information.
[0137] Optionally, obtaining first pixel position information of the target on the memory map according to the array information includes:
[0138] Get the current azimuth angle of the target;
[0139] When the radar is in a fixed state, the quadrant where the target is located is obtained according to the current azimuth angle of the target;
[0140] Acquire a pixel offset of the scanning position information of the target; the pixel offset includes a horizontal pixel offset and a vertical pixel offset;
[0141] Based on the array information, the quadrant where the target is located, and the pixel offset, obtain the starting center point position of the radar and the first pixel position information of the target on the memory map.
[0142] Optionally, obtaining the quadrant where the target is located according to the current azimuth angle of the target and the starting center point position of the radar includes:
[0143] Through the formula Obtain the current azimuth number m of the target; where m is the current azimuth number of the target, α is the current azimuth angle of the target, β is the total number of azimuths for one full rotation of the radar, and k is the number of azimuths that meet the display requirements of the memory map.
[0144] According to the formula ρ = m & (k × 3 ÷ 4), obtain the ρ value; where the ρ value is the judgment value for the quadrant where the target is located.
[0145] Judge the quadrant where the target is located according to the ρ value. If the ρ value is 0, it is the 0th quadrant, and the quadrant range of the 0th quadrant is When the ρ value is k × 1 ÷ 4, it is the 1st quadrant, and the quadrant range of the 1st quadrant is When the ρ value is k × 2 ÷ 4, it is the 2nd quadrant, and the quadrant range of the 2nd quadrant is When the ρ value is k × 3 ÷ 4, it is the 3rd quadrant, and the quadrant range of the 3rd quadrant is k is the number of azimuths that meet the display requirements of the memory map.
[0146] Optionally, obtaining the starting center point position of the radar and the first pixel position information of the target on the memory map according to the array information, the quadrant where the target is located, and the pixel offset includes:
[0147] Through the formula curOS = ((yOS - yOffset) << U) + (xOS - xOffset), obtain the position information curOS of the radar on the memory map; where curOS is the position information of the radar on the memory map, yOS is the y value of the starting center point position of the radar, xOS is the x value of the starting center point position of the radar, yOffset is the vertical pixel offset, xOffset is the horizontal pixel offset, and U is the number of bits of the lower byte in the second azimuth array.
[0148] The first pixel position information of the target on the memory map is calculated by the formula (curOS+(mask^tpRXY->m_lXY)); wherein ^ is an XOR operator, -> is a structure member operator, curOS is the position information of the radar on the memory map, mask is a mask, m_lXY is a second azimuth array, and tpRXY is the azimuth information of the target relative to the radar position on the memory map obtained by searching the array information.
[0149] Optionally, rotating the first image corresponding to the first pixel position information to obtain a second image of the second pixel position information on the memory image sheet includes:
[0150] Acquire first coordinate point information of the first image;
[0151] According to the first coordinate point information, a lateral change rate and a longitudinal change rate are obtained;
[0152] A second image of second pixel position information on the memory image sheet is obtained according to the lateral change rate, the longitudinal change rate and the first coordinate point information of the first image.
[0153] It should be noted that the device is a device corresponding to the above method, and all implementation methods in the above method embodiments are applicable to the embodiments of the device and can achieve the same technical effects.
[0154] An embodiment of the present invention further provides a computer-readable storage medium storing instructions, which, when executed on a computer, enable the computer to execute the method described above.
[0155] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.
[0156] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.
[0157] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0158] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0159] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
[0160] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.
[0161] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.
[0162] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.
[0163] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing a radar echo image, characterized in that: The method comprises: Construct array information according to the radar azimuth array; Create an empty memory map; According to the array information, obtaining the first pixel position information of the target on the memory image sheet; Rotating the first image corresponding to the first pixel position information to obtain a second image corresponding to the second pixel position information on the memory image sheet; Among them, according to the radar azimuth array, array information is constructed, including: Get the total number of directions of the radar in one rotation; According to the total number of azimuths of one revolution of the radar, an azimuth array that meets the display requirements of the memory map is constructed; the azimuth array that meets the display requirements of the memory map includes: a first azimuth array and a second azimuth array; the first azimuth array stores a first pixel distance from the radar azimuth point to the radar center point; the low-order byte of the second azimuth array stores a second pixel distance from the radar azimuth point to the radar center point in the x direction, and the high-order byte of the second azimuth array stores a third pixel distance from the radar azimuth point to the radar center point in the y direction; According to the azimuth array, the radar azimuth points within the target range are sorted to obtain array information; Wherein, obtaining the first pixel position information of the target on the memory map according to the array information includes: Get the current azimuth angle of the target; When the radar is in a fixed state, the quadrant where the target is located is obtained according to the current azimuth angle of the target; Acquire a pixel offset of the scanning position information of the target; the pixel offset includes a horizontal pixel offset and a vertical pixel offset; According to the array information, the quadrant where the target is located, and the pixel offset, the radar starting center point position and the first pixel position information of the target on the memory map are obtained; The method of rotating the first image corresponding to the first pixel position information to obtain the second image of the second pixel position information on the memory image sheet includes: Acquire first coordinate point information of the first image; According to the first coordinate point information, a lateral change rate and a longitudinal change rate are obtained; A second image of second pixel position information on the memory image sheet is obtained according to the lateral change rate, the longitudinal change rate and the first coordinate point information of the first image.
2. The radar echo image processing method according to claim 1, characterized in that: According to the azimuth array, the radar azimuth points within the target range are sorted to obtain array information, including: Sorting the second pixel distances and the third pixel distances in the second orientation array in an orientation order to obtain an orientation sorting result; According to the azimuth sorting result, the radar azimuth points on the same azimuth are sorted according to the first pixel distances in the first azimuth array to obtain array information.
3. The radar echo image processing method according to claim 1, characterized in that: According to the current azimuth angle of the target, the quadrant where the target is located is obtained, including: By formula Get the current azimuth of the target m; where m is the current azimuth of the target, α is the current azimuth angle of the target, β is the total number of azimuths of one rotation of the radar, and k is the azimuth that meets the display requirements of the memory map; According to the formula ρ=m&(k×3÷4), the ρ value is obtained; wherein the ρ value is the judgment value of the quadrant where the target is located; The quadrant where the target is located is determined by the ρ value. If the ρ value is 0, it is the 0th quadrant. The quadrant range of the 0th quadrant is The ρ value is k×1÷4, which is the first quadrant. The quadrant range of the first quadrant is The ρ value is k×2÷4, which is the second quadrant. The quadrant range of the second quadrant is The ρ value is k×3÷4, which is the third quadrant. The quadrant range of the third quadrant is k is the number of directions required to satisfy the display requirements of the memory map.
4. The radar echo image processing method according to claim 1, characterized in that: According to the array information, the quadrant where the target is located, and the pixel offset, the radar start center point position and the first pixel position information of the target on the memory map are obtained, including: The starting center point position curOS of the radar is obtained through the formula curOS = ((yOS - yOffset) << U) + (xOS - xOffset), where << is the left shift operator, curOS is the starting center point position of the radar, yOS is the y value of the starting center point position of the radar, xOS is the x value of the starting center point position of the radar, yOffset is the vertical pixel offset, xOffset is the horizontal pixel offset, and U is the number of bits of the lower byte in the second azimuth array. The first pixel position information of the target on the memory map is calculated through the formula (curOS + (mask ^ tpRXY->m_lXY)), where ^ is the exclusive OR operator, -> is the structure member operator, curOS is the starting center point position of the radar, mask is the mask, m_lXY is the second azimuth array, and tpRXY is the azimuth information of the target relative to the radar position on the memory map obtained by looking up the array information.
5. A radar echo image processing device, characterized in that: The device includes: An acquisition module, configured to construct array information according to the radar azimuth array and establish an empty memory map. A processing module, configured to obtain the first pixel position information of the target on the memory map according to the array information, rotate the first image corresponding to the first pixel position information to obtain a second image with the second pixel position information on the memory map. Among them, constructing array information according to the radar azimuth array includes: Obtaining the total number of azimuths for one rotation of the radar. Constructing an azimuth array that meets the display requirements of the memory map according to the total number of azimuths for one rotation of the radar. The azimuth array that meets the display requirements of the memory map includes a first azimuth array and a second azimuth array. The first azimuth array stores the first pixel distance from the radar azimuth point to the radar center point. The lower byte of the second azimuth array stores the second pixel distance from the radar azimuth point to the x direction of the radar center point, and the upper byte of the second azimuth array stores the third pixel distance from the radar azimuth point to the y direction of the radar center point. Sorting the radar azimuth points within the target range according to the azimuth array to obtain array information. Among them, obtaining the first pixel position information of the target on the memory map according to the array information includes: Obtaining the current azimuth angle of the target. When the radar is in a fixed state, obtaining the quadrant where the target is located according to the current azimuth angle of the target. Obtaining the pixel offset of the scanning position information of the target. The pixel offset includes a horizontal pixel offset and a vertical offset. Obtaining the starting center point position of the radar and the first pixel position information of the target on the memory map according to the array information, the quadrant where the target is located, and the pixel offset. Among them, rotating the first image corresponding to the first pixel position information to obtain a second image with the second pixel position information on the memory map includes: Obtaining the first coordinate point information of the first image. Obtaining the horizontal change rate and the vertical change rate according to the first coordinate point information. A second image of second pixel position information on the memory image sheet is obtained according to the lateral change rate, the longitudinal change rate and the first coordinate point information of the first image.
6. A computer-readable storage medium, characterized in that: Instructions are stored, and when the instructions are executed on a computer, the computer is caused to execute the method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Method for extending azimuth scanning data for generating radar PPI image and circuit thereof
CN101303408A
Foreground object detection method based on neighborhood features in radar near-ground background noise
CN108508425A
Millimeter wave radar RMA imaging method based on CUDA
CN109307865A
Radar echo image processing method and system
CN112634275A
Method and apparatus for sensing and displaying targets within a preset zone
US4777489A
