Method and system for generating television guidance image of flight simulation system

By extracting and compressing the brightness component Y of the TV-guided image in the flight simulator, the problem of delay in the TV-guided image transmission in the flight simulator is solved, and efficient image transmission and display effects are achieved.

CN119854511APending Publication Date: 2025-04-18中国人民解放军93199部队轰运飞行人员改装系
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510015565.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-01-06
Publication Date
2025-04-18

AI Technical Summary

Technical Problem

When transmitting TV-guided image data between sub-systems of the flight simulator, due to the huge amount of data, the transmission delay is severe and the display effect is affected. The system needs to sacrifice the image update frequency to ensure the smoothness of data transmission, resulting in slower picture update speed.

Method used

By acquiring the landscape image and performing component conversion, the brightness component Y is extracted, the compression process is performed, the compressed image data is generated, and the decompression process is performed on the receiving device to generate a television guided image.

Benefits of technology

It significantly reduces the amount of data transmitted and delay, improves the efficiency of image transmission and the real-time system, ensures that the TV-guided image display effect of the flight simulation system is comparable to that of traditional methods, and at the same time improves the efficiency of the system.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119854511A_ABST
    Figure CN119854511A_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for generating a flight simulation system television guidance image, and relates to the field of flight simulator image processing. The problem that when television guidance image data is transmitted between subsystems of the flight simulator, due to the fact that the transmission data size is huge, transmission delay can greatly affect the display effect is solved. The method comprises the steps that a landscape image is acquired, data of each pixel point of the landscape image comprises three components of R, G and B, and the landscape image is divided; performing component conversion on the divided image to obtain a brightness component Y in the landscape image; performing compression processing on a brightness component Y in the landscape image to obtain compressed image data; and transmitting the compressed image data to a receiving device for decompression processing to obtain a television guidance image. The method is applied to the field of flight simulator design.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the field of flight simulator image processing, in particular to a method for generating a television guidance image of a flight simulation system. Background Art

[0002] At present, when simulating the TV guidance screen of missile ground attack, domestic and foreign flight simulators need to generate guidance images that are consistent with the actual attack screen effect, and display the image on the corresponding cockpit display device or instructor station. When transmitting TV guidance image data between subsystems of the flight simulator, the transmission delay caused by the huge amount of transmission data will greatly affect the display effect. The system needs to sacrifice the image update frequency to ensure the smoothness of data transmission. This will cause the update speed of the TV guidance screen to slow down, thereby reducing the real-time performance of the simulation system. For example, under normal circumstances, the image should be updated 30 frames per second or more to show a delicate and smooth picture; but due to bandwidth limitations or excessive transmission delays, it may drop to a lower frame rate, resulting in an unsmooth picture, and may even miss key actions or details, affecting the pilot's judgment. Summary of the invention

[0003] Aiming at the problem that when transmitting TV-guided image data between subsystems of a flight simulator, the transmission delay caused by the huge amount of transmitted data will greatly affect the display effect, the present invention proposes a method for generating TV-guided images of a flight simulation system, the method comprising:

[0004] Step 1, obtaining a landscape image, wherein the data of each pixel point of the landscape image includes three components of R, G, and B, and dividing the landscape image;

[0005] Step 2: Convert the divided image into components to obtain the brightness component Y in the landscape image;

[0006] Step 3: compress the brightness component Y in the landscape image to obtain compressed image data;

[0007] Step 4: Transmit the compressed image data to the receiving device for decompression processing to obtain the television guidance image.

[0008] Furthermore, a preferred manner is proposed, wherein step 1 includes dividing the landscape image into 8×8 image sub-blocks.

[0009] Furthermore, a preferred method is proposed, wherein step 2 comprises:

[0010] Y=0.299×R+0.587×G+0.114×B

[0011] Among them, R represents the red component, G represents the yellow component, and B represents the blue component.

[0012] Furthermore, a preferred method is proposed, wherein step 3 comprises:

[0013] Perform a 2D discrete cosine transform on the Y component of each 8×8 image sub-block;

[0014] Quantize the image sub-blocks after two-dimensional discrete cosine transformation;

[0015] The quantized 8×8 image sub-blocks are scanned using the Zig-Zag method to obtain a 64-bit one-dimensional array;

[0016] Run-length encoding is performed on the 64-bit one-dimensional array to complete the compression.

[0017] Furthermore, a preferred method is proposed, wherein the two-dimensional discrete cosine transform is performed on the Y component of each 8×8 image sub-block, including:

[0018]

[0019] Among them, f(x,y) is the Y component element of the 8×8 image sub-block, x,y=0, 1, 2, ... 7; F(m,n) is the element of the transformation coefficient array, m,n=0, 1, 2, ... 7.

[0020] Furthermore, a preferred method is proposed, wherein step 4 comprises:

[0021] Perform run-length decoding on the compressed image data to obtain 64 data of a one-dimensional sequence, and arrange the 64 data of the one-dimensional sequence;

[0022] After the arrangement is completed, the obtained data is subjected to dequantization processing;

[0023] After the dequantization is completed, the dequantized data needs to be inversely discrete cosine transformed;

[0024] The Y component is obtained by decompressing and calculating the data after the inverse discrete cosine transform, and the Y component is spliced ​​into sub-blocks to obtain a television-guided grayscale image.

[0025] Furthermore, a preferred method is proposed, in which after the dequantization is completed, the dequantized data needs to be subjected to an inverse discrete cosine transform, including:

[0026]

[0027] Wherein, v=0, 1, 2, ... 7, u==0, 1, 2, ... 7, and F'(u, v) is the Y component discrete cosine transform data of the 8×8 image sub-block obtained by inverse quantization.

[0028] Based on the same inventive concept, the present invention also proposes a system for generating television guidance images for a flight simulation system, the system comprising:

[0029] A landscape image acquisition unit, used to acquire a landscape image, wherein the data of each pixel point of the landscape image includes three components of R, G, and B, and divide the landscape image;

[0030] A classification conversion unit, used for performing component conversion on the divided image to obtain a brightness component Y in the landscape image;

[0031] A compression unit, used for compressing the brightness component Y in the landscape image to obtain compressed image data;

[0032] The decompression unit is used to transmit the compressed image data to the receiving device for decompression processing to obtain the television guidance image.

[0033] Based on the same inventive concept, the present invention also proposes a computer device, including a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes a method for generating a television guidance image for a flight simulation system as described in any one of the above items.

[0034] Based on the same inventive concept, the present invention also proposes a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps of a method for generating a television guidance image for a flight simulation system as described in any one of the above are executed.

[0035] The present invention is beneficial in that:

[0036] The method for generating a TV guidance image of a flight simulation system proposed by the present invention selects data of a source image to be processed and processes it by a compression method before transmitting it, and the receiving party decompresses the data after receiving it to restore and generate the corresponding TV guidance image. The demand for the transmission and display of TV guidance images by the integrated display of the armed helicopter flight simulator is solved.

[0037] The method for generating a television guidance image for a flight simulation system proposed by the present invention can generate and display the television guidance image on the receiving side by only transmitting and receiving compressed data of a partial component of a source image, which can greatly improve compression efficiency and transmission performance.

[0038] Furthermore, due to the reduction in the amount of data transmitted, the transmission delay is also effectively reduced. In applications with high real-time requirements such as flight simulation, reducing delay is crucial to improving user experience and system response speed, especially in complex battlefield simulation or helicopter flight scenarios. Low-latency image transmission can ensure smoother and more timely image feedback.

[0039] The invention is applied to the field of flight simulator design. BRIEF DESCRIPTION OF THE DRAWINGS

[0040] Figure 1 A flow chart of a method for generating a television guidance image for a flight simulation system according to implementation mode 1;

[0041] Figure 2 This is a schematic diagram of image data compression according to Embodiment 4;

[0042] Figure 3 This is a schematic diagram of decompression of a television-guided grayscale image according to Embodiment 6;

[0043] Figure 4 This is a flow chart of the image data compression method according to Embodiment 11;

[0044] Figure 5 This is a flow chart of run-length encoding according to the eleventh embodiment;

[0045] Figure 6 A flowchart for decompressing and displaying the landscape image described in the eleventh embodiment;

[0046] Figure 7 This is a flow chart of run length decoding according to the eleventh embodiment;

[0047] Figure 8 This is a comparison diagram of the original image 1 and the TV-guided image 1 described in the eleventh embodiment; wherein: Figure 8 (a) is the original image, Figure 8 (b) is the TV guidance image after compression and decompression;

[0048] Fig. 9 This is a comparison diagram of the original image 2 and the TV-guided image 2 described in the eleventh embodiment; wherein, Fig. 9 (a) is the original image, Fig. 9 (b) is the TV guidance image after compression and decompression. DETAILED DESCRIPTION

[0049] In order to make the purpose, technical solutions and advantages of the embodiments of the present invention clearer, the technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments.

[0050] Implementation method 1, see Figure 1 The present embodiment is described as follows. A method for generating a television guidance image for a flight simulation system, the method comprising:

[0051] Step 1, obtaining a landscape image, wherein the data of each pixel point of the landscape image includes three components of R, G, and B, and dividing the landscape image;

[0052] Step 2: Convert the divided image into components to obtain the brightness component Y in the landscape image;

[0053] Step 3: compress the brightness component Y in the landscape image to obtain compressed image data;

[0054] Step 4: Transmit the compressed image data to the receiving device for decompression processing to obtain the television guidance image.

[0055] In traditional video image processing, RGB (red, green, and blue) color mode is the most commonly used representation method, while TV-guided images (such as landscape images in flight simulation) are mainly concerned with brightness information. Therefore, through the conversion of color space, the three RGB color components can be converted into YUV components, where: Y represents the brightness component (Luminance), which mainly reflects the brightness and darkness of the image. U and V represent the chrominance components (Chrominance), which are responsible for representing the color information of the image. For TV-guided images, the Y component is the most important because it determines the clarity and brightness of the image. The U and V components are relatively insensitive, so in this application, the Y component is mainly concerned and processed. By compressing the Y component, the amount of transmitted data can be significantly reduced, because the brightness component usually occupies a larger proportion of the image data than the chrominance component. Especially in the high-quality display of the image, compressing the Y component can effectively reduce the bandwidth requirement. The compressed Y component image data can be transmitted through the network or other data channels of the flight simulation system. After receiving the compressed Y component data, the receiving device performs decompression processing to restore the original brightness information, and then generates the final TV-guided image. Since the compressed data of the Y component is small, the delay in the transmission process will be greatly reduced, especially when the data volume is very large, which can significantly improve the real-time performance and response speed of the system.

[0056] Traditional image transmission requires the transmission of complete RGB data (including brightness and chrominance components), while the method of the present invention only compresses and transmits the brightness component Y, greatly reducing the amount of data transmitted. Therefore, the bandwidth required by the system is greatly reduced, and more image data can be transmitted under the same bandwidth, or higher quality images can be transmitted under existing bandwidth conditions.

[0057] As the amount of data transmitted is reduced, the transmission delay is also effectively reduced. In applications with high real-time requirements such as flight simulation, reducing delay is crucial to improving user experience and system response speed, especially in complex battlefield simulation or helicopter flight scenarios. Low-latency image transmission can ensure smoother and more timely image feedback.

[0058] The main focus of television-guided images is the brightness component Y, while the demand for chrominance components is relatively low. Therefore, transmitting only the Y component will not significantly affect the visual effect of the image. On the contrary, by compressing the brightness component Y, the image display effect can be achieved that is equivalent to the traditional method, while improving the efficiency of the system.

[0059] In flight simulation systems or military simulation systems, it is usually necessary to simulate a variety of complex scenes, and involve a large amount of data transmission. This method of compressing and transmitting the brightness component can significantly reduce the burden on the system, avoid system performance bottlenecks caused by insufficient transmission bandwidth or excessive delay, and enhance the scalability and stability of the system.

[0060] In addition to data transmission, the storage requirements of image data are also greatly reduced. The compressed Y component data not only helps to improve transmission efficiency, but also helps to reduce data storage and save storage resources.

[0061] Since the TV guidance images in the flight simulation system are originally presented in RGB format, and YUV conversion and compression technology has mature standards in image processing (such as H.264 and other video encoding formats), this method can be easily integrated with existing image processing and video encoding systems and has strong compatibility.

[0062] Implementation method 2: This implementation method further limits the method for generating a television guidance image for a flight simulation system described in implementation method 1, wherein step 1 includes dividing the landscape image into 8×8 image sub-blocks.

[0063] After adopting 8×8 sub-block division, the compression algorithm can process in a smaller area, reducing the mutual influence of complex data in a large area, making the compression process more efficient. Compared with large-scale full-image compression, 8×8 sub-blocks help speed up calculations, especially in the case of hardware acceleration, and can fully utilize parallel processing capabilities.

[0064] Since the landscape image is divided into multiple 8×8 sub-blocks, the processing and compression process can be parallelized, and the compression and transmission of each sub-block can be performed independently. This block-based operation can reduce the overall transmission delay, especially in large-scale systems, where each sub-block can be processed by different processing units at the same time, reducing the response time of the overall image transmission and improving the real-time performance of the system.

[0065] During the image compression and decompression process, block processing can also reduce the propagation of compression errors and prevent a large area of ​​the image from being affected by a single compression error. Within each 8×8 sub-block, the impact of the compression error is limited to the local area and will not affect the display effect of the entire image. This makes the decompressed TV-guided image more consistent and accurate in details, and the image quality is more stable.

[0066] The 8×8 sub-block division makes it easier to obtain a higher compression ratio after image compression. For image data transmission in flight simulation systems, the amount of compressed data is smaller, and the bandwidth required for transmission is naturally reduced. This is a significant advantage in communication environments with limited bandwidth, especially in complex simulation systems.

[0067] Implementation method 3: This implementation method further limits the method for generating a television guidance image of a flight simulation system described in implementation method 1, and step 2 includes:

[0068] Y=0.299×R+0.587×G+0.114×B

[0069] Among them, R represents the red component, G represents the yellow component, and B represents the blue component.

[0070] Implementation method 4: See Figure 2 This embodiment further defines the method for generating a TV guidance image for a flight simulation system described in Embodiment 2, wherein step 3 includes:

[0071] Perform a 2D discrete cosine transform on the Y component of each 8×8 image sub-block;

[0072] Quantize the image sub-blocks after two-dimensional discrete cosine transformation;

[0073] The quantized 8×8 image sub-blocks are scanned using the Zig-Zag method to obtain a 64-bit one-dimensional array;

[0074] Run-length encoding is performed on the 64-bit one-dimensional array to complete the compression.

[0075] In this embodiment, by performing a two-dimensional discrete cosine transform (DCT) on the Y component (brightness component) of each 8×8 image sub-block, the high-frequency information and low-frequency information in the image can be separated. DCT converts image data from the spatial domain to the frequency domain, retaining the main features of the image while removing some redundant details. The high-frequency part usually represents the details and noise in the image, while the low-frequency part is usually the main content of the image. Through DCT processing, the low-frequency components of the image are concentrated in the upper left corner of the transformed matrix, while the high-frequency parts are distributed in the lower right corner. In this way, the low-frequency information has a greater impact on the image quality, while the high-frequency information can be effectively discarded or quantized, thereby reducing the amount of data and achieving a compression effect.

[0076] By quantizing, especially using fewer quantization levels for low-frequency parts, the amount of image data can be significantly reduced while retaining the main visual effects and key information of the image. Zig-Zag scanning of 8×8 image sub-blocks arranges the quantized coefficients in a specific order, usually from top left to bottom right, scanning the low-frequency components in the image first and the high-frequency components later. The order of Zig-Zag scanning prioritizes important low-frequency data and high-frequency data later, which helps the compression algorithm effectively identify redundant information. Zig-Zag scanning ensures that the main information of the image is encoded first, which enables subsequent compression algorithms (such as run-length encoding) to process data more efficiently. In addition, through this sequential arrangement, it is easy to find continuous zero values, further improving the compression ratio of the encoding.

[0077] If there is a string of M pixels with the same grayscale N in the one-dimensional sequence obtained by Zig-Zag scanning of image data, then only two values ​​(N, M) can be transmitted after run-length encoding to replace the M grayscale values ​​N of these M pixels. Simply put, the main task of run-length encoding is to count the number of consecutive identical characters. To further compress image data, especially when processing quantized image blocks, run-length encoding can effectively reduce the storage space requirements due to the large number of zero values ​​in the high-frequency part, thereby improving the image compression rate.

[0078] Embodiment 5: This embodiment further limits the method for generating a television guidance image for a flight simulation system described in embodiment 4, wherein the two-dimensional discrete cosine transform is performed on the Y component of each 8×8 image sub-block, including:

[0079]

[0080] Among them, f(x,y) is the Y component element of the 8×8 image sub-block, x,y=0, 1, 2, ... 7; F(m,n) is the element of the transformation coefficient array, m,n=0, 1, 2, ... 7.

[0081] Implementation Method 6: See Figure 3 This embodiment further defines the method for generating a TV guidance image for a flight simulation system described in Embodiment 1, wherein step 4 includes:

[0082] Perform run-length decoding on the compressed image data to obtain 64 data of a one-dimensional sequence, and arrange the 64 data of the one-dimensional sequence;

[0083] After the arrangement is completed, the obtained data is subjected to dequantization processing;

[0084] After the dequantization is completed, the dequantized data needs to be inversely discrete cosine transformed;

[0085] The Y component is obtained by decompressing and calculating the data after the inverse discrete cosine transform, and the Y component is spliced ​​into sub-blocks to obtain a television-guided grayscale image.

[0086] In this embodiment, by performing run-length decoding on the compressed image data, the storage space and transmission bandwidth requirements can be greatly reduced. After decoding, the obtained one-dimensional sequence can be more efficiently processed. After steps such as run-length decoding, inverse quantization and inverse discrete cosine transform, the image data can be restored well to ensure the quality of the television guided image. In traditional compression methods, the image quality may be lost, but this loss can be minimized through accurate inverse quantization processing and inverse discrete cosine transform (IDCT).

[0087] Inverse quantization is a key step in the image decoding process. It restores the quantized data to a true value close to the original image. After this process, the details and realism of the image can be significantly improved, especially for the quality control of grayscale images. Discrete cosine transform (DCT) and its inverse transform (IDCT) are also crucial in image compression and restoration. It can effectively separate the low-frequency and high-frequency information in the image, retaining the main content of the image in the low-frequency part, while the high-frequency part can reduce redundancy during compression. Therefore, the data after inverse DCT transformation is easier to restore the main features of the original image. Dividing the image into small sub-blocks for processing can locally optimize the image quality while reducing the amount of calculation. After the sub-blocks are spliced, the local details of the image can be better restored to ensure the integrity and clarity of the final image. The Y component represents the brightness information (grayscale information) of the image, which is particularly important for TV-guided images. By splicing the sub-blocks of the Y component, the consistency and accuracy of the brightness information can be ensured, so that the final TV-guided image is clear and has high visual quality. Due to the use of compressed image data, especially run-length encoding compression, the storage and bandwidth requirements can be greatly reduced, which has obvious advantages in processing large-scale data.

[0088] In the flight simulation system, TV-guided images need to have high real-time performance and accuracy. Through the above method, the processing efficiency of the system can be improved while ensuring the image quality, and the real-time feedback requirements in flight simulation can be met. Since the inverse quantization and inverse discrete cosine transform steps involved in the method help to improve the stability of the image, the system can generate clear images more stably for some irregular or disturbed image signals, especially in complex environments, and can still effectively provide usable TV-guided images.

[0089] Implementation 7: This implementation is a further limitation of the method for generating a television guidance image of a flight simulation system described in Implementation 1. After the dequantization is completed, the dequantized data needs to be subjected to an inverse discrete cosine transform, including:

[0090]

[0091] Wherein, v=0, 1, 2, ... 7, u==0, 1, 2, ... 7, and F'(u, v) is the Y component discrete cosine transform data of the 8×8 image sub-block obtained by inverse quantization.

[0092] Embodiment 8: A system for generating a television guidance image for a flight simulation system according to this embodiment, the system comprises:

[0093] A landscape image acquisition unit, used to acquire a landscape image, wherein the data of each pixel point of the landscape image includes three components of R, G, and B, and divide the landscape image;

[0094] A classification conversion unit, used for performing component conversion on the divided image to obtain a brightness component Y in the landscape image;

[0095] A compression unit, used for compressing the brightness component Y in the landscape image to obtain compressed image data;

[0096] The decompression unit is used to transmit the compressed image data to the receiving device for decompression processing to obtain the television guidance image.

[0097] Embodiment 9. A computer device described in this embodiment includes a memory and a processor, wherein a computer program is stored in the memory. When the processor runs the computer program stored in the memory, the processor executes a method for generating a television guidance image for a flight simulation system as described in any one of embodiments 1 to 7.

[0098] Embodiment 10. A computer-readable storage medium described in this embodiment stores a computer program, which, when executed by a processor, executes the steps of a method for generating a television-guided image for a flight simulation system as described in any one of claims 1 to 7.

[0099] Implementation Method 11: See Figure 4 , Figure 5 , Figure 6 , Figure 7 , Figure 8 and Fig. 9 This embodiment provides a specific example of the method for generating a TV guidance image of a flight simulation system described in the first embodiment, and is also used to explain the second to seventh embodiments, specifically:

[0100] In this embodiment, the source image of the TV guidance image to be displayed on the integrated display of the armed helicopter flight simulator includes three components of RGB, and the three components of RGB can be converted into three components of YUV, and the TV guidance image mainly displays the Y component, so it is only necessary to compress the Y component and then transmit it to the receiving device for decompression to generate the TV guidance image. In this way, the flight simulation system can only transmit the compressed data of the Y component of the landscape image to generate the TV guidance image after decompression, without additionally transmitting the data of the TV guidance image. The application of this embodiment in a certain type of flight simulation integrated combat system shows that, compared with the traditional method of transmitting and receiving image data, the method proposed in this embodiment saves transmission bandwidth, reduces transmission delay, and achieves good results.

[0101] The image data compression method process is as follows Figure 4 As shown. Before processing the image data, the image data is read first. The data of each pixel of the image includes three components: red, green, and blue, that is, RGB components. When reading the visible light landscape image data, the image is divided into 8×8 sub-blocks. In subsequent processing, the 8×8 sub-block is the smallest unit of the processed image.

[0102] After completing the division of sub-blocks, it is necessary to perform color space transformation on the data of each 8×8 sub-block, and transform the RGB (red, yellow, and blue) components of each sub-block image into YUV (brightness and chrominance) components. The reason is that the human eye is sensitive to (Y component) but not to chrominance (U and V components). The usual processing includes performing the same processing on the matrices of the three components Y, U, and V of the 8×8 image sub-block. In the method of the present invention, since the television guided image is a grayscale image, the U and V components that are not sensitive to the human eye are abandoned in this embodiment, and only the Y component is processed as follows. In the following description, the Y component is also referred to as the 8×8 image sub-block and is no longer distinguished.

[0103] The transformation formula of the RGB component to the Y component of the image is:

[0104] Y=0.299×R+0.587×G+0.114×B

[0105] After the above processing, the matrices of several 8×8 image sub-blocks of an image are obtained by image division. Then, after the transformation from RGB (red, yellow, and blue) components to Y components, the matrix of the Y component of each 8×8 image sub-block is obtained.

[0106] After completing the division and component transformation of all 8×8 image sub-blocks, a two-dimensional discrete cosine transform (DCT) is performed on the Y component of each 8×8 image sub-block. The transformation formula is:

[0107]

[0108] Where f(x,y) is the Y component element of the 8×8 image sub-block, x,y=0, 1, 2,...7; F(m,n) is the element of the transform coefficient array, m,n=0, 1, 2,...7.

[0109] After the above processing, quantization is performed. This is because the codebooks used in the subsequent encoding process are all integers, and the transformed frequency coefficients need to be quantized and converted into integers.

[0110] The quantization algorithm is:

[0111]

[0112] Where m, n = 0, 1, 2, ... 7. In the formula, F (m, n) is the parameter of the 8 × 8 image sub-block obtained by discrete cosine transform, Q (m, n) is the quantization coefficient table, and Table 1 is used for quantization of brightness (Y component).

[0113] Table 1 Standard brightness quantization table

[0114] 36 11 38 36 24 40 51 61 12 12 14 19 26 58 60 55 14 13 16 24 40 57 69 56 14 17 22 29 51 87 50 62 18 22 39 56 68 109 103 77 24 35 55 64 81 104 113 92 49 61 78 87 103 121 120 141 72 92 95 98 112 100 103 99

[0115] After the above processing, all preparations for compression coding are completed. In the next step of processing, the Zig-Zag method is used to scan each 8×8 image sub-block, that is, the elements in the matrix are arranged in a zigzag direction in the normal direction of the matrix diagonal. Arrange the data of the processed 8×8 image sub-block in the order of Table 2. After the 8×8 image sub-block is Zig-Zag, a 64-bit one-dimensional array is obtained.

[0116] Table 2 Zig-Zag scanning

[0117] 0 1 5 6 14 15 27 28 2 4 7 13 16 26 29 42 3 8 12 17 25 30 41 43 9 11 18 24 31 40 44 53 10 19 23 32 39 45 52 54 20 22 33 38 46 51 55 60 21 34 37 47 50 56 59 61 35 36 48 49 57 58 62 63

[0118] The advantage of doing this is that the elements with larger values ​​near the upper left corner of the matrix are arranged at the front of the stroke, while the matrix elements arranged at the back of the stroke are basically zero.

[0119] After Zig-Zag processing, the 8×8 image sub-block obtains a 64-bit one-dimensional sequence. The next step is to perform run-length encoding on the obtained sequence.

[0120] The run-length encoding method is to replace a continuous string of the same value with a pair of pairs of its value and string length (number of repetitions). For example, in the one-dimensional sequence of image data obtained by Zig-Zag scanning, there is a string of M pixels with the same grayscale N. After run-length encoding, only two values ​​(N, M) are transmitted to replace the M grayscale values ​​N of these M pixels. In short, the main task of run-length encoding is to count the number of consecutive identical characters. The flow chart of run-length encoding is as follows Figure 5 shown.

[0121] After the subsystem of the flight simulation system or the ground command simulation system receives the compressed landscape image data transmitted by a flight simulation system, a decompression process is required to obtain the current landscape image. The decompression process is the reverse process of compression. The decoding process is as follows: Figure 6 shown.

[0122] The first step of decompression is to perform run length decoding. During decoding, the original data is restored based on the characters and the number of consecutive identical characters. The run length decoding flow chart is as follows: Figure 7 shown.

[0123] After the run length decoding is completed, the 64 data of the restored one-dimensional sequence need to be arranged in 8×8 form according to Zig-Zag scanning. After the arrangement is completed, the obtained data needs to be dequantized. The dequantization process is the inverse process of quantization. Use Table 1 and Table 2 to perform the following transformation:

[0124] F'(m,n)=S'(m,n)×Q(m,n)×K(h), where S'(m,n) represents an 8×8 matrix obtained by inverse Zig-Zag scanning, and Q(m,n) represents the quantization parameter in Table 1.

[0125] After the inverse quantization is completed, the inverse discrete cosine transform needs to be performed on the inverse quantized data. The formula for the inverse discrete cosine transform is:

[0126]

[0127] The meaning of the symbols in the formula is the same as that in the discrete cosine transform formula.

[0128] After the inverse discrete cosine transform is completed on the data, the Y component calculated by decompression can be used to splice 8×8 sub-blocks and display the image.

[0129] In practical applications, the quantization table is pre-stored on two computers that need to send and receive image data for quantization or inverse quantization. The landscape image compression program of the present invention is run on the computer that needs to send image data (sending end); the image decompression program of the present invention is run on the computer that needs to receive and display the TV-guided grayscale image (receiving end), and the TV-guided simulation image screen of the flight simulation system can be obtained.

[0130] The compression and decompression results are as follows: Figure 8 , Fig. 9 As shown, there is almost no loss of detail in the compressed and decompressed images.

[0131] Those skilled in the art will appreciate that the embodiments of the present disclosure may be provided as methods, systems or computer program products. Therefore, the present disclosure may take the form of a complete hardware embodiment, a complete software embodiment or an embodiment combining software and hardware. Moreover, the present disclosure may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.

[0132] The present disclosure is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present disclosure. It should be understood that each process and / or block in the flowchart and / or block diagram and the combination of processes and / or blocks in the flowchart and / or block diagram can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to produce a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 These computer program instructions can also be stored in a computer-readable memory that can guide a computer or other programmable data processing device to work in a specific way, so that the instructions stored in the computer-readable memory produce a product including an instruction device, which implements the functions specified in the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.

[0133] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.

[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure rather than to limit its protection scope. Although the present disclosure has been described in detail with reference to the above embodiments, ordinary technicians in the relevant field should understand that after reading the present disclosure, those skilled in the art can still make various changes, modifications or equivalent substitutions to the specific implementation methods of the invention, but these changes, modifications or equivalent substitutions are all within the protection scope of the disclosed claims to be approved.

Claims

1. A method for generating a television guidance image for a flight simulation system, characterized in that: The method comprises: Step 1: Acquire a landscape image, wherein the data of each pixel point of the landscape image includes three components of R, G, and B, and divide the landscape image; Step 2: Convert the divided image into components to obtain the brightness component Y in the landscape image; Step 3: compress the brightness component Y in the landscape image to obtain compressed image data; Step 4: Transmit the compressed image data to the receiving device for decompression processing to obtain the television guidance image.

2. A method for generating a television guidance image for a flight simulation system according to claim 1, characterized in that: The step 1 includes dividing the landscape image into 8×8 image sub-blocks.

3. A method for generating a television guidance image for a flight simulation system according to claim 1, characterized in that: The step 2 comprises: Y=0.299×R+0.587×G+0.114×B Among them, R represents the red component, G represents the yellow component, and B represents the blue component.

4. A method for generating a television guidance image for a flight simulation system according to claim 2, characterized in that: The step 3 comprises: Perform a 2D discrete cosine transform on the Y component of each 8×8 image sub-block; Quantize the image sub-blocks after two-dimensional discrete cosine transformation; The quantized 8×8 image sub-blocks are scanned using the Zig-Zag method to obtain a 64-bit one-dimensional array; Run-length encoding is performed on the 64-bit one-dimensional array to complete the compression.

5. A method for generating a television guidance image for a flight simulation system according to claim 4, characterized in that: The performing a two-dimensional discrete cosine transform on the Y component of each 8×8 image sub-block includes: Among them, f(x,y) is the Y component element of the 8×8 image sub-block, x,y=0, 1, 2, ... 7; F(m,n) is the element of the transformation coefficient array, m,n=0, 1, 2, ...

7.

6. A method for generating a television guidance image for a flight simulation system according to claim 1, characterized in that: The step 4 comprises: Perform run-length decoding on the compressed image data to obtain 64 data of a one-dimensional sequence, and arrange the 64 data of the one-dimensional sequence; After the arrangement is completed, the obtained data is subjected to dequantization processing; After the inverse quantization is completed, the inverse discrete cosine transform needs to be performed on the inverse quantized data; The Y component is obtained by decompressing and calculating the data after the inverse discrete cosine transform, and the Y component is spliced ​​into sub-blocks to obtain a television-guided grayscale image.

7. A method for generating a television guidance image for a flight simulation system according to claim 1, characterized in that: After the dequantization is completed, the dequantized data needs to be subjected to an inverse discrete cosine transform, including: Wherein, v=0, 1, 2, ... 7, u==0, 1, 2, ... 7, and F'(u, v) is the Y component discrete cosine transform data of the 8×8 image sub-block obtained by inverse quantization.

8. A system for generating television guidance images for a flight simulation system, characterized in that: The system comprises: A landscape image acquisition unit, used to acquire a landscape image, wherein the data of each pixel point of the landscape image includes three components of R, G, and B, and divide the landscape image; A classification conversion unit, used for performing component conversion on the divided image to obtain a brightness component Y in the landscape image; A compression unit, used for compressing the brightness component Y in the landscape image to obtain compressed image data; The decompression unit is used to transmit the compressed image data to the receiving device for decompression processing to obtain the television guidance image.

9. A computer device, characterized in that: The invention comprises a memory and a processor, wherein a computer program is stored in the memory, and when the processor runs the computer program stored in the memory, the processor executes a method for generating a television guidance image for a flight simulation system according to any one of claims 1 to 7.

10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, which, when executed by a processor, executes the steps of a method for generating a television guidance image for a flight simulation system as claimed in any one of claims 1 to 7.

Citation Information

Patent Citations

  • Jpeg compression quantification method suitable for aerial images

    CN110430429A

  • High-speed image cloud transmission method based on grey-scale map compression algorithm

    CN114827625A

  • Device for coding a picture signal by compression

    US5126857A