• Advanced Imaging
  • Vol. 3, Issue 5, 051002 (2026)
Yanan Li1, Kun Huang1、2、3、*, Jianan Fang1、2, Jingrong Sun1, Ruiyang Qin1, and Heping Zeng1、2、*
Author Affiliations
  • 1State Key Laboratory of Precision Spectroscopy, and Hainan Institute, East China Normal University, Shanghai, China
  • 2Chongqing Key Laboratory of Precision Optics, Chongqing Institute of East China Normal University, Chongqing, China
  • 3Collaborative Innovation Center of Extreme Optics, Shanxi University, Taiyuan, China
  • *Corresponding author: khuang@lps.ecnu.edu.cn, hpzeng@phy.ecnu.edu.cn
  • show less
    DOI: 10.3788/AI.2026.10026 Cite this Article Set citation alerts
    Yanan Li, Kun Huang, Jianan Fang, Jingrong Sun, Ruiyang Qin, Heping Zeng, "Programmable nonlinear coded-aperture imaging in the mid-infrared," Adv. Imaging 3, 051002 (2026) Copy Citation Text show less

    Abstract

    Coded-aperture imaging overcomes the intrinsic trade-off between light throughput and spatial resolution in conventional aperture imaging through structured optical encoding and computational reconstruction. Extending this capability into the mid-infrared (MIR) is highly attractive for applications including environmental monitoring, non-destructive inspection, and chemical imaging, yet it remains hindered by the lack of high-fidelity spatial encoding and sensitive detection technologies. Here, we propose and experimentally demonstrate programmable nonlinear coded-aperture imaging in the MIR at 3.07 µm. The proposed approach integrates nonlinear optical encoding with computational decoding, where a near-infrared pump beam at 1.03 µm is spatially modulated by a spatial light modulator to form a programmable nonlinear coded aperture within a nonlinear crystal. Through sum-frequency generation, the encoded pump pattern is optically transferred to the MIR signal while simultaneously enabling frequency-upconversion detection, thereby realizing both high-fidelity spatial encoding and high-sensitivity imaging. By optimizing the coding strategy using a Golay-7 array with near-delta autocorrelation, the system achieves significantly enhanced signal-to-noise ratio and spatial resolution compared with single-pinhole imaging, while maintaining the large depth-of-field advantage of lensless architectures. This work establishes a flexible and scalable paradigm for nonlinear MIR computational imaging and opens new opportunities for high-performance lensless imaging in long-wavelength regimes.
    © The Authors. Published by Chinese Laser Press under a Creative Commons Attribution 4.0 International License. Distribution or reproduction of this work in whole or in part requires full attribution of the original publication, including its DOI.

    1. Introduction

    Coded-aperture imaging is a powerful imaging paradigm that combines structured optical encoding with computational reconstruction to overcome the intrinsic trade-off between photon throughput and spatial resolution in conventional aperture imaging[1–3]. By replacing traditional apertures with spatially engineered transmission patterns, coded-aperture systems can efficiently encode scene information into captured measurements and subsequently recover target images through computational decoding. Originally developed for imaging inherently unfocusable X-rays and γ-rays[4,5], coded-aperture imaging significantly improves photon collection efficiency while preserving spatial resolution, thereby enabling high-sensitivity imaging under photon-limited conditions. With the rapid development of computational imaging, coded-aperture techniques have evolved into a versatile imaging framework and have been broadly integrated with compressed sensing, snapshot imaging, and computational reconstruction methods. Representative advances include compressed ultrafast photography (CUP)[6,7], coded-aperture snapshot spectral imaging (CASSI)[8–10], and coded-aperture polarimetric imaging[11–13]. Meanwhile, the emergence of programmable spatial modulators[14–18] and advanced reconstruction approaches, including deep neural networks[19–22] and end-to-end optimization frameworks[23,24], have further driven coded-aperture imaging toward higher flexibility, sensitivity, and reconstruction fidelity.

    Extending coded-aperture imaging into the mid-infrared (MIR) is particularly attractive because the MIR spectral region contains rich molecular fingerprint resonances and important atmospheric transmission windows[25,26]. These characteristics make MIR coded-aperture imaging highly promising for applications including non-destructive inspection, environmental monitoring, and biomedical diagnosis[27–30]. However, realizing high-performance MIR coded-aperture imaging remains extremely challenging. On the one hand, high-fidelity spatial encoding in the MIR is fundamentally limited by the lack of suitable modulation devices[31]. Conventional physical masks suffer from fixed coding patterns and poor adaptability, while programmable devices such as digital micromirror devices (DMDs) experience severe diffraction-induced degradation at long wavelengths[32], significantly reducing modulation fidelity and encoding precision. On the other hand, MIR imaging detection is still constrained by the limited room-temperature sensitivity and pixel density of narrow-bandgap semiconductor focal-plane arrays, which typically suffer from strong dark-current noise and complex cooling requirements[33,34]. Therefore, developing an MIR coded-aperture imaging framework capable of simultaneously achieving high-fidelity optical encoding and high-sensitivity detection remains an important challenge.

    In recent years, nonlinear optical manipulation has opened new opportunities for MIR imaging[35–39]. Among various approaches, frequency-upconversion imaging has emerged as a particularly powerful strategy by transferring MIR information into the visible or near-infrared (NIR) regime through nonlinear wave mixing[40–45]. In the sum-frequency generation (SFG) process, the spatial structure of a shorter-wavelength pump beam can be optically transferred to the MIR signal, enabling indirect yet high-fidelity modulation of MIR radiation using mature NIR spatial light modulators (SLMs)[37]. This nonlinear encoding mechanism effectively circumvents the scarcity of MIR modulation devices while simultaneously enabling sensitive room-temperature detection using high-performance silicon-based cameras. Various nonlinear MIR imaging schemes have consequently been demonstrated, including ultrafast temporal detection[46], high-resolution spectral sensing[47,48], single-pixel imaging[37,38], and phase manipulation[49]. In particular, the pump modulation scheme has been extended to lensless imaging architectures, where confining the pump beam to a single pinhole inside the nonlinear crystal achieves MIR pinhole imaging[30]. However, a single aperture fundamentally suffers from limited photon throughput, and programmable multi-aperture spatial encoding strategies for MIR coded-aperture imaging have not yet been investigated.

    Here, we propose and experimentally demonstrate programmable nonlinear coded-aperture imaging in the MIR at 3.07 µm. In our scheme, a nonlinear coded aperture is optically formed by spatially modulating a 1.03 µm pump beam with an SLM, enabling flexible and programmable spatial encoding. During the SFG process, the encoded pump pattern simultaneously performs optical encoding and frequency upconversion of the MIR signal, thereby realizing both high-fidelity spatial encoding and high-sensitivity detection within a unified nonlinear framework. The encoded measurements are subsequently reconstructed using the Richardson–Lucy (RL) iterative deconvolution algorithm. By optimizing the coding strategy using a Golay-7 array with near-delta autocorrelation, the proposed system achieves substantially improved signal-to-noise ratio (SNR), spatial resolution, and imaging robustness compared with conventional single-pinhole imaging, while maintaining the large depth-of-field advantage of lensless architectures. This work establishes a flexible and scalable paradigm for nonlinear MIR computational imaging and opens new opportunities for high-performance lensless imaging in long-wavelength regimes.

    2. Basic Principle

    MIR nonlinear coded-aperture imaging can be regarded as an advanced extension of nonlinear pinhole imaging, where image formation relies on spatial modulation of the optical field. Figure 1(a) illustrates the principle of nonlinear pinhole imaging based on frequency upconversion[30]. In this configuration, an optical aperture formed by the pump beam inside the nonlinear crystal acts as a spatial filter, enabling direct lensless imaging of the target object. A sufficiently small aperture enhances spatial selectivity and suppresses overlap between rays originating from different object points. However, strong spatial filtering inevitably blocks most incident photons, resulting in low light throughput and poor SNR[3]. Increasing the aperture size can improve photon collection efficiency, as illustrated in Fig. 1(b), but simultaneously weakens the spatial filtering capability, causing severe overlap between adjacent object points and leading to image blur[50]. Therefore, conventional single-aperture imaging fundamentally suffers from the trade-off between photon throughput and spatial resolution.

    Conceptual illustration of MIR nonlinear coded-aperture imaging. (a) Nonlinear pinhole imaging, where an optical aperture formed by the pump beam inside the nonlinear crystal acts as a spatial filter and enables direct lensless imaging of the MIR signal. (b) Large-aperture imaging. Enlarging the aperture increases photon throughput but causes overlap between rays originating from different object points, resulting in image blur. (c) Nonlinear coded-aperture imaging. A structured coded-aperture array optically encodes the spatial information of the object onto the detection plane, enabling high-throughput computational imaging. (d) Computational reconstruction workflow based on the Richardson–Lucy (RL) iterative deconvolution algorithm. The encoded upconverted measurement is iteratively decoded to recover a clear image of the object.

    Figure 1.Conceptual illustration of MIR nonlinear coded-aperture imaging. (a) Nonlinear pinhole imaging, where an optical aperture formed by the pump beam inside the nonlinear crystal acts as a spatial filter and enables direct lensless imaging of the MIR signal. (b) Large-aperture imaging. Enlarging the aperture increases photon throughput but causes overlap between rays originating from different object points, resulting in image blur. (c) Nonlinear coded-aperture imaging. A structured coded-aperture array optically encodes the spatial information of the object onto the detection plane, enabling high-throughput computational imaging. (d) Computational reconstruction workflow based on the Richardson–Lucy (RL) iterative deconvolution algorithm. The encoded upconverted measurement is iteratively decoded to recover a clear image of the object.

    To overcome these limitations, we replace the conventional pinhole with a programmable coded-aperture array, as illustrated in Fig. 1(c). Compared with a single aperture, the coded array allows substantially higher photon throughput while preserving spatial information through structured optical encoding[1]. The proposed imaging framework mainly consists of two key processes: nonlinear optical encoding and computational decoding. During encoding, a near-infrared pump beam is spatially modulated by an SLM to generate a programmable encoding pattern. Through the SFG process, the spatial structure of the pump field is optically transferred to the MIR signal, thereby realizing nonlinear spatial encoding of the target scene. This nonlinear optical encoding mechanism effectively circumvents the lack of high-performance MIR modulation devices while enabling flexible and high-fidelity spatial encoding using mature NIR modulation technology.

    Under incoherent illumination, the imaging process can be approximated as a linear convolution model[35]. Owing to the nonlinear imaging geometry, the object and image coordinates satisfy the mapping relation x′=Mx and y′=My, where the imaging magnification is given by M=−vλup/(uλs), with λs and λup denoting the MIR signal wavelength and upconversion wavelength, respectively, and u and v representing the object and image distances relative to the nonlinear aperture plane[30]. The negative sign indicates image inversion. The forward imaging process can, therefore, be expressed as I(x′,y′)=O(x,y)*PSF(x′,y′)=O(x′M,y′M)*PSF(x′,y′),where I(x′,y′) denotes the intensity distribution of the captured upconverted coded image, O(x,y) represents the object intensity distribution, and “*” denotes two-dimensional convolution. The point spread function (PSF) of the imaging system is determined by the nonlinear process and the coded-aperture distribution: PSF(x′,y′)∝|A(x′,y′)|2,where A(x′,y′) denotes the amplitude transmittance of the coded aperture. Therefore, the spatial encoding characteristics of the nonlinear aperture directly determine the information transfer process and the subsequent reconstruction quality. More detailed derivations and discussion of the forward imaging model are provided in the Supplement 1, Note 2.

    To recover the target image from the encoded measurement, we employ the RL iterative deconvolution algorithm for computational decoding[51–53]. Based on the forward convolution model and Poisson noise statistics, the RL algorithm iteratively reconstructs the object through maximum-likelihood estimation: O(k+1)(x,y)=O(k)(x,y)·[I(x′,y′)O(k)(x,y)*PSF(x′,y′)⋆PSF(−x′,−y′)],where O(k)(x,y) denotes the reconstructed object after the kth iteration, and “⋆” represents correlation. As illustrated in Fig. 1(d), the reconstruction iteratively compares the estimated encoded image with the measured result and back-projects the error into object space until convergence is achieved. More details of the reconstruction procedure are provided in Supplement 1, Note 3.

    By combining the high-throughput advantage of coded apertures with nonlinear optical encoding and computational reconstruction, the proposed framework effectively overcomes the trade-off between photon throughput and spatial resolution in conventional pinhole imaging, while naturally preserving the intrinsic advantages of lensless architectures, including large depth of field, compact configuration, and distortion-free imaging[54].

    3. Experimental Setup

    Figure 2(a) illustrates the experimental setup of the programmable MIR nonlinear coded-aperture imaging system. The signal and pump beams originate from a common 1030 nm mode-locked laser delivering 174 fs pulses at a repetition rate of 20.25 MHz. A portion of the output is converted into a 3070 nm MIR pulse through an optical parametric process, while the remaining portion serves as the synchronized pump beam for subsequent upconversion imaging. This passive synchronization scheme provides a compact and robust system architecture while simplifying experimental operation. More details of the laser source are provided in our previous work.

    (a) Experimental setup of the MIR nonlinear coded-aperture imaging system. Two temporally synchronized pulsed lasers at 1030 and 3070 nm serve as the pump and MIR signal sources, respectively. The MIR signal beam first passes through a rotating ground-glass diffuser to reduce spatial coherence before illuminating the target object. The transmitted object field is directly projected into a CPLN crystal. Simultaneously, the pump beam is spatially modulated by a spatial light modulator (SLM) and relayed into the crystal through a 4f imaging system formed by lenses L3 and L4. The upper-right insets show (b) the holographic pattern loaded onto the SLM and (c) the corresponding encoded pump aperture generated inside the nonlinear crystal. The MIR signal beam and the encoded pump beam are subsequently combined by a dichroic mirror (DM) to perform sum-frequency generation (SFG). The SFG process simultaneously realizes nonlinear spatial encoding by transferring the structured pump pattern onto the MIR radiation and high-sensitivity detection through frequency upconversion into the visible regime. After spectral filtering by the filter group (FG), the upconverted coded image is recorded by a silicon camera and computationally reconstructed to recover the target object. Dia: diaphragm; L: lens; M: silver mirror.

    Figure 2.(a) Experimental setup of the MIR nonlinear coded-aperture imaging system. Two temporally synchronized pulsed lasers at 1030 and 3070 nm serve as the pump and MIR signal sources, respectively. The MIR signal beam first passes through a rotating ground-glass diffuser to reduce spatial coherence before illuminating the target object. The transmitted object field is directly projected into a CPLN crystal. Simultaneously, the pump beam is spatially modulated by a spatial light modulator (SLM) and relayed into the crystal through a 4f imaging system formed by lenses L3 and L4. The upper-right insets show (b) the holographic pattern loaded onto the SLM and (c) the corresponding encoded pump aperture generated inside the nonlinear crystal. The MIR signal beam and the encoded pump beam are subsequently combined by a dichroic mirror (DM) to perform sum-frequency generation (SFG). The SFG process simultaneously realizes nonlinear spatial encoding by transferring the structured pump pattern onto the MIR radiation and high-sensitivity detection through frequency upconversion into the visible regime. After spectral filtering by the filter group (FG), the upconverted coded image is recorded by a silicon camera and computationally reconstructed to recover the target object. Dia: diaphragm; L: lens; M: silver mirror.

    In the imaging configuration, the MIR beam first passes through a rotating ground-glass diffuser to reduce spatial coherence before illuminating the target object. The transmitted object field is then directly projected into the center of a chirped periodically poled lithium niobate (CPLN) crystal with dimensions of 3 mm×2 mm×5 mm (width × thickness × length). The poling period of the CPLN crystal varies linearly from 16 to 24 µm along the propagation direction, enabling efficient upconversion over a broad angular range and, thus, supporting a large field of view.

    To realize nonlinear spatial encoding, we employ a programmable phase-modulation scheme based on a phase-only SLM. The SLM has a resolution of 1920 pixel×1080 pixel with a pixel pitch of 8 µm and a refresh rate of 60 Hz. As illustrated in Fig. 2(b), the hologram loaded onto the SLM consists of the target encoding pattern superimposed with a blazed grating. Owing to the dependence of first-order diffraction efficiency on phase modulation depth, phase-only modulation is converted into effective amplitude encoding of the optical field. The modulated pump beam is subsequently demagnified onto the nonlinear crystal through a 4f imaging system. During this process, a diaphragm positioned at the Fourier plane spatially filters the first-order diffraction component, thereby generating a pure encoded pump aperture inside the crystal, as shown in Fig. 2(c). Compared with conventional physical masks, this programmable encoding strategy enables flexible and high-fidelity spatial modulation. Moreover, it effectively mitigates the field-of-view degradation caused by inter-pixel phase discrepancies in DMDs, making it particularly suitable for ultrafast nonlinear imaging. More details regarding the pump encoding strategy and its characterization are provided in the Supplement 1, Note 1.

    Finally, the encoded pump beam and the MIR signal carrying the object information are spatially combined by a dichroic mirror (DM), while their temporal overlap is precisely adjusted using an optical delay line to enable efficient SFG inside the CPLN crystal. The SFG process simultaneously accomplishes nonlinear spatial encoding and frequency-upconversion detection by optically transferring the structured pump pattern onto the MIR radiation and converting the MIR photons into the visible regime. After spectral filtering to suppress pump fluorescence and background noise, the upconverted coded images centered at 771 nm are captured by a silicon-based electron-multiplying CCD (EMCCD, Andor iXon Ultra 888) camera. The conversion efficiency from MIR to visible is measured to be 0.16%, which could be further improved by increasing the pump average power or the effective nonlinear crystal length. The recorded coded measurements are then computationally reconstructed using the RL algorithm to recover the target image.

    4. Results and Discussion

    4.1. Programmable Nonlinear Optical Apertures

    We first characterize the programmable optical aperture of the system and investigate its pinhole imaging performance. In aperture-based lensless imaging, the imaging quality is critically determined by the aperture design. In conventional pinhole imaging, when the aperture is excessively small, strong diffraction effects lead to image blurring; conversely, when the aperture becomes too large, insufficient spatial filtering causes severe overlap between rays originating from different object points, also degrading image quality. Therefore, an optimal aperture size generally exists that balances diffraction and spatial selectivity to achieve the clearest image. More detailed discussion of the underlying mechanism can be found in our previous work[30]. Consequently, flexible and precise aperture modulation is of central importance for high-quality lensless imaging.

    In our system, the programmable optical aperture is generated through spatial modulation of an NIR SLM. The measured pump apertures formed inside the nonlinear crystal exhibit radii ranging from 0.10 to 0.28 mm, as shown in Figs. 3(a)–3(e). These optical apertures exhibit continuously tunable sizes while maintaining highly uniform intensity distributions. Such flexibility is achieved simply through hologram engineering on the SLM, significantly reducing the complexity and cost associated with conventional physical aperture fabrication and replacement. Beyond aperture-size tuning, the proposed nonlinear encoding scheme also enables arbitrary programmability of the aperture shape, spatial arrangement, and intensity distribution.

    Characterization of programmable optical apertures and their nonlinear pinhole imaging performance. (a)–(e) Measured pump apertures generated by SLM modulation inside the nonlinear crystal, with aperture radii r ranging from 0.10 to 0.28 mm. (f)–(j) Corresponding nonlinear upconversion pinhole images recorded at an object distance of u=20 cm and an image distance of v=12 cm. (k)–(o) Intensity profiles extracted along the white dashed lines in (f)–(j). The modulation transfer function (MTF) is used to quantify the imaging resolution under different aperture sizes.

    Figure 3.Characterization of programmable optical apertures and their nonlinear pinhole imaging performance. (a)–(e) Measured pump apertures generated by SLM modulation inside the nonlinear crystal, with aperture radii r ranging from 0.10 to 0.28 mm. (f)–(j) Corresponding nonlinear upconversion pinhole images recorded at an object distance of u=20  cm and an image distance of v=12  cm. (k)–(o) Intensity profiles extracted along the white dashed lines in (f)–(j). The modulation transfer function (MTF) is used to quantify the imaging resolution under different aperture sizes.

    To evaluate the imaging characteristics of the programmable aperture, a transmissive mask engraved with “ECNU” is positioned at an object distance of u=20  cm, while the image plane is located at v=12  cm. The corresponding nonlinear pinhole imaging results are shown in Figs. 3(f)–3(j). To quantitatively characterize the imaging resolution for different aperture sizes, we employ the modulation transfer function (MTF), which describes the system’s ability to transfer contrast as a function of spatial frequencies. At a given frequency, the MTF is derived from the modulation contrast of the bar pattern in the recorded images. The intensity profiles extracted along the white dashed lines of the letter “E” in Figs. 3(f)–3(j) are presented in Figs. 3(k)–3(o). As the aperture radius varies, the image quality exhibits the expected trade-off between diffraction blur and spatial overlap. When the aperture radius is tuned to 0.18 mm, the resulting image achieves the highest sharpness, corresponding to an MTF of 0.52. In contrast, when the aperture becomes excessively small (r=0.10  mm) or excessively large (r=0.28  mm), the letter “E” can no longer be clearly resolved. These results verify that the proposed nonlinear aperture modulation scheme enables precise and programmable control of the imaging aperture in the MIR regime, while allowing rapid optimization of imaging performance through flexible optical-field engineering.

    4.2. Coded-Aperture MIR Upconversion Imaging

    Next, we investigate programmable multi-aperture coded imaging based on nonlinear spatial encoding. Owing to the high flexibility of the SLM-based pump modulation, arbitrary coded-aperture arrays can be readily generated within the nonlinear crystal. In the following experiments, the radius of each sub-aperture is fixed at the optimal pinhole size of 0.18 mm determined above, while the number of apertures is gradually increased by expanding the rows and columns of the array under a uniform aperture spacing. The resulting encoded pump aperture patterns formed inside the nonlinear crystal are shown in Figs. 4(a)–4(d).

    Programmable nonlinear coded-aperture MIR imaging with multi-aperture arrays. (a)–(d) Measured encoded pump aperture patterns generated inside the nonlinear crystal, where the number of sub-apertures is progressively increased while maintaining a fixed aperture radius of 0.18 mm and uniform aperture spacing. (e)–(h) Corresponding upconverted coded measurements recorded by the silicon-based camera. Owing to the structured spatial encoding imposed by the coded apertures, the captured images exhibit characteristic blurred intensity distributions. (i)–(l) Reconstructed target images obtained using the RL iterative deconvolution algorithm.

    Figure 4.Programmable nonlinear coded-aperture MIR imaging with multi-aperture arrays. (a)–(d) Measured encoded pump aperture patterns generated inside the nonlinear crystal, where the number of sub-apertures is progressively increased while maintaining a fixed aperture radius of 0.18 mm and uniform aperture spacing. (e)–(h) Corresponding upconverted coded measurements recorded by the silicon-based camera. Owing to the structured spatial encoding imposed by the coded apertures, the captured images exhibit characteristic blurred intensity distributions. (i)–(l) Reconstructed target images obtained using the RL iterative deconvolution algorithm.

    The corresponding upconverted coded measurements recorded by the silicon-based camera are presented in Figs. 4(e)–4(h). Owing to the structured spatial modulation introduced by the coded aperture, the captured images exhibit characteristic blurred intensity distributions determined by the encoding patterns, preventing direct visualization of the target object. To recover the original spatial information, we employ the RL iterative deconvolution algorithm for computational decoding based on the forward imaging model. Figures 4(i)–4(l) show the corresponding reconstructed images after 30 iterations for different coded-aperture configurations. In each case, the target pattern “ECNU” is successfully recovered, demonstrating the effectiveness and robustness of the proposed nonlinear coded imaging framework.

    Notably, the nonlinear frequency-upconversion process plays a dual role in the proposed system. On the one hand, it enables high-fidelity spatial encoding of the MIR signal by optically transferring the structured pump field onto the target radiation. On the other hand, it simultaneously converts the encoded MIR photons into the visible regime, enabling high-sensitivity detection using silicon-based cameras. By combining programmable nonlinear encoding with computational reconstruction, the proposed scheme realizes lensless coded-aperture computational imaging in the MIR regime.

    4.3. Optimized Nonlinear Aperture Engineering

    In the following, we optimize the coded-aperture design using a Golay array configuration with near-delta autocorrelation. In coded-aperture imaging, the encoding pattern plays a central role in both information acquisition and computational reconstruction. On the one hand, the spatial distribution of the coded aperture determines the optical transfer function (OTF) of the imaging system, thereby governing its spatial frequency response and information capture capability. On the other hand, the coded pattern serves as the physical basis of the measurement matrix in computational imaging, where its autocorrelation characteristics directly influence the ill-posedness of the inverse reconstruction problem. Ideally, the autocorrelation distribution should approximate a δ function with a sharp central peak and suppressed side lobes. Such a property minimizes spectral nulls in the PSF, thereby improving reconstruction stability, accelerating iterative convergence, and suppressing reconstruction artifacts and noise amplification. Owing to its near-ideal autocorrelation characteristics and broad spatial frequency coverage, the Golay array is theoretically well suited for high-fidelity coded-aperture imaging[55]. Further descriptions regarding the Golay coding properties are available in the Supplement 1, Note 4.

    To experimentally evaluate the influence of coding strategies, we compare the Golay-7 array with three other representative encoding configurations. The corresponding encoded pump patterns generated inside the nonlinear crystal are shown in Figs. 5(a)–5(d). For a fair comparison, all encoding schemes are designed with identical optical throughput and the same maximum spatial frequency range, indicated by the white circumscribed circles. The corresponding autocorrelation distributions are presented in Figs. 5(e)–5(h). Among them, Golay encoding exhibits the most concentrated autocorrelation energy within the central main lobe, while the surrounding side lobe energy remains weak and uniformly distributed, closely approximating an ideal δ-like response. In contrast, the other encoding schemes exhibit obvious side lobes, which are expected to introduce reconstruction artifacts and noise amplification during iterative decoding.

    Comparison of different coded-aperture strategies and their reconstruction performance. (a)–(d) Four representative pump encoding patterns generated inside the nonlinear crystal, designed with identical optical throughput and the same maximum spatial frequency range (white circles). (e)–(h) Corresponding two-dimensional autocorrelation distributions. The Golay encoding exhibits the most δ-like autocorrelation response with a concentrated central main lobe and suppressed side lobes. (i)–(l) Reconstructed images obtained using the RL iterative deconvolution algorithm after 10 iterations. (m)–(p) Corresponding reconstruction results after 30 iterations. The reconstruction quality is quantitatively evaluated using the SSIM.

    Figure 5.Comparison of different coded-aperture strategies and their reconstruction performance. (a)–(d) Four representative pump encoding patterns generated inside the nonlinear crystal, designed with identical optical throughput and the same maximum spatial frequency range (white circles). (e)–(h) Corresponding two-dimensional autocorrelation distributions. The Golay encoding exhibits the most δ-like autocorrelation response with a concentrated central main lobe and suppressed side lobes. (i)–(l) Reconstructed images obtained using the RL iterative deconvolution algorithm after 10 iterations. (m)–(p) Corresponding reconstruction results after 30 iterations. The reconstruction quality is quantitatively evaluated using the SSIM.

    We subsequently reconstruct the coded measurements using the RL iterative deconvolution algorithm. The reconstructed results after 10 iterations are shown in Figs. 5(i)–5(l). Under the same iteration number, only Golay encoding clearly resolves the target pattern “ECNU,” whereas the other encoding schemes still exhibit significant reconstruction artifacts. When the iteration number is further increased to 30, as shown in Figs. 5(m)–5(p), all encoding schemes are able to recover the target object, although substantial differences in reconstruction quality remain. Quantitative evaluation using the structural similarity index measure (SSIM) further confirms the superiority of the Golay encoding, which achieves the highest SSIM value of 0.761, significantly outperforming the other coding strategies. These results demonstrate that the superior autocorrelation characteristics of the Golay array effectively improve reconstruction fidelity, accelerate convergence, and enhance noise robustness, highlighting the critical importance of coded-aperture design in nonlinear computational imaging.

    4.4. High-Throughput Weak-Light MIR Imaging

    Finally, we evaluate the imaging performance of the proposed MIR coded-aperture system under different illumination levels and compare it with conventional single-pinhole imaging. In traditional pinhole imaging, the strong spatial-filtering process inevitably blocks most incident photons, leading to limited photon throughput and low SNR. Although enlarging the aperture can improve light collection efficiency, it simultaneously introduces stronger spatial overlap and image blur. This intrinsic trade-off between photon throughput and spatial resolution fundamentally limits the performance of conventional pinhole imaging. In contrast, coded-aperture imaging mitigates this limitation by employing multiple apertures to simultaneously collect more signal photons while recovering spatial information through computational decoding.

    To experimentally verify this advantage, we image the target pattern “ECNU” with an exposure time of 100 ms under progressively reduced illumination levels. The upconverted coded measurements acquired using the Golay-7 coded aperture are shown in Figs. 6(a), 6(d), and 6(g). After computational decoding, the reconstructed images shown in Figs. 6(b), 6(e), and 6(h) faithfully recover the fine structures of the target even when the incident optical power decreases to 0.4 fW/pixel. In comparison, the corresponding nonlinear single-pinhole images obtained under the same exposure conditions are presented in Figs. 6(c), 6(f), and 6(i). Although the pinhole configuration preserves recognizable image features under strong illumination, the image contrast and fine details degrade rapidly as the illumination level decreases because of the insufficient accumulation of signal photons.

    Imaging performance of nonlinear coded-aperture imaging and conventional single-pinhole imaging under different illumination levels. (a), (d), (g) Upconverted coded measurements acquired using the Golay-7 coded aperture as the incident optical power decreases from 8.0 to 0.4 fW/pixel. (b), (e), (h) Corresponding reconstructed images obtained through computational decoding using the RL algorithm with 30 iterations. (c), (f), (i) Nonlinear single-pinhole imaging results recorded under the same exposure conditions. The coded-aperture approach maintains high image fidelity and fine structural details under significantly reduced illumination levels.

    Figure 6.Imaging performance of nonlinear coded-aperture imaging and conventional single-pinhole imaging under different illumination levels. (a), (d), (g) Upconverted coded measurements acquired using the Golay-7 coded aperture as the incident optical power decreases from 8.0 to 0.4 fW/pixel. (b), (e), (h) Corresponding reconstructed images obtained through computational decoding using the RL algorithm with 30 iterations. (c), (f), (i) Nonlinear single-pinhole imaging results recorded under the same exposure conditions. The coded-aperture approach maintains high image fidelity and fine structural details under significantly reduced illumination levels.

    Notably, under relatively strong illumination, the reconstructed coded-aperture images exhibit sharper edge features than those obtained from direct pinhole imaging. This improvement originates from the computational decoding process, which effectively compensates for the inherent blur introduced by finite pinhole filtering and enables better recovery of high-spatial-frequency information. Consequently, coded-aperture imaging not only improves photon collection efficiency and imaging sensitivity but also provides enhanced image sharpness compared with conventional pinhole imaging.

    These results collectively demonstrate that the proposed nonlinear coded-aperture imaging framework effectively enhances imaging sensitivity while maintaining high spatial fidelity under extremely weak illumination conditions, thereby significantly extending the capability of MIR lensless imaging in photon-starved scenarios.

    5. Conclusion

    In conclusion, we have experimentally demonstrated programmable nonlinear coded-aperture MIR imaging based on frequency upconversion. The core innovation of the proposed scheme lies in the nonlinear optical encoding strategy, where a near-infrared pump beam is spatially structured by a programmable SLM and subsequently transferred to the MIR signal through the SFG process. This unified nonlinear framework simultaneously realizes high-fidelity spatial encoding and high-sensitivity frequency-upconversion detection, thereby effectively overcoming two major limitations in MIR imaging: the lack of high-performance spatial modulation devices and the limited sensitivity of conventional MIR detectors. Benefiting from mature NIR modulation technology, the proposed approach provides a flexible and highly programmable spatial encoding platform for the MIR regime.

    Beyond the nonlinear encoding mechanism, the presented work also establishes a lensless computational imaging architecture in the MIR based on programmable coded apertures. Unlike conventional MIR upconversion imaging systems that generally rely on imaging lenses for optical focusing[41–43,56], the proposed scheme directly records object information through structured coded detection and reconstructs the target image computationally. Consequently, the system naturally inherits the intrinsic advantages of lensless imaging, including compact configuration, distortion-free imaging, and large depth of field[57]. A detailed discussion on the depth-of-field performance of the coded-aperture imaging scheme is provided in the Supplement 1, Note 5. More importantly, compared with conventional nonlinear pinhole imaging, the coded-aperture strategy effectively alleviates the intrinsic trade-off between photon throughput and spatial resolution by combining high-flux optical encoding with computational reconstruction. Through optimized coded-aperture design, the system achieves substantially improved imaging sensitivity and enhanced recovery of fine spatial details under weak-light conditions.

    The presented framework also offers considerable flexibility for further extension and optimization. Since the coded aperture is generated optically through programmable pump modulation, the encoding pattern can be flexibly tailored for different imaging requirements, enabling adaptive spatial frequency control and optimized information acquisition[18]. In addition, the current reconstruction framework can be naturally combined with advanced computational approaches, such as compressed sensing and learning-assisted reconstruction algorithms, to further improve reconstruction quality and robustness under low-photon-flux conditions[20–23,58]. From the perspective of wavelength scalability, the proposed nonlinear encoding strategy is not restricted to the current MIR band and could potentially be extended to longer wavelength regimes by employing appropriate nonlinear materials and phase-matching conditions[59,60]. Overall, by integrating programmable nonlinear optical encoding, coded-aperture imaging, and frequency-upconversion detection within a unified framework, this work provides a promising route toward flexible and high-sensitivity imaging in long-wavelength spectral regions.

    Disclosures

    The authors declare no conflicts of interest.

    Data Availability

    Data underlying the results presented in this paper are not publicly available at this time but may be obtained from the authors upon reasonable request.

    Acknowledgments

    Acknowledgment. This work was supported by the National Key R&D Program of China (No. 2025YFA1411700), the National Natural Science Foundation of China (Nos. 62505088, 62235019, and 125B2088), the Shanghai Pilot Program for Basic Research (No. TQ20220104), the Hainan Provincial Natural Science Foundation of China (Nos. 126ZD1019 and 126QN0836), the Postdoctoral Fellowship Program and China Postdoctoral Science Foundation (Nos. GZC20250545, 2024M760918, and 2025T180224), and the Fundamental Research Funds for the Central Universities.

    References

    [1] J. Liang. Punching holes in light: recent progress in single-shot coded-aperture optical imaging. Rep. Prog. Phys., 83, 116101(2020).

    [2] M. J. Cieślak, K. A. A. Gamage, R. Glover. Coded-aperture imaging systems: past, present and future development–a review. Radiat. Meas., 92, 59(2016).

    [3] T. M. Cannon, E. E. Fenimore. Coded aperture imaging: many holes make light work. Opt. Eng., 19, 193283(1980).

    [4] E. Caroli et al. Coded aperture imaging in X- and gamma-ray astronomy. Space Sci. Rev., 45, 349(1987).

    [5] A. A. Faust et al. Development of a coded aperture X-ray backscatter imager for explosive device detection. IEEE Trans. Nucl. Sci., 56, 299(2009).

    [6] L. Gao et al. Single-shot compressed ultrafast photography at one hundred billion frames per second. Nature, 516, 74(2014).

    [7] C. Yang et al. Optimizing codes for compressed ultrafast photography by the genetic algorithm. Optica, 5, 147(2018).

    [8] G. R. Arce et al. Compressive coded aperture spectral imaging: an introduction. IEEE Signal Process. Mag., 31, 105(2014).

    [9] K. Monakhova et al. Spectral DiffuserCam: lensless snapshot hyperspectral imaging with a spectral filter array. Optica, 7, 1298(2020).

    [10] T. Kim et al. Aperture-encoded snapshot hyperspectral imaging with a lensless camera. APL Photonics, 8, 066109(2023).

    [11] N. Baek et al. Lensless polarization camera for single-shot full-Stokes imaging. APL Photonics, 7, 116107(2022).

    [12] S. Wu et al. Polarization-controlled transmissive plasmonic color filter using a dimer-aperture array. Adv. Sci., 12, 2501941(2025).

    [13] N. Joshi et al. Single shot polarization resolved coded aperture imaging. Sci. Rep., 15, 23164(2025).

    [14] V. Bagnoud, J. D. Zuegel. Independent phase and amplitude control of a laser beam by use of a single-phase-only spatial light modulator. Opt. Lett., 29, 295(2004).

    [15] J. Liang et al. Grayscale laser image formation using a programmable binary mask. Opt. Eng., 51, 108201(2012).

    [16] Z. Jiang et al. Programmable liquid crystal display based noise reduced dynamic synthetic coded aperture imaging camera (NoRDS-CAIC). Opt. Express, 28, 5221(2020).

    [17] K. Wu et al. Emerging coding methods for computational imaging. Adv. Imaging, 2, A00001(2025).

    [18] X. Zhang et al. Lensless imaging with a programmable Fresnel zone aperture. Sci. Adv., 11, eadt3909(2025).

    [19] H. Chen et al. Super-resolution image projection over an extended depth of field using a diffractive decoder. Light Sci. Appl., 15, 236(2026).

    [20] R. Horisaki, Y. Okamoto, J. Tanida. Deeply coded aperture for lensless imaging. Opt. Lett., 45, 3131(2020).

    [21] K. Yanny et al. Deep learning for fast spatially varying deconvolution. Optica, 9, 96(2022).

    [22] K. Wang et al. On the use of deep learning for phase recovery. Light Sci. Appl., 13, 4(2024).

    [23] J. Bacca, T. Gelvez-Barrera, H. Arguello. Deep coded aperture design: an end-to-end approach for computational imaging tasks. IEEE Trans. Comput. Imaging, 7, 1148(2021).

    [24] J. Liu et al. Future-proof imaging: computational imaging. Adv. Imaging, 1, 012001(2024).

    [25] K. L. Vodopyanov. Laser-based Mid-infrared Sources and Applications(2020).

    [26] J. Fang et al. Wide-field mid-infrared hyperspectral imaging beyond video rate. Nat. Commun., 15, 1811(2024).

    [27] N. M. Israelsen et al. Real-time high-resolution mid-infrared optical coherence tomography. Light Sci. Appl., 8, 11(2019).

    [28] L. Shi et al. Mid-infrared metabolic imaging with vibrational probes. Nat. Methods, 17, 844(2020).

    [29] J. Fang et al. Mid-infrared single-photon 3D imaging. Light Sci. Appl., 12, 144(2023).

    [30] Y. Li et al. Mid-infrared nonlinear pinhole imaging. Optica, 12, 1478(2025).

    [31] M. P. Edgar, G. M. Gibson, M. J. Padgett. Principles and prospects for single-pixel imaging. Nat. Photonics, 13, 13(2019).

    [32] Y. Zhao et al. Optical design of an Offner coded aperture snapshot spectral imaging system based on dual-DMDs in the mid-wave infrared band. Opt. Express, 29, 39271(2021).

    [33] M. Razeghi, B. M. Nguyen. Advances in mid-infrared detection and imaging: a key issues review. Rep. Prog. Phys., 77, 082401(2014).

    [34] P. Wang et al. Sensing infrared photons at room temperature: from bulk materials to atomic layers. Small, 15, 1904396(2019).

    [35] A. Barh et al. Parametric upconversion imaging and its applications. Adv. Opt. Photonics, 11, 952(2019).

    [36] A. Xomalis et al. Detecting mid-infrared light by molecular frequency upconversion with dual-wavelength hybrid nanoantennas. Science, 374, 1268(2021).

    [37] Y. Wang et al. Mid-infrared single-pixel imaging at the single-photon level. Nat. Commun., 14, 1073(2023).

    [38] H. Ma et al. Mid-infrared single-pixel imaging via two-photon optical encoding. PhotoniX, 6, 34(2025).

    [39] J. Guan et al. Mid- to long-wave-infrared nanoscopy with lanthanide transducers. Laser Photonics Rev., 20, e01012(2026).

    [40] J. S. Dam, P. Tidemand-Lichtenberg, C. Pedersen. Room-temperature mid-infrared single-photon spectral imaging. Nat. Photonics, 6, 788(2012).

    [41] A. V. Paterova et al. Hyperspectral infrared microscopy with visible light. Sci. Adv., 6, eabd0460(2020).

    [42] K. Huang et al. Wide-field mid-infrared single-photon upconversion imaging. Nat. Commun., 13, 1077(2022).

    [43] R. Qin et al. High-speed mid-infrared imaging via nonlinear multiplexed detection. Laser Photonics Rev., 19, 2500308(2025).

    [44] Z. Ge et al. Midinfrared up-conversion imaging under different illumination conditions. Phys. Rev. Applied, 20, 054060(2023).

    [45] Y. Cai et al. Mid-infrared single-photon upconversion spectroscopy enabled by nonlocal wavelength-to-time mapping. Sci. Adv., 10, eadl3503(2024).

    [46] W. Zhang et al. Mid-infrared single-photon sub-pixel temporal ghost imaging. Laser Photonics Rev., e02587(2026).

    [47] B. Sun et al. Infrared single-pixel hyperspectral imaging via spatial-temporal multiplexing. Laser Photonics Rev., 20, e01321(2026).

    [48] Z. Zhao et al. Single-photon time-stretch computational ghost spectroscopy. Adv. Photonics, 8, 046014(2026).

    [49] J. Zhang et al. High-order mid-infrared nonlinear topological differentiator. Laser Photonics Rev., 20, e02431(2026).

    [50] J. Liang. Coded Optical Imaging(2024).

    [51] W. H. Richardson. Bayesian-based iterative method of image restoration. J. Opt. Soc. Am., 62, 55(1972).

    [52] A. P. I. Xavier et al. Coded aperture imaging using non-linear Lucy-Richardson algorithm. Opt. Laser Technol., 183, 112300(2025).

    [53] B. Zhang, S. Zhao, Z. Liu. A review of image restoration methods based on the Richardson-Lucy algorithm. Digit. Signal Process., 169, 105768(2026).

    [54] S. Li et al. Lensless camera: unraveling the breakthroughs and prospects. Fundam. Res., 5, 1725(2025).

    [55] M. J. E. Golay. Point arrays having compact nonredundant autocorrelations. J. Opt. Soc. Am., 61, 272(1971).

    [56] J. Fang et al. Mid-infrared snapshot spectral imaging via nonlinear radial dispersion(2026).

    [57] V. Boominathan et al. Recent advances in lensless imaging. Optica, 9, 1(2022).

    [58] S. Sun et al. Deep learning for photon-efficient imaging: a review and perspective. Adv. Imaging, 3, B00001(2026).

    [59] P. J. Rodrigo et al. Room-temperature, high-SNR upconversion spectrometer in the 6–12 µm region. Laser Photonics Rev., 15, 2000443(2021).

    [60] T. Pfeiffer et al. Terahertz detection by upconversion to the near-infrared using picosecond pulses. Opt. Express, 28, 29419(2020).

    Yanan Li, Kun Huang, Jianan Fang, Jingrong Sun, Ruiyang Qin, Heping Zeng, "Programmable nonlinear coded-aperture imaging in the mid-infrared," Adv. Imaging 3, 051002 (2026)
    Download Citation