Paper
18 March 2024 Application of producer-consumer pattern in real-time infrared image inversion at the missile range
Author Affiliations +
Proceedings Volume 13104, Advanced Fiber Laser Conference (AFL2023); 131041D (2024) https://doi.org/10.1117/12.3022073
Event: Advanced Fiber Laser Conference (AFL2023), 2023, Shenzhen, China
Abstract
The current ground-based and space-based testing target infrared image inversion at the missile range adopts a sequential execution method of "image reading - target tracking extraction - inversion calculation - result storage", which is inefficient and requires post-processing. With the new experimental tasks requiring real-time processing of infrared images, the current processing mode is unable to meet the requirements. This article proposes a multi-thread real-time improvement scheme based on the producer/consumer pattern. By establishing data buffers between producers and consumers, producers and consumers can execute independently, achieving decoupling between each other and improving execution efficiency.

Firstly, the core processing process of current inversion algorithms is analyzed and a flowchart is provided, including four key steps: image reading, target tracking extraction, inversion calculation, and result storage. Using program instrumentation, the execution time of each step in the inversion calculation process is obtained. The image reading takes about 5.4ms, the target tracking extraction takes about 22.5ms, the inversion calculation takes about 1.0ms, and the result saving takes about 16.2ms.

Secondly, we propose a "producer/consumer-producer/consumer" pattern of infrared image inversion. Each part can be executed synchronously by different threads or thread groups. We test the execution time of each step and divide them into three weakly coupled modules: producer, consumer-producer, and consumer. The producer corresponds to image reading; the consumer corresponds to result storage; since the target tracking extraction process takes much longer than the inversion calculation process and the two processes are closely related, we combine them into the consumer-producer, which is both a consumer (relative to upstream producer) and a producer (relative to downstream consumer).

Thirdly, we determine the number of threads for producer, consumer-producer, and consumer. Considering that the target tracking extraction algorithm in the actual image inversion process requires continuous image frames, the consumer-producer can only use a single thread to execute, while image reading (producer) and result storage (consumer) consume relatively less time compared to the consumer-producer. Therefore, in this case, when producer, consumer-producer, and consumer are all implemented using one thread, we can achieve the optimal thread configuration. The paper presents a logical diagram and pseudocode implementation to show the process of three threads synchronizing and mutual exclusion to perform the infrared image inversion calculation.

Finally, we implement the improved inversion pattern using C++ and test and compare it with the current infrared image inversion algorithm at the missile range. We used 4,000 actual measured infrared images of a certain aircraft, with a target size of approximately 30,000 pixels. We processed the images using two different methods four times, and calculated the average inversion computation time per infrared image. The results show that compared to the current infrared image inversion process, the improved pattern improves efficiency by about 48% and can meet the real-time inversion requirements at the missile range. This scheme and its design ideas and methods can be applied and promoted in various fields involving data acquisition and processing.
(2024) Published by SPIE. Downloading of the abstract is permitted for personal use only.
Bo Ji, Shili Tan, Junyu Guo, Yifu Sun, and Wengang Xu "Application of producer-consumer pattern in real-time infrared image inversion at the missile range", Proc. SPIE 13104, Advanced Fiber Laser Conference (AFL2023), 131041D (18 March 2024); https://doi.org/10.1117/12.3022073
Advertisement
Advertisement
RIGHTS & PERMISSIONS
Get copyright permission  Get copyright permission on Copyright Marketplace
KEYWORDS
Image processing

Infrared radiation

Infrared imaging

Data processing

RELATED CONTENT

New method for detection of dim point targets in infrared...
Proceedings of SPIE (October 04 1999)
Parallel Array Processor Results Displayed In Near Real Time
Proceedings of SPIE (September 16 1987)
Image processing in the AT snapshot mode
Proceedings of SPIE (September 25 1998)
New approach to ASTER orthoimage generation
Proceedings of SPIE (October 21 1996)

Back to Top