**Bo-Lin Jian 1, Wen-Lin Chu 2, Yu-Chung Li <sup>3</sup> and Her-Terng Yau 1,\***


Received: 20 February 2020; Accepted: 17 March 2020; Published: 23 March 2020

**Abstract:** This study proposed the concept of sparse and low-rank matrix decomposition to address the need for aviator's night vision goggles (NVG) automated inspection processes when inspecting equipment availability. First, the automation requirements include machinery and motor-driven focus knob of NVGs and image capture using cameras to achieve autofocus. Traditionally, passive autofocus involves first computing of sharpness of each frame and then use of a search algorithm to quickly find the sharpest focus. In this study, the concept of sparse and low-rank matrix decomposition was adopted to achieve autofocus calculation and image fusion. Image fusion can solve the multifocus problem caused by mechanism errors. Experimental results showed that the sharpest image frame and its nearby frame can be image-fused to resolve minor errors possibly arising from the image-capture mechanism. In this study, seven samples and 12 image-fusing indicators were employed to verify the image fusion based on variance calculated in a discrete cosine transform domain without consistency verification, with consistency verification, structure-aware image fusion, and the proposed image fusion method. Experimental results showed that the proposed method was superior to other methods and compared the autofocus put forth in this paper and the normalized gray-level variance sharpness results in the documents to verify accuracy.

**Keywords:** autofocus; night vision goggles; image fusion; sparse and low-rank matrix decomposition
