Method and system for image restoration
The attention-guided training framework for metalenses dynamically focuses on outer regions to enhance image restoration, addressing aberrations and improving image quality by balancing global and local details.
Patent Information
- Application Number
- PCT/SG2026/050325
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2025-05-23
- Filing Date
- 2026-05-22
- Publication Date
- 2026-11-26
AI Technical Summary
Metalenses suffer from chromatic and angular aberrations, leading to blurred and distorted outer regions in wide-field images, which existing DNN-based restoration techniques fail to adequately address.
An attention-guided training and restoration framework that progressively emphasizes outer regions using an attention map guidance mechanism, combined with a control algorithm to adaptively adjust focus during training, and employs an attention-map-guided loss function with a neural-augmented restoration algorithm to enhance image restoration quality.
The framework effectively reduces artifacts and improves image quality, particularly in outer regions, achieving perceptually faithful restorations with preserved global and local structural details.
Smart Images

Figure SG2026050325_26112026_PF_FP_ABST
Abstract
Description
METHOD AND SYSTEM FOR IMAGE RESTORATIONCROSS-REFERENCE TO RELATED APPLICATION
[0001] The application claims the benefit of priority of Singapore patent application No.10202501343U, filed on 23 May 2025, the content of it being hereby incorporated by reference in its entirety for all purposes.TECHNICAL FIELD
[0002] The disclosure relates to a method, a system for image restoration The disclosure is particularly suited for, but not limited to, images captured by one or more metalenses.BACKGROUND
[0003] The following discussion of the background is intended to facilitate an understanding of the present disclosure only. It should be appreciated that the discussion is not an acknowledgment or admission that any of the material referred to was published, known, or is part of the common general knowledge of the person skilled in the art in any jurisdiction as of the priority date of the disclosure.
[0004] Metalenses are optical components based on engineered metasurfaces, the metasurfaces comprising subwavelength-scale nanostructures, which locally tailor the wavefront of incident light. By suitably designing these nanostructures (often referred to as “meta-atoms”), metalenses can focus or otherwise manipulate light with a thickness on the order of hundreds of nanometers, in contrast to conventional refractive optics that rely on centimeter-scale curved elements and material bulk. This form factor reduction makes metalenses attractive for size-, weight-, and power-constrained imaging platforms such as compact optical sensors, mobile device cameras, unmanned aerial vehicle imaging systems, and head-mounted displays for augmented or virtual reality.
[0005] Various metalens architectures and meta-optic imaging systems have been proposed with the aim of providing functions comparable to those of conventional refractive or diffractive lens assemblies while reducing size and complexity. In many such systems, wavelength-dependent phase responses of the meta-atoms, angular sensitivity of the metasurface, and fabrication-related constraints can give rise to chromatic aberrations, angular aberrations, and reduced efficiency, which may limit achievable image quality over broadspectral bands and wide fields of view. Approaches such as achromatic or broadband metalenses, hybrid modules combining metasurfaces with refractive elements, and other advanced optical designs have been investigated to mitigate these effects and improve overall imaging performance.
[0006] More recently, deep neural network (DNN)-based reconstruction models have been developed for imaging systems that incorporate metasurfaces or other diffractive optical elements. End-to-end learning frameworks have been reported in which a DNN is trained to map raw images captured through metalenses to corresponding high-quality estimates of underlying scenes, showing improved performance compared with some conventional restoration techniques in tasks such as denoising and de-blurring. For example, deep-leaming-driven end-to-end metalens imaging (DRMI) has been described as a framework that can restore images affected by strong chromatic and angular aberrations so as to approximate reference images obtained with conventional optics or ground-truth scenes. Nevertheless, in wide-field operation, regions towards the periphery of the image can still exhibit noticeable blur, distortion, or loss of contrast, indicating that further developments in the joint design of metalens optics and data-driven reconstruction techniques may be desirable.SUMMARY
[0007] The technical solution comprise an image restoration system comprising an attention-guided training and restoration framework that dynamically emphasizes outer-field regions while preserving structural fidelity across the entire image.
[0008] In one embodiment, the image restoration system is trained using an attention map guidance mechanism configured to progressively increase emphasis on outer regions of the reconstructed image, while maintaining both global scene structure and local detail so as to obtain perceptually faithful or consistent restorations. A control algorithm may be implemented to update the attention map during training based on intermediate restoration performance, thereby adaptively adjusting the focus on the outer regions as learning progresses. In addition, an attention-map-guided loss function may be applied in connection with a neural-augmented restoration algorithm for metalens imaging, such that loss contributions from selected regions are weighted in accordance with the attention map to improve restoration quality in areas affected by strong, spatially variant degradations.
[0009] A technical solution is provided in the form of an image restoration framework comprising an attention map guidance mechanism to enhance the restoration model’s focus on outer regions progressively, preserving both global and local stmctural details for more perceptually faithful restoration.
[0010] A control algorithm to dynamically update the attention map, ensuring that the restoration model's focus on outer regions adapts throughout the training process.
[0011] Applied an attention map guided loss function to study a neural -augmented restoration algorithm for meta-lens imaging.
[0012] In some embodiments, an attention map guidance mechanism is proposed to enhance a restoration model’s focus on outer regions progressively, preserving both global and local structural details for more perceptually faithful restoration. A control algorithm is further proposed to dynamically update the attention map, ensuring that the restoration model's focus on outer regions adapts throughout the training process.
[0013] According to an aspect of the present disclosure there is provided a computer-implemented method for processing images captured by a metalens-based imaging system, the method comprising: receiving, by one or more processors, at least one input image originating from a metalens-based imaging system; obtaining, by the one or more processors, coordinate information corresponding to a random patch of the at least one input image; processing the at least one input image and the coordinate information, by an image restoration model executed by the one or more processors, to generate a restored output image; wherein the image restoration model has been obtained by a training process comprising: generating, using the image restoration model, a reconstructed image of the at least one input image; comparing the reconstructed image with a ground-truth image to determine a reconstruction loss parameter; generating a Fourier transform of the reconstructed image and a Fourier transform of the ground-truth image; processing the Fourier transform of the reconstructed image and the Fourier transform of the ground-truth image using a discriminator to determine an adversarial loss parameter; and optimizing the restoration model based on the reconstruction loss parameter and the adversarial loss parameter.
[0014] In some embodiments, the training process further comprises generating an initial map based on the coordinate information, and generating an attention map based on a transformation of the initial map
[0015] In some embodiments, the attention map comprises an attention magnitude proportional to a distance-d parameter calculated from a patch center of the random patch of the at least one input image.
[0016] In some embodiments, the method further comprises determining the attention magnitude for a pixel at coordinates within the random patch, the determination comprising assigning the attention magnitude a value that is a monotonically increasing function of a distance between the pixel and the patch center, the monotonically increasing function being parameterised by at least one first parameter indicative of an attention strength and at least one second parameter indicative of an attention offset, such that pixels located further from the patch center are assigned relatively higher attention strengths.
[0017] In some embodiments, the first parameter is inversely proportionally to a patch size parameter, and the second parameter is assigned a value of 1.
[0018] In some embodiments, the first parameter is a dynamic parameter, the dynamic parameter configured in a manner such that the attention magnitude has a reduced or null influence during an initial portion of the training process and a progressively increased influence during a later portion of the training process.
[0019] In some embodiments, the training progress corresponds to a training epoch index, and the strength is maintained at or near zero up to a threshold epoch and then increased in a continuous manner as the training epoch index exceeds the threshold epoch.
[0020] In some embodiments, the method further comprises processing coordinate information corresponding to a spatial location of the random patch using a 1><1 convolution function to generate a coordinate feature map, and combining the random patch with the coordinate feature map to generate the initial map.
[0021] In some embodiments, the reconstruction loss comprises a Peak Signal-to-Noise Ratio (PSNR) based loss function.
[0022] In some embodiments, the adversarial loss is calculated based on an adversarial learning scheme in a frequency domain.
[0023] In some embodiments, the discriminator is configured to classify a Fourier-domain representation as corresponding to the ground-truth image or the reconstructed image.
[0024] In some embodiments, the ground-truth image is an RGB image captured by a standard camera.
[0025] In some embodiments, optimizing the restoration model comprises minimising a total loss function, the total loss function comprising the reconstruction loss parameter and the adversarial loss parameter; wherein the reconstruction loss parameter is configured to increase with a mean-squared error between the reconstructed image and the ground-truth image, and is normalised using a maximum signal value of the ground-truth image, and the adversarial loss parameter comprises a discriminator loss parameter and a generator loss parameter computed in a transform domain representative of the reconstructed image and the ground-truth image.
[0026] In some embodiments, the total loss function further comprises a balancing hyperparameter that scales the adversarial loss parameter relative to the reconstruction loss parameter.
[0027] According to another aspect of the present disclosure there is provided a metalensbased imaging system, comprising: a metalens configured to form an optical image of a scene; an image sensor configured to capture a metalens image corresponding to the optical image; one or more processors configured to: receive the metalens image; obtain coordinate information corresponding to a random patch of the metalens image; process the metalens image and the coordinate information by an image restoration model to generate a restored output image; wherein the image restoration model has been trained based on: generate, using the image restoration model, a reconstructed image of the at least one input image; compare the reconstructed image with a ground-truth image to determine a reconstruction loss parameter; generate a Fourier transform of the reconstructed image and a Fourier transform of the ground-truth image; process the Fourier transform of the reconstructed image and the Fourier transform of the ground-truth image using a discriminator to determine an adversarial loss parameter; and optimize the restoration model based on the reconstruction loss parameter and the adversarial loss parameter.
[0028] In some embodiments, the metalens-based imaging system further comprises at least one of a microscopy system, a remote sensing system, a satellite imaging system, an augmented reality system, a virtual reality system, a mobile imaging device, a smartphone camera, a compact camera, or a computational photography device.
[0029] In some embodiments, the one or more processors are further configured to output the restored output image for diagnostic analysis, biological measurement, cell identification, tissue classification, image segmentation, or computer-assisted microscopy.
[0030] In some embodiments, the metalens-based imaging system is a remote sensing or satellite imaging system, and wherein the metalens and the image sensor form part of a lightweight optical imaging payload.
[0031] In some embodiments, the metalens-based imaging system is a mobile imaging device, smartphone, tablet, wearable camera, compact camera, or computational photography device.
[0032] According to another aspect of the present disclosure there is provided a non-transitory computer-readable medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform the method as described.BRIEF DESCRIPTION OF THE DRAWINGS
[0033] The disclosure will be better understood with reference to the detailed description when considered in conjunction with the non-limiting examples and the accompanying drawings, in which:- FIG. 1 is a flow chart of a computer-implemented method for processing images captured by a metalens-based imaging system.- FIG. 2 illustrates various samples illustrating poor quality in outer regions in restored images using DRMI.- FIG. 3 illustrates an image restoration framework according to some embodiments. - FIG. 4 are samples of metalens images with degradation around the boundaries. - FIG. 5 illustrates an embodiment of input preparation of an image captured by a metalens-based imaging system according to some embodiments.- FIG. 6 is an embodiment illustrating the attention map generation process according to some embodiments.- FIG. 7 illustrates qualitative comparison of results generated by the proposed framework of FIG. 3 (see label ‘b’), and DRMI from metalens images (see label ‘c’), based on a generated dataset used in the proposed disclosure (see label ‘a’).- FIG. 8 illustrates qualitative comparison of results generated by the proposed framework of FIG. 3 (see label ‘b’), DRMI from metalens images (see label ‘c’), based on a DIV2K dataset (see label ‘a’).DETAILED DESCRIPTION
[0034] The following detailed description refers to the accompanying drawings that show, by way of illustration, specific details and embodiments in which the disclosure may be practiced. These embodiments are described in sufficient detail to enable those skilled in the art to practice the disclosure. Other embodiments may be utilized and structural, logical changes may be made without departing from the scope of the disclosure. The various embodiments are not necessarily mutually exclusive, as some embodiments can be combined with one or more other embodiments to form new embodiments
[0035] Embodiments described in the context of one of the systems or methods are analogously valid for the other systems or methods.
[0036] Features that are described in the context of an embodiment may correspondingly be applicable to the same or similar features in the other embodiments. Features that are described in the context of an embodiment may correspondingly be applicable to the other embodiments, even if not explicitly described in these other embodiments. Furthermore, additions and / or combinations and / or alternatives as described for a feature in the context of an embodiment may correspondingly be applicable to the same or similar feature in the other embodiments.
[0037] In the context of some embodiments, the articles “a”, “an” and “the” as used with regard to a feature or element include a reference to one or more of the features or elements.
[0038] As used herein, the term “and / or” includes any and all combinations of one or more of the associated listed items.
[0039] As used herein, the term “at least substantially” may include “exactly” and a reasonable variance.
[0040] As used herein, the term “about” or “approximately” as applied to a numeric value encompasses the exact value and a reasonable variance.
[0041] As used herein, the term “device” may be understood to refer to any apparatus, equipment, or component, whether standalone or integrated, that performs a specific function or set of functions. This includes, but is not limited to, mechanical, electrical, electronic, optical, or electromechanical systems, subsystems, and assemblies. A device may comprise one or more components, modules, or units that are designed to interact with each other to achieve a particular purpose.
[0042] As used herein, the term “associate”, “associated”, and “associating” indicate a defined relationship (or cross-reference) between two items.
[0043] As used herein, the term “configured to” broadly refers to the design, arrangement, or adaptation of a system, device, component, or module to perform a specific function or achieve a particular outcome. The term includes both hardware and / or software implementations wherein in a hardware implementation, the physical components are arranged, programmed, or structured to carry out the intended function(s), and in the context of programming and software, a device is operable under executable instructions (e.g., software, firmware) to perform the specified function(s) when executed by one or more processors. The resultant configuration allows the system or component to perform the stated function, either inherently or after suitable programming or activation, without requiring substantial modifications to its structure or operational logic.
[0044] As used herein, the term “metalens” broadly refers an optical element comprising a meta surface configured with subwavelength-scale structures to locally control phase and / or amplitude and / or polarization of incident electromagnetic radiation over a surface, thereby imparting a lens-like function such as focusing, collimation, beam shaping or other wavefront transformation, without requiring macroscopic curvature of the element. A “metalens-based imaging system broadly refers to an imaging system in which at least one imaging optical function (e g. focusing a scene onto an image plane) is provided by a metalens, optionally in combination with one or more refractive and / or diffractive traditional optical elements.
[0045] As used herein, the term “optical image of a scene” broadly refers to a distribution of optical intensity, and optionally phase and / or polarization, formed by an optical system from electromagnetic radiation originating from or reflected by a physical environment (“scene”), and corresponding to the spatial structure of that environment in at least one dimension at the wavelengths of interest.
[0046] As used herein, the term “image sensor” refers to a device including one or more arrays of photosensitive elements configured to convert incident electromagnetic radiation in an image plane into corresponding electrical signals indicative of local intensity, and optionally, color, polarization or depth distribution.
[0047] As used herein, the term “metalens image” refers to any image formed at, or in association with, the image sensor by the metalens, i.e. the optical image produced by the metalens and captured by the image sensor.
[0048] As used herein, the term “processor” refers to one or more physical processing units (e g. microprocessors, microcontrollers, digital signal processors, graphics processing units,application-specific integrated circuits, FPGAs, or combinations thereof) configured to execute program instructions and / or implement logic circuitry for performing the specified operations on input data to produce output data.
[0049] As used herein, “memory” may refer to a non-transitory computer-readable medium in which data or information can be stored. References to “memory” included herein may thus be understood as referring to volatile or non-volatile memory, including random access memory (“RAM”), read-only memory (“ROM”), flash memory, solid-state storage, magnetic tape, hard disk drive, optical drive, etc , or any combination thereof Furthermore, it is appreciated that registers, shift registers, processor registers, data buffers, etc., are also embraced herein by the term memory. It is appreciated that a single component referred to as “memory” or “a memory” may be composed of more than one different type of memory, and thus may refer to a collective component including one or more types of memory. It is readily understood that any single memory component may be separated into multiple collectively equivalent memory components, and vice versa. Furthermore, while memory may be depicted as separate from one or more other components (such as in the drawings), it is understood that memory may be integrated within another component, such as on a common integrated chip.
[0050] As used herein, the term “coordinate information” broadly refers to data that specifies position or location within a defined domain, such as pixel coordinates (x, y) in an image frame, normalized coordinates in continuous space, or indices into an array corresponding to positions in the metalens image.
[0051] As used herein, the term “random patch” broadly refers to a sub-region, for example a contiguous subset of pixels of an image, such as a metalens image, the location and / or extent of which is selected in a manner that is not predetermined or fixed across samples. In some embodiments, the random patch may be chosen according to a stochastic sampling process, pseudo-random generator, or randomized data-augmentation policy.
[0052] As used herein, the term “image restoration model” refers to a parameterized algorithmic model, including, but not limited to, a neural network, a probabilistic model, or other parametric or non-parametric mapping, configured to receive at least one degraded or transformed input image, and optionally auxiliary information such as coordinates, and to generate an output image that estimates or reconstructs a less-degraded, more “true” or visually improved version of the underlying scene representation.
[0053] As used herein, the term “restored output image” refers to an image output by the image restoration model representing a reconstruction or enhancement of the metalens image, for example with reduced blur, aberrations, noise, or other artifacts.
[0054] As used herein, the term “ground-truth image” refers to an image used as a reference during training that is treated as accurately representing the true or desired visual content of a scene, against which the reconstructed image produced by the model is compared to quantify reconstruction quality.
[0055] As used herein, the term “reconstructed image” refers to an image generated by the image restoration model from one or more input images (e.g. metalens images) and any auxiliary information, intended to approximate the corresponding ground-truth image.
[0056] As used herein, the term “discriminator” refers to a parameterized model, for example, a neural network, configured to receive input data, for example, Fourier-domain representations of reconstructed and / or ground-truth images, and to output at least one discriminator signal, score, or classification indicating whether the input is more likely to correspond to real ground-truth data or to generated reconstructed data
[0057] As used herein, the term “adversarial loss parameter” refers broadly to a scalar loss value (or set of values) computed based on outputs of the discriminator when applied to reconstructed and / or real images, where the loss is configured so that optimizing the image restoration model with respect to this loss encourages the restored images to be more similar, in discriminator space, to the real or ground-truth images.
[0058] As used herein, the term “reconstruction loss parameter” refers broadly to a scalar loss value, for example, a mean squared error, LI distance, perceptual loss or similar, computed by comparing a reconstructed image with a corresponding ground-truth image, the loss being indicative of discrepancy between the two images, and may be used as an objective function, alone or in combination with others, when optimizing the image restoration model.
[0059] In the following, embodiments will be described in detail.
[0060] According to an aspect of the present disclosure and with reference to FIG. 1, there is provided a computer-implemented method 100 for processing images captured by a metalens-based imaging system, the method comprising the steps:
[0061] Step S 101 : receiving, by one or more processors, at least one input image originating from a metalens-based imaging system.
[0062] Step S102: obtaining, by the one or more processors, coordinate information corresponding to a random patch of the at least one input image.
[0063] Step SI 03: processing the at least one input image and the coordinate information, by an image restoration model executed by the one or more processors, to generate a restored output image.
[0064] In some embodiments, the image restoration model may be obtained by a training process, the training process comprising:
[0065] Step Si l l : generating, using the image restoration model, a reconstructed image of the at least one input image.
[0066] Step SI 12: comparing the reconstructed image with a ground-truth image to determine a reconstruction loss parameter.
[0067] Step SI 13: generating a Fourier transform of the reconstructed image and a Fourier transform of the ground-truth image.
[0068] Step SI 14: processing the Fourier transform of the reconstructed image and the Fourier transform of the ground-truth image using a discriminator to determine an adversarial loss parameter.
[0069] Step SI 15: optimizing the restoration model based on the reconstruction loss parameter and the adversarial loss parameter.
[0070] The restoration model may be trained by the same one or more processors used for steps S101 to S103, or may be trained by a separate server / processor. In some embodiments, the training of the restoration model may be performed remotely and / or periodically.
[0071] In the development of deep neural networks (DNNs), some DNN-based reconstruction models may demonstrate superior performance compared to traditional approaches in specialized tasks such as denoising, or de-blurring. In this regard, various end-to-end frameworks have been developed for meta-optics. Notably, a deep-leaming-driven end-to-end metalens imaging (DRMI) framework is an end-to-end image reconstruction approach specifically designed for metalens imaging systems. The DRMI framework may restore images affected by significant chromatic and angular aberrations, producing high-resolution outputs comparable to ground truth images. However, the outer regions of images may remain blurred and distorted, as shown in FIG. 2. In some embodiments, the DRMI framework may make use of, or be implemented in conjunction with, principles described in J. Seo et al., ‘Deep-learning-driven end-to-end metalens imaging,’ Advanced Photonics, Vol. 6, No. 6, 066002 (2024),which describes a deep-1 earning-based image restoration framework configured to overcome aberrations and efficiency limitations of broadband metalenses so as to enable end-to-end metalens imaging.
[0072] To mitigate the above, the computer-implemented method 100 may be applied to build upon the DRMI architecture to introduce an attention map-guided loss function, enhancing DNN learning by emphasizing image boundaries. The architecture 300 of the proposed framework is shown in FIG. 3.
[0073] With reference to FIG 3, a metalens image 301 is provided as an input image to a restoration model 302. The metalens image 301 may be an image captured through a metalens system, the image may include degradation caused by metalens optics, such as chromatic aberration or angular aberration.
[0074] The restoration model 302 is configured to receive the metalens image 301 to output a reconstructed image 303, mathematically denoted as x. The reconstructed image 303 may be intended to approximate a ground-truth image 304, which represents a corresponding high-quality image of the same or substantially similar scene captured in the metalens image 301.
[0075] In addition to the metalens image 301, the training framework 300 uses coordinate information 305 of a random patch 306. The coordinate information 305 may identify the spatial position of a randomly selected patch 306 within the metalens image 301. An initial map 307 may be generated based on the coordinate information 305. In the illustrated embodiment, the coordinate information 305 is processed using a 1><1 convolution operation. The 1x1 convolution generates or contributes to the initial map 307. In some embodiments, the initial map 307 may represent a spatial prior, positional encoding, or patch-dependent weighting map. A function s(t) may then be applied to the initial map 307 to generate an attention map 308 In other words, the attention map is generated based on a transformation of the initial map 307.
[0076] The attention map 308 is supplied to the restoration model 302 In this manner, the restoration model 302 may be guided by spatial information corresponding to the random patch 306 of the image 301. This allows the restoration model 302 to learn degradation characteristics that vary according to image position, which may be useful where the metalens causes spatially non-uniform degradation.
[0077] In some embodiments, the restoration model 302 may comprises a Non-linear Activation Free Network (NAFNet) as a basic network architecture, which applies randompatch cropping and position embedding to the input image 301 using coordinate information of one or more cropped (random) patches obtained from the metalens image 301.
[0078] In some embodiments, to address the under-constrained problem of restoring degraded images to latent sharp images, adversarial learning in the frequency domain may be applied through a fast Fourier transform (J7) for both the reconstructed image 303 to obtain transformed image 309, and the ground-truth image 304 to obtain transformed image 310. x and X denote the reconstructed image 303 and the ground-truth image 304, respectively. To mitigate the often-overlooked issue of boundary region distortion, the attention map 308, which may be a specialized map, may be designed to integrate PSNR loss to enhance the restoration model’s focus on outer regions.|0079| In some embodiments, the attention map 308 is dynamically updated by a parameter e(e), where e represents the training epoch, thus allowing the model to progressively refine its emphasis on outer preservation throughout training. By reinforcing the restoration model 302 attention to outer regions progressively, such an approach helps improve overall image quality, reducing artifacts and ensuring more precise restoration, particularly in challenging outer areas or boundary regions.
[0080] In some embodiments, during the training stage, the ground-truth image 304, which may be one or more images, may be one or more RGB images, which may be relatively high-resolution, captured by standard cameras. In some embodiments, these images may be displayed on a screen of a user device, such as a laptop, and a metalens camera is then used to capture the corresponding metalens images 301 from the screen. The original captured images 301 may have a resolution of 400 x 400 pixels. In some embodiments, the captured images 301 may be optionally resized to 1280 800 pixels. As shown in the left part of FIG. 3, a 256 x 256 patch (P) is randomly selected from each metalens image 301.
[0081] FIG. 4 shows that the degradation in the outer region of the metalens image 401a, 401b, 401c, is more severe than in the central region 402a, 402b, 402c respectively, due to angular aberration. This indicates that positional information plays a crucial role in understanding and modelling the degradation characteristics of the metalens imaging system.
[0082] As shown in the FIG. 5, the random patch 306 is extracted from a metalens image 301, which may be regarded as a degraded image. Coordinate information corresponding to a spatial location of the extracted patch is processed using a lx 1 convolution function block 501 to generate a coordinate feature map. The extracted patch and the coordinate feature map arecombined to form an input to the restoration model 302. By providing both image content and corresponding coordinate-derived information, the restoration model is enabled to restore the patch based on spatially dependent degradation characteristics of the imaging system.
[0083] Put in another way, the positional embedding PE), i .e. the 1x1 convolution of the patch’s coordinates and the patch is concatenated and used as input for the restoration model, mathematically expressed as X{ — Pi ® PEi. Such an enriched input representation from the coordinates of the random patch 306 helps the restoration model 302 learn spatially variant degradations more effectively, enhancing its ability to restore fine details and preserve structural consistency. During the evaluation and inference stages, the inputs are the fullresolution images after applying a test-time local converter (TLC) to overcome inconsistency of statistical difference in the inference process of the full-resolution image. The TLC may be based on the reference: “Improving Image Restoration by Revisiting Global. Information Aggregation’’ published in Computer Vision — ECCV 2022: 17th European Conference, Tel Aviv, Israel, October 23—27, 2022, Proceedings, Part VII (pp. 53-71) authored by Chu, X., Chen, L., Chen, C, & Lu, X. The TLC is a test-time technique for image restoration networks that converts feature aggregation operations configured as global during training (e.g. global average pooling, global attention, global normalization across all spatial positions) into local aggregation over finite spatial windows during inference, so that features at test time are computed from local regions similar in scale to the cropped patches used in training, thereby reducing the train-test distribution shift in global information and improving restoration performance without any retraining or fine-tuning.
[0084] In operation, TLC slices a feature map input to a global operation into overlapping windows of a chosen height and width, applies the same aggregation function independently within each window (using an efficient prefix-sum implementation so complexity remains comparable to the original global operation), and then uses these window-based local statistics in place of single image-level statistics inside existing modules such as squeeze-and-excitation blocks, instance or group normalization, and transposed self-attention, yielding spatially varying, locally normalized or attended features that preserve compatibility with the original network while adding only negligible computational overhead at inference.
[0085] Following DRMI, the image restoration model employs a Non-linear Activation Free Network (NAFNet) as a restoration backbone. NAFNet is adopted as the network architecture due to its computational efficiency and state-of-the-art performance in imagerestoration. Considering the significant information loss in metalens images caused by severe chromatic and angular aberrations, an adversarial learning scheme is employed to capture the distribution of latent sharp images (ground truth).
[0086] It may be appreciable that NAFNet comprises a convolutional neural network architecture configured to perform image restoration without relying on conventional explicit nonlinear activation functions, such as Rectified Linear Unit (ReLU) and Gaussian Error Linear Unit (GELU), sigmoid, or softmax, in one or more principal processing blocks. Instead, nonlinear feature interaction is achieved through lightweight multiplicative gating operations, residual learning, channel mixing, and spatial convolution. By reducing or eliminating computationally expensive nonlinear activation operations, NAFNet generally provides an efficient architecture suitable for restoring degraded images while maintaining high representational capacity.
[0087] In one implementation, the NAFNet includes an encoder-decoder architecture having a plurality of non-linear activation free blocks arranged at multiple spatial scales. Each block may include normalization, pointwise convolution, depthwise convolution, a featuresplitting operation, a multiplicative gating operation, channel attention, and residual feature aggregation. The multiplicative gating operation may divide an intermediate feature tensor into two feature portions along a channel dimension and perform element-wise multiplication between the feature portions. This operation provides nonlinear feature modulation without requiring an explicit activation function.
[0088] In some embodiments, the NAFNet may receive, as input, degraded image data generated by an optical imaging system, such as a metalens imaging system Because metalens images may exhibit severe chromatic aberration, angular aberration, blur, color misregistration, spatially varying degradation, and other information loss, the NAFNet is trained to map the degraded image data to restored image data corresponding to latent sharp image content. In some embodiments, the NAFNet estimates a restored RGB image directly. In other embodiments, the NAFNet estimates residual image information that is combined with the degraded input image to produce the restored RGB image.
[0089] To improve restoration of metalens images, the NAFNet may be trained together with an adversarial learning scheme. The adversarial learning scheme encourages the restored images generated by the NAFNet to conform to a distribution of latent sharp images represented by ground-truth images. In this manner, the restoration model is encouraged notonly to minimize pixel-wise reconstruction error, but also to generate restored images having realistic structural, textural, and frequency characteristics corresponding to sharp reference images.
[0090] In some embodiments, to mitigate pattern artifacts while preserving spatial-frequency information, RGB images including ground-truth images and restored images output by the NAFNet are transformed into a Fourier domain. The Fourier-domain representation may include amplitude information, phase information, or both. Because phase and high-frequency components can encode edge locations, fine spatial details, and structural image information, use of Fourier-domain data enables the adversarial learning scheme to evaluate restoration quality in a representation that is sensitive to artifacts and loss of sharp detail.
[0091] The Fourier-domain representations of the restored images and the ground-truth images are provided to a discriminator. The discriminator is trained to distinguish between Fourier-domain data corresponding to restored images and Fourier-domain data corresponding to ground-truth images. The NAFNet is trained to generate restored images whose Fourier-domain representations are difficult for the discriminator to distinguish from those of the ground-truth images. As a result, the NAFNet is encouraged to suppress pattern artifacts, recover high-frequency image details, and preserve structural features that may be degraded by chromatic and angular aberrations of the metalens imaging system.
[0092] In some embodiments, the training objective may include a reconstruction loss and an adversarial loss. The reconstruction loss may include one or more of an LI loss, L2 loss, Charbonnier loss, perceptual loss, structural similarity loss, color consistency loss, or frequency-domain loss between a restored image and a corresponding ground-truth image. The adversarial loss may be computed based on an output of the discriminator receiving Fourier-domain representations of restored and ground-truth images. The combined objective enables the restoration model to balance pixel-level fidelity with perceptual and frequency-domain realism.
[0093] By combining the computationally efficient NAFNet restoration backbone with a Fourier-domain adversarial discriminator, the image restoration model is configured to restore metalens images affected by severe aberrations while reducing visually perceptible artifacts. The NAFNet provides efficient spatial-domain restoration, while the Fourier-domain discriminator improves learning of phase consistency, high-frequency detail, and structuralfidelity This combination is particularly advantageous for compact optical systems in which the captured images include spatially varying blur, color distortion, and loss of fine detail.
[0094] To mitigate pattern artifacts while preserving spatial-frequency information, the RGB images including ground-truth and restored ones by the NAFNet are first transformed into the Fourier domain. This transformation ensures a more effective representation of phase, high-frequency details and structural features. The resulting Fourier-space data are then used as input for a discriminator 311, enabling the discriminator 311 to distinguish between restored images and ground truth more effectively, thereby improving the overall restoration quality.
[0095] In some embodiments, a reconstruction loss parameter, which may be a Peak Signal -to-Noise Ratio based loss function, denoted PSNR loss LPSNRis determined by comparing the reconstructed image x with the ground truth image x, and an adversarial loss parameter LAdvis determined by comparing between f(x) and f(x). Put in another way, the PSNR loss quantifies the image fidelity loss by measuring the difference between the restored and groundtruth images, ensuring high reconstruction accuracy Meanwhile, the adversarial loss acts as a prior regularization loss, encouraging the model to generate more perceptually realistic images by aligning the restored image distribution with that of the latent sharp images. Together, these losses balance pixel-level accuracy and perceptual quality, enhancing the overall restoration performance
[0096] In some embodiments, optimizing the restoration model comprises minimising a total loss function, the total loss function comprising the reconstruction loss parameter and the adversarial loss parameter; wherein the reconstruction loss parameter is configured to increase with a mean-squared error between the reconstructed image and the ground-truth image, and is normalised using a maximum signal value of the ground-truth image, and the adversarial loss parameter comprises a discriminator loss parameter and a generator loss parameter computed in a transform domain representative of the reconstructed image and the ground-truth image.
[0097] In some embodiments, the total loss LTotaiis mathematically expressed in Equation (1) as follows.-Total=LpsNR + ^Adv CO
[0098] In some embodiments, the reconstruction loss parameter configured to increase with a mean-squared error between the reconstructed image and the ground-truth image is mathematically expressed in Equation (2) as follows.p2LPSNR(X>X}=—lOlogMSEf(£XtXv) (2)
[0099] In some embodiments, the adversarial loss parameter is mathematically expressed in Equation (3) as follows.WHnrw) = (3)
[0100] As may be seen from the Equations, 2 is the hypermeter for balancing LPSNRand R is the maximum signal value of the ground truth image. MSE is the distance between the ground truth x and reconstructed image x. LAdvand LAdvare adversarial loss of the discriminator (D) and the image restoration model (G) on Fourier domain of ground truth and restored images respectively.
[0101] Tn general, A may be regarded as a balancing hyperparameter that scales the adversarial loss parameter relative to the reconstruction loss parameter.
[0102] As may be appreciated, due to angular aberration, the degradation in the outer regions of metalens images is significantly more severe than in the central region. While positional information has been incorporated to understand and mitigate the distortions introduced by the metalens imaging system, existing DNN-based restoration models may face challenges in accurately reconstructing these outer regions. The primary difficulty arises from the complex and spatially varying nature of distortions, which standard models struggle to generalize across different positions within the image. Consequently, achieving high-fidelity restoration requires an adaptive approach that not only considers positional dependencies but also dynamically refines the reconstruction process to address the non-uniform degradation across the field of view. Hence, an attention map is designed at the patch level. As illustrated in FIG. 6, for a given pixel (x,y), the attention strength or attention magnitude is proportional to its distance-^, calculated from the patch center (xc,yc) of the random patch, ensuring greater emphasis on peripheral regions. In some embodiments, The attention magnitude of a given pixel (x,y) is computed and mathematically expressed in Equation (4) as follows.Att(x, y) = k * y / (x — xc~)2+ (y — yc)2+ b, (4) where k and b are hyperparameters indicating the strength of the attention. In some dm, k = - patch_si ■_ —ze and b = 1 In some embodiments, the loss in Equation ( 1 ) then may be expressed in Equation (5):^Total=LpsNR * Att + ALAdv(5)
[0103] However, experiments revealed that while applying the attention map 308 to the loss function enhanced the restoration of outer regions, it caused a slight decline in the quality of central regions compared to when the attention map 308 was not used. This suggests that carefully controlling when and how the attention map 308 takes effect is crucial for achieving a balanced restoration across the entire image. Proper regulation ensures that both global and local structural information is preserved, leading to a more perceptually faithful restoration. To address this, a control mechanism is designed based on the training epoch- e in Att(x, y) by replacing k with a dynamic variable e(e) instead of a fixed hyperparameter, mathematically expressed in Equation (6) as follows.o; ifJe < 3e(e) = i , (6)-patch_si —ze * - &ma—x; if e > 3 where emaxis the maximum epochs in the training process, eTdenotes the specific epoch at which the attention map begins to take effect, and setat . This allows the model to adaptively adjust the attention strength and prevents overemphasis on specific regions too early over the course of training, ensuring a balanced focus on both outer and central regions for improved overall restoration quality.
[0104] Put in another way, the determination of the attention magnitude for a pixel at coordinates within the random patch comprises assigning the attention magnitude a value that is a monotonically increasing function of a distance between the pixel and the patch center, the monotonically increasing function being parameterised by at least one first parameter indicative of an attention strength and at least one second parameter indicative of an attention offset, such that pixels located further from the patch center are assigned relatively higher attention strengths.
[0105] In some embodiments, the first parameter may be inversely proportionally to a patch size parameter, and the second parameter is assigned a value of 1. In some embodiments, the first parameter is a dynamic parameter, the dynamic parameter configured in a manner such that the attention magnitude has a reduced or null influence during an initial portion of the training process and a progressively increased influence during a later portion of the training process.
[0106] In some embodiments, the training progress corresponds to a training epoch index, and the strength is maintained at or near zero up to a threshold epoch and then increased in a continuous manner as the training epoch index exceeds the threshold epoch.
[0107] The framework 300 of FIG. 3 may be regarded as an end-to-end based method. In some embodiments, the proposed attention map guided loss function of framework 300 and Equations (4) to (6) to can be applied to a neural-augmented restoration approach, wherein each captured image may be divided into a plurality of blocks. Initial point spread functions (PSFs) of all the blocks may be first measured. The captured image(s) are then deblurred using the initial PSFs and the proposed loss function. The PSF is refined for each block by solving a simple quadratic optimization problem. The refined PSFs are finally adopted to restore the desired image together with the proposed loss function.
[0108] Experiments are carried out based on the proposed framework 300. The framework is evaluated on two datasets as follows. (1) The DIV2K dataset consisting 698 images with a resolution of 1280 x 800. Among them, 628 images are allocated for training, while the remaining 70 images are used for evaluation. (2) The generated dataset, which consists of 1,134 high-resolution images of various objects, ensuring diverse environmental conditions. The images are resized to a fixed resolution and the central portion may be extracted to ensure they fit perfectly on a monitor. These processed images serve as ground-truth images 304 and are displayed on the monitor, where a metalens imaging system captures the screen to generate corresponding metalens images 301. Of the 1,134 images, 994 are used for training, while the remaining 140 are reserved for evaluation.
[0109] In terms of metrics, PSNR (Peak Signal-to-Noise Ratio), SSIM (Structural Similarity Index Measure) and LPIPS (Learned Perceptual Image Patch Similarity), representative image quality metrics, are used to evaluate the images reconstructed by the proposed framework. The PSNR is mathematically expressed in Equation (7) as follows.p2 PSM? = 10!o^ (7)PSNR serves only as an approximation of human visual perception in assessing reconstruction quality, as it relies on MSE, which measures pixel-level intensity differences between the reconstructed and ground-truth images. SSIM is employed to evaluate the perceived visual quality of restored images more accurately. SSIM considers three key factors in its assessment: luminance, contrast, and structural similarity between the reconstructed and ground -truth images.
[0110] To evaluate the perceptual quality of images, LPIPS is computed by feeding two images into a pre-trained network (e.g., AlexNet) and measuring the similarity between the extracted features. A lower LPIPS value indicates greater similarity between the images in terms of perceptual features.
[0111] In terms of implementation, to balance performance and training time in the proposed framework, the patch size is set to 256 x 256 and the batch size is set to 16. Additionally, random data augmentations is applied, including horizontal flips, vertical flips, and transpose transformations Under these settings, the coordinate information of the patches was appropriately loaded. During training, the model was trained for 600,000 iterations. An optimizer, the AdamW optimizer, was employed for the image restoration model, with an initial learning rate of 3 X 10-4, which gradually decreased to 10-7following a cosine annealing schedule, the betas were [0.9, 0.9] . The training was conducted using an NVIDIA GeForce RTX 3090 GPU with 24GB of memory.
[0112] To validate the effectiveness of the framework, the performance is compared with DRMI. Since the original input size for DRMI is 1280 x 800, while the images in the dataset have a resolution of 400 x 400, the dataset images are resized to 1280 x 800 before conducting the comparison.
[0113] Table 1 presents the performance comparison between the framework and DRMI on the generated dataset using PSNR, SSIM, and LPIPS metrics. The results demonstrate that the proposed framework consistently outperforms DRMI across all evaluation metrics, highlighting the effectiveness of the proposed approach. Notably, the incorporation of the attention map contributes significantly to this improvement by enhancing the restoration quality, particularly in the outer regions of the metalens images while maintaining fidelity in the central regions. These findings validate the advantages of the proposed framework in achieving superior image restoration performance.
[0114] Table 2 presents the performance comparison between the proposed framework 300 and DRMI on the DIV2K dataset. The proposed framework consistently outperforms DRMI across all evaluated metrics, demonstrating its effectiveness. These results further validate the impact of the attention map-guided loss in enhancing metalens image restoration performance.Table 1: Comparison between performance of the proposed framework and that of DRMI on the _ _ generated dataset. _ _PSNRf SSIMf LPIPSj,DRIM 29.382 0.892 0.190Ours 29.525 0.896 0.187Table 2: Comparison between performance of the proposed framework and that of DRMI on DIV2K dataset.PSNRT SSIMf LPIPSfDRIM 22.095 0.692 0.432Ours 22.165 0.693 0.427
[0115] FIG. 7 and FIG. 8 present a visual comparison of restored images generated by the proposed framework and DRMI on the generated dataset and DIV2K dataset. It was observed that the enlarged areas in the results appear sharper than those in DRMI, indicating that the proposed framework achieves superior restoration quality, especially in the outer regions of the images.
[0116] It may be appreciable that through both qualitative and quantitative evaluations, the proposed framework was observed to consistently outperform DRMI across multiple metrics, including PSNR, SSIM, and LPIPS. Such an enhancement can be attributed to the incorporation of an attention-based mechanism, which effectively compensates for spatially varying degradations by emphasizing critical regions during restoration.
[0117] As may be appreciable, one of the key limitations of DRMI is its inability to recover fine details in the outer regions of metalens images, where angular aberrations are most severe. As shown in FIG. 7, the proposed framework produces sharper and more visually coherent reconstructions, particularly in these outer regions. This suggests that the proposed approach better preserves both global and local structural information, leading to a more perceptually faithful restoration.
[0118] Moreover, the proposed method employs a more flexible training strategy, where the attention mechanism dynamically adjusts its influence based on the training epoch. This prevents overemphasis on specific regions too early in the training process, thereby balancing restoration quality across the entire image. In contrast, DRMI applies a uniform restoration approach, which does not account for spatially variant distortions as effectively.|00119] According to another aspect of the present disclosure there is provided a metalensbased imaging system, comprising: a metalens configured to form an optical image of a scene;an image sensor configured to capture a metalens image corresponding to the optical image; one or more processors configured to: receive the metalens image; obtain coordinate information corresponding to a random patch of the metalens image; process the metalens image and the coordinate information by an image restoration model to generate a restored output image; wherein the image restoration model has been trained based on: generate, using the image restoration model, a reconstructed image of the at least one input image; compare the reconstructed image with a ground-truth image to determine a reconstruction loss parameter; generate a Fourier transform of the reconstructed image and a Fourier transform of the ground-truth image; process the Fourier transform of the reconstructed image and the Fourier transform of the ground-truth image using a discriminator to determine an adversarial loss parameter; and optimize the restoration model based on the reconstruction loss parameter and the adversarial loss parameter.
[0120] In some embodiments, the proposed framework may be applied to one or more of the following real-world applications.
[0121] Microscopy: Metalenses are increasingly used in compact, high-resolution optical microscopes. The restoration framework can enhance the quality of microscopic images, aiding in more accurate medical diagnostics and biological research.
[0122] Remote Sensing and Satellite Imaging: Metalenses have potential applications in lightweight optical systems for satellite imaging.
[0123] Augmented reality AR / virtual reality VR: Metalenses are being explored for use in next-generation AR / VR headsets due to their compact form factor.
[0124] Computational Photography and Mobile Imaging: Smartphones and compact cameras are increasingly incorporating metalenses to reduce bulk while maintaining optical performance.
[0125] In some embodiments, the metalens-based imaging system further comprises at least one of a microscopy system, a remote sensing system, a satellite imaging system, an augmented reality system, a virtual reality system, a mobile imaging device, a smartphone camera, a compact camera, or a computational photography device.
[0126] In some embodiments, the one or more processors are further configured to output the restored output image for diagnostic analysis, biological measurement, cell identification, tissue classification, image segmentation, or computer-assisted microscopy.
[0127] In some embodiments, the metalens-based imaging system is a remote sensing or satellite imaging system, and wherein the metalens and the image sensor form part of a lightweight optical imaging payload.
[0128] In some embodiments, the metalens-based imaging system is a mobile imaging device, smartphone, tablet, wearable camera, compact camera, or computational photography device.
[0129] In summary, a method for restoring an image captured by an optical sensor comprising metalens is disclosed. The method comprising obtaining the image captured by the optical sensor, generating a plurality of patches based on the image, wherein each patch of the plurality of patches is embedded with a set of coordinate information; inputting the plurality of patches to an image processing model, wherein the image processing model is trained based on a weighed representation of the image, wherein a plurality of weights in a peripheral region of the image is updated at least once during a training session; and a loss function, wherein the loss function comprises a weighted difference between a predicted image and a training image, and generating a restored image using the image processing model.
[0130] Based on the abovementioned method, the image processing model is trained using adversarial learning, wherein the adversarial learning is performed in a frequency-domain representation of the predicted image and the training image, and wherein the frequencydomain representation is obtained through a Fast Fourier Transform.
[0131] While the disclosure has been particularly shown and described with reference to specific embodiments, it should be understood by those skilled in the art that various changes in form and detail may be made therein without departing from the spirit and scope of the disclosure as defined by the appended claims. The scope of the disclosure is thus indicated by the appended claims and all changes which come within the meaning and range of equivalency of the claims are therefore intended to be embraced.
Claims
CLAIMS1. A computer-implemented method for processing images captured by a metalens-based imaging system, the method comprising:receiving, by one or more processors, at least one input image originating from a metalens-based imaging system;obtaining, by the one or more processors, coordinate information corresponding to a random patch of the at least one input image;processing the at least one input image and the coordinate information, by an image restoration model executed by the one or more processors, to generate a restored output image;wherein the image restoration model has been obtained by a training process comprising:generating, using the image restoration model, a reconstructed image of the at least one input image;comparing the reconstructed image with a ground-truth image to determine a reconstruction loss parameter;generating a Fourier transform of the reconstructed image and a Fourier transform of the ground-truth image;processing the Fourier transform of the reconstructed image and the Fourier transform of the ground-truth image using a discriminator to determine an adversarial loss parameter; andoptimizing the restoration model based on the reconstruction loss parameter and the adversarial loss parameter.
2. The method of claim 1, wherein the training process further comprises generating an initial map based on the coordinate information, and generating an attention map based on a transformation of the initial map.
3. The method of claim 2, wherein the attention map comprises an attention magnitude proportional to a distance-d parameter calculated from a patch center of the random patch of the at least one input image.
4. The method of claim 3, further comprises determining the attention magnitude for a pixel at coordinates within the random patch, the determination comprising assigning the attention magnitude a value that is a monotonically increasing function of a distance between the pixel and the patch center, the monotonically increasing function being parameterised by at least one first parameter indicative of an attention strength and at least one second parameter indicative of an attention offset, such that pixels located further from the patch center are assigned relatively higher attention strengths.
5. The method of claim 4, wherein the first parameter is inversely proportionally to a patch size parameter, and the second parameter is assigned a value of 1.
6. The method of claim 4, wherein the first parameter is a dynamic parameter, the dynamic parameter configured in a manner such that the attention magnitude has a reduced or null influence during an initial portion of the training process and a progressively increased influence during a later portion of the training process.
7. The method of claim 6, wherein the training progress corresponds to a training epoch index, and the strength is maintained at or near zero up to a threshold epoch and then increased in a continuous manner as the training epoch index exceeds the threshold epoch.
8. The method of any of claims 1 to 7, further comprising processing coordinate information corresponding to a spatial location of the random patch using a 1><1 convolution function to generate a coordinate feature map, and combining the random patch with the coordinate feature map to generate the initial map.
9. The method of any of claims 1 to 8, wherein the reconstruction loss comprises a Peak Signal-to-Noise Ratio (PSNR) based loss function.
10. The method of any of claims 1 to 9, wherein the adversarial loss is calculated based on an adversarial learning scheme in a frequency domain.
11. The method of any of claims 1 to 10, wherein the discriminator is configured to classify a Fourier-domain representation as corresponding to the ground-truth image or the reconstructed image.
12. The method of claim 11, wherein the ground-truth image is an RGB image captured by a standard camera.
13. The method of claim 12, wherein optimizing the restoration model comprises minimising a total loss function, the total loss function comprising the reconstruction loss parameter and the adversarial loss parameter; wherein the reconstruction loss parameter is configured to increase with a mean-squared error between the reconstructed image and the ground-truth image, and is normalised using a maximum signal value of the ground-truth image, and the adversarial loss parameter comprises a discriminator loss parameter and a generator loss parameter computed in a transform domain representative of the reconstructed image and the ground-truth image.
14. The method of claim 13, wherein the total loss function further comprises a balancing hyperparameter that scales the adversarial loss parameter relative to the reconstruction loss parameter.
15. A metalens-based imaging system, comprising:a metalens configured to form an optical image of a scene;an image sensor configured to capture a metalens image corresponding to the optical image;one or more processors configured to:receive the metalens image;obtain coordinate information corresponding to a random patch of the metalens image; process the metalens image and the coordinate information by an image restoration model to generate a restored output image;wherein the image restoration model has been trained based on:generate, using the image restoration model, a reconstructed image of the at least one input image;compare the reconstructed image with a ground-truth image to determine a reconstruction loss parameter;generate a F ourier transform of the reconstructed image and a F ourier transform of the ground-truth image;process the Fourier transform of the reconstructed image and the Fourier transform of the ground-truth image using a discriminator to determine an adversarial loss parameter; and optimize the restoration model based on the reconstruction loss parameter and the adversarial loss parameter.
16. The metalens-based imaging system of claim 15, further comprising at least one of a microscopy system, a remote sensing system, a satellite imaging system, an augmented reality system, a virtual reality system, a mobile imaging device, a smartphone camera, a compact camera, or a computational photography device.
17. The metalens-based imaging system of claim 15 or 16, wherein the one or more processors are further configured to output the restored output image for diagnostic analysis, biological measurement, cell identification, tissue classification, image segmentation, or computer-assisted microscopy.
18. The metalens-based imaging system of any of claims 15 to 17, wherein the metalensbased imaging system is a remote sensing or satellite imaging system, and wherein the metalens and the image sensor form part of a lightweight optical imaging payload.
19. The metalens-based imaging system of any of claims 15 to 18, wherein the metalensbased imaging system is a mobile imaging device, smartphone, tablet, wearable camera, compact camera, or computational photography device.
20. A non-transitory computer-readable medium storing instructions which, when executed by one or more processors, cause the one or more processors to perform the method of any of claims 1 to 14.
