Expand this Topic clickable element to expand a topic
Skip to content
Optica Publishing Group

Comparison of methods for end-to-end co-optimization of optical systems and image processing with commercial lens design software

Open Access Open Access

Abstract

We compare three different methods to co-optimize hybrid optical/digital imaging systems with a commercial lens design software: conventional optimization based on spot diagram minimization, optimization of a surrogate criterion based on a priori equalization of modulation transfer functions (MTFs), and minimization of the mean square error (MSE) between the ideal sharp image and the image restored by a unique deconvolution filter. To implement the latter method, we integrate – for the first time to our knowledge – MSE optimization to the software Synopsys CodeV. Taking as an application example the design of a Cooke triplet having good image quality everywhere in the field of view (FoV), we show that it is possible, by leveraging deconvolution during the optimization process, to adapt the spatial distribution of imaging performance to a prescribed goal. We also demonstrate the superiority of MSE co-optimization over the other methods, both in terms of quantitative and visual image quality.

© 2022 Optica Publishing Group under the terms of the Optica Open Access Publishing Agreement

1. Introduction

Currently, almost all imaging systems integrate both a complex optical system and digital processing algorithms. The idea of modeling the entire imaging chain to enable its optimization is not new, but it took several years before the first co-design approaches really appeared. The first to co-design an optical system were Cathey & Dowsky [1,2], focusing on the co-design of a single optical element, a phase mask. The next step is to take into account more complex optical systems and to co-optimize them with digital post-processing algorithms. These methods are referred to as “joint optical-digital design” [3], “integral design strategy” [4], “end-to-end lens design” [5] or “holistic optical-digital hybrid-imaging design” [6] in the literature.

Recent approaches attempt to bypass the expertise of commercial optical designers by using deep learning techniques for co-design [5,711]. However, currently, only commercial optical lens design software (like Zemax OpticStudio or Synopsys CodeV) allows the design of complex optical systems that are truly manufacturable. This is why it is interesting to integrate directly a co-design approach into this type of software. Indeed, the optical designer expertise allow them to use many hints in order to steer the lens optimization process [12], which usually consists of a sequence of local optimizations towards evolving intermediate goals to reach a final realistic design with good final image quality.

This idea of integrating a co-design metric taking into account the entire hybrid system, namely, the mean square error (MSE), is not new in Zemax. Stork & Robinson [13] were the first to implement it, followed by Vettenburg & Harvey [6] and Wang et al. [4]. However, to the best of our knowledge and up to now, no publication claims to have implemented it in CodeV. Moreover, the results obtained with a MSE-based criterion and a commercial lens design software have never been compared to other co-design methods. Indeed, there are several methods to optimize a hybrid system from end-to-end. In particular, another joint optical-digital design method has been developed by Burcklen et al. [3] to facilitate the use of the co-design paradigm by professional optical designers in CodeV. It is based on a "surrogate" merit function that contains terms classically available in lens design software but used in a non-standard way to implicitly take into account image processing.

Our purpose in this work is to implement the MSE-based optimization criterion in the CodeV software, and to compare the obtained performance with two other optimization criteria. The example of application chosen for illustration is the design of a Cooke triplet aimed at providing good image quality over a wide field of view (FoV) of $40^\circ$ ($\pm 20^\circ$). The basic elements of the considered hybrid optical-digital system are described in Sec. 2. In Sec. 3, we apply the "conventional" design method, which considers the existence of the digital processing only after the optimization of the optical system. We establish the performance of the obtained hybrid system by evaluating its modulation transfer functions (MTFs), its effective MTF (taking into account the whole optical system and post-processing) and the visual quality of the restored images. In Sec. 4, we investigate in the same way the method based on a surrogate criterion implemented in Code V [3]. Then, in Sec. 5, we describe the implementation of a method for directly optimizing the MSE under CodeV, and compare the performance of the obtained hybrid system with those provided by the two other methods. We conclude in Sec. 6. on the performance of the three studied methods and on the most efficient way to take into account the existence of a digital post-processing during the lens design process.

2. Description of the hybrid system of interest

This section aims to describe the basic specifications of the optical/digital hybrid systems considered in this article. Their goal is to obtain the best possible image quality over the whole FoV. A hybrid system is made of two blocks: the imaging system (i.e. the optical system and a sensor) and a digital post-processing algorithm. For the purpose of this study, we have chosen to consider a classical lens architecture, a Cooke triplet (described in Sec. 2.1), and a fast deconvolution algorithm, the average Wiener filter (described in Sec. 2.2). The optimization goal and the different investigated methods to achieve it are described in Sec. 2.3.

2.1 Optical architecture

The original purpose of a Cooke Triplet was to serve as a photographic lens. Consisting of three optical elements and a diaphragm, it is recognized for its good correction of aberrations over a wide FoV [14]. Its variants have been the subject of several studies [1517] and it is still used today for the improvement of optical systems [18]. The Cooke triplet is thus a basic “building block” of conventional optical design, which is interesting to study in the context of joint optical/digital design. We will thus use it in this article as a basis for the description of the various optimization methods. We choose to set its focal length to $50$ mm, its aperture to F/4 and its half-FoV to $20^\circ$ (it is enlarged compared to the initial $14^\circ$ half-FoV of the CodeV example from which this triplet is derived).

We will consider that this lens is used with a panchromatic sensor of pixel size about $5$ µm, which sets the Nyquist frequency to $f_N=100$ lp.mm$^{-1}$. Three wavelengths of the visible spectrum are considered, and the constraints applied to the system during optimization are standard (see Supplement 1, section 1).

2.2 Post-processing algorithm

The digital post-processing applied to the image acquired by this system consists of a deconvolution to compensate for the aberrations of the optical lens. We want the deconvolution algorithm to ensure reconstruction regardless of the position in the FoV and to be fast and simple. For this purpose, we choose the linear average Wiener filter:

$$\tilde{w}_\Psi(\nu) = \frac{\frac{1}{K}\sum_{k=1}^K \tilde{h}_{\psi_k}(\nu)^\star}{\frac{1}{K}\sum_{k=1}^K|\tilde{h}_{\psi_k}(\nu)|^2 + \frac{S_{nn}(\nu)}{S_{oo}(\nu)} } ~~~~,$$
where $\Psi = \{\psi _1,\psi _2,\ldots,\psi _K\}$ is a set of $K$ positions in the FoV describing the whole FoV, $\tilde {h}_{\psi _k}(\nu )$ is the local optical transfer function (OTF) of the imaging system at the position $\psi _k$ depending on the spatial frequency $\nu$, $S_{nn}(\nu )$ is the power spectral density (PSD) of the noise and $S_{oo}(\nu )$ is the statistical PSD of the scene. We use a generic ideal image model with a power-law PSD [19,20] $S_{oo}(\nu ) \propto \nu ^{-2.5}$, which well represents natural scenes. The white noise PSD is such that the signal-to-noise ratio (SNR) on the raw image is $34$ dB, with $SNR = 10 \log _{10} \left [ \int S_{oo}(\nu ) d\nu / \int S_{nn}(\nu ) d\nu \right ]$. Note that in order to obtain rotationally symmetrical average Wiener filters, it is better to use a large number of positions in the FoV. In the following, unless otherwise stated, $K = 400$. Furthermore, in view of the expression of the Wiener filter in Eq. (1), we can define the “average MTF” as:
$$\sqrt{\frac{1}{K}\sum_{k=1}^{K}|\tilde{h}_{\psi_k}(\nu)|^2}~~~.$$

2.3 Optimization goal

Our objective is to design a hybrid system with good image quality over the whole FoV. To reach this goal, we will investigate three different design approaches.

  • • The “conventional triplet” is obtained with a conventional lens design criterion based on the minimization of the average size of the spot diagram over the FoV. This method does not take into account the digital post-processing during the optimization process (Sec. 3).
  • • The “EMTF triplet” is obtained by optimizing the surrogate criterion based on conventional optical metrics introduced in [3]. It implicitly takes into account the post-processing (Sec. 4).
  • • The “MMSE” triplets are obtained by minimizing the average MSE between the deconvolved image and an ideally sharp image of the scene. More precisely, the image produced on the sensor at one position $\psi _k$ of the FoV can be modeled by ${h_{\psi _k}(r) * O(r)}$, where $O(r)$ is the sampled ideal scene image ($r$ represents the spatial coordinates) and $*$ denotes the convolution operator. This acquired image is then deconvolved with the filter ${w}_\Psi (r)$, defined in Eq. (1) in the Fourier domain, to restore its sharpness. The restored image at the output of the hybrid optical-digital system can thus be modeled as:
    $$\hat{O}_{\psi_k}(r) = w_\Psi(r) * \left[h_{\psi_k}(r) * O(r) + n(r)\right]$$
    where $n(r)$ is the detection noise. The mean-squared error (MSE) is then defined as:
    $$MSE(\psi_k) = \mbox{E}\left[\int{\left|\hat{O}_{\psi_k}(r)-O(r)\right|^2 dr}\right] ~~~,$$
    where $E[\cdot ]$ represents the mathematical expectation over the noise $n(r)$ and the scene image $O(r)$, which are both assumed to be zero-mean, stationary random processes of PSD $S_{nn}(\nu )$ and $S_{oo}(\nu )$ respectively. The MSE Eq. (4) can in fact be generically expressed in the Fourier domain by the sole noise and statistical scene image PSDs, the OTF $\tilde {h}_{\psi _k}(\nu )$ of the lens and the restoration filter $\tilde {w}_\Psi (\nu )$ [21,22]:
    $$MSE(\psi_k) = \int\left(|\tilde{h}_{\psi_k}(\nu)\tilde{w}_\Psi(\nu)-1|^2 S_{oo}(\nu) + |\tilde{w}_\Psi(\nu)|^2 S_{nn}(\nu)\right)d\nu ~~~.$$
    The lens optimization criterion is then defined as the MSE averaged over all the considered FoV positions $\Psi = \{\psi _1,\psi _2,\ldots,\psi _K\}$:
    $$MSE_{mean}(\Psi) = \frac{1}{K} \sum_{k=1}^{K} MSE (\psi_k)$$
    Note that the average Wiener filter defined in Eq. (1) is the linear deconvolution filter that minimizes $MSE_{mean}$ for a given optical system [22], which leads to overall optimizations in the $MSE_{mean}$ sense. As all (local) optimization methods, its result depends on the starting point. We will consider two different systems: the “MMSE$_1$ triplet” will be obtained by taking the "conventional triplet" as starting point, and the “MMSE$_2$ triplet” will take the EMTF triplet as a starting point (Sec. 5).
In the remainder of this paper, we will describe the optimization of hybrid imaging systems with these three different approaches and compare the obtained performance.

3. Conventional approach

3.1 Definition of the conventional approach

To limit the aberrations in an optical system for a selected number of positions in the FoV, the conventional optimization criterion in CodeV is to minimize the sum of the squares of the root mean square (RMS) diameters of the spot diagrams (calculated from a set of desired positions in the FoV). Other criteria exist natively in CodeV: it is possible to minimize the wavefront error (WFE) or to maximize the value of the modulation transfer function (MTF) at selected spatial frequencies. Whatever the chosen criterion, it is always necessary to impose constraints on some parameters during the optimization (for example, set the focal length to a particular value defined by the specifications, or constrain the thickness at the edges of the lenses to have strictly positive values). This can be done by adding penalization terms like $p^2 \times (f^\prime -f_{target}^\prime )^2$ (where $p$ is a positive constant, defining the “weight” of this term) to the basic criterion, or by strictly enforcing the constraint using Lagrange multiplier. In this study, we optimize the sum of the squares of the RMS diameters of the spot diagrams under common CodeV optical constraints (see Supplement 1, section 1).

The CodeV optical design software uses by default the Levenberg-Marquardt (or Damped least squares) algorithm to minimize this cost function [2326], but other algorithms can be used or implemented [2729]. Since the Levenberg-Marquardt algorithm is a local minimization algorithm, convergence to a global minimum is not guaranteed. The expertise of a lens designer is therefore necessary, both to choose a suitable starting point for the optimization [30] and to steer it towards an acceptable local minimum. Here, the starting point is part of the CodeV example library. The triplet is optimized in the CodeV conventional way by setting as variable all element surface curvatures, element center thicknesses, element distances and also indices ($n$) and Abbe numbers ($V$) of glass materials, letting general constrains (see Supplement 1, section 1) warrant that the system is physically realistic. Once the optimization is done, true existing materials close to the continuously optimized $(n,V)$ values are chosen from the CodeV glass materials library, among the inexpensive and common glasses from the Schott and Ohara catalogs, and the system is re-optimized, resulting in the lens shown in Fig. 1(a) and precisely described in Supplement 1 (section 2), referred to as the “conventional triplet”.

 figure: Fig. 1.

Fig. 1. Scheme of Cooke triplets. (a) “Conventional triplet”. (b) “EMTF triplet”. (c) “MMSE$_1$ triplet”. (d) “MMSE$_2$ triplet”.

Download Full Size | PDF

In order to evaluate the performance of a hybrid system based on this triplet, we will consider several evaluation metrics. In Sec. 3.2, we analyze the MTFs at different positions in the FoV. It is a purely optical metric, useful to compare the raw image qualities on the sensor plane given by the different Cooke triplets. In order to take into account the digital post-processing, we also analyze the effective MTFs (a metric that takes into account the optical system and the post-processing, which will be defined in the next paragraph). Finally, in Section 3.3, we evaluate the global system performance through image simulation.

3.2 Analysis of the MTFs and effective MTFs

Figure 2(a) represents the tangential and sagittal MTFs of the conventional triplet at different positions in the FoV. It has the standard characteristics of a lens of this type: its structure allows a good correction of aberrations, which makes possible to obtain, on the axis, a MTF taking fairly high values (higher than $0.3$ at the Nyquist frequency). However, performance degrades as the FoV increases: at $14^\circ$ half-FoV, the sagittal MTF presents nullings at the spatial frequency $40$ lp.mm$^{-1}$. This means that at (and around) this frequency, for this particular FoV position and orientation, the signal is drowned out in noise and cannot be recovered. The relative frequency-wise noise level (i.e. $\sqrt {S_{nn}(\nu )/S_{oo}(\nu )}$) corresponding to a SNR of $34$ dB is shown with a black dotted line in Fig. 2(a) .

 figure: Fig. 2.

Fig. 2. (First column) MTFs and (Second column) Effective MTFs of the (a-b) conventional triplet, (c-d) EMTF triplet (e-f) MMSE$_1$ triplet (g-h) MMSE$_2$ triplet. The curve legends for the all first column plots are the same as the one in (a) and the legends for the all second column plots are the same as the one in (b).

Download Full Size | PDF

However, the MTFs alone are not representative of the performance of the whole hybrid optical/post-processing system, since they do not take into account the image restoration with post-processing. A more representative metric of the entire hybrid system is the effective MTF defined as:

$$|\tilde{h}_{\psi_k}^{eff}(\nu)| = |\tilde{h}_{\psi_k}(\nu)\times \tilde{w}_\Psi(\nu)| ~~~.$$
In an ideal hybrid system, the effective MTF should be uniformly equal to 1, meaning that the signal components at all spatial frequencies are perfectly restored by the deconvolution filter. Figure 2(b) represents the effective MTFs of the conventional triplet. We can observe that for the highest frequencies (between $85$ lp.mm$^{-1}$ and $100$ lp.mm$^{-1}$), the level of all the effective MTFs drop compared to the corresponding MTFs. This is due to the fact that the Wiener filter makes a compromise (the best in the sense of the MSE) between signal reconstruction and deleterious noise reinforcement. On the contrary, for spatial frequencies lower than $45$ lp.mm$^{-1}$, the effective MTF on axis is enhanced and exceeds $1$, which generates, as we will see later, visual over-contrast. This is due to the fact that the on-axis MTF is higher than the “average MTF” (Eq. (2)) to which the average Wiener filter is adapted. In consequence, this filter “over-compensates” the on-axis MTF. Furthermore, the MTF nullings are still present on the effective MTFs, since information is totally lost at these spatial frequencies and cannot be recovered by the average Wiener filter.

3.3 Analysis of final image quality

Let us now verify the observations made on MTFs and effective MTFs through image simulations. Figure 3 shows the scene used for these simulations. It is a large image, of $5144 \times 5144$ pixels, chosen to obtain a FoV of $40^\circ$ ($\pm 20^\circ$) on the diagonal of the sensor, with a pixel size close to $5$ µm. Several subparts are selected on the raw image, to check the reconstruction of the details at three different positions in the FoV: on axis, intermediary position and extremity. Simulation of the observation of this scene through the Cooke triplet is performed with the image simulation tool of the CodeV software, with $20\times 20$ variable PSFs in the FoV, in order to take into account all the defects of the optical system. The image is then corrupted with a white Gaussian noise so that the SNR is $34$ dB.

 figure: Fig. 3.

Fig. 3. Image of the Gloucester Cathedral (public domain picture) used as a scene for the comparison of Cooke triplets optimized with different methods. Three images are selected for their details and their positions in the FoV (on axis, middle field, extreme field).

Download Full Size | PDF

For the conventional triplet used without deconvolution, the resulting subpart images are shown in the first row of Fig. 4. One observes that the images appear blurred, especially those corresponding to large fields. Noise appears quite low, thanks to the high value of the SNR (34 dB). Figure 4(b) represents the same subparts after post-processing with an average Wiener filter constructed from OTFs corresponding to thirteen different positions in the FoV (see Supplement 1, section 3 for more details). Deconvolution raises the contrast reduced by the optical system, and this can be shown theoretically with the mean image quality (IQ), expressed in dB and defined as

$$IQ_{mean} = 10 \log_{10} \frac{1}{MSE_{mean}(\Psi)} ~~~.$$
It is a decreasing function of $MSE_{mean}$ defined in Eq. (6). It thus increases when the performance is enhanced. Table 1 contains the values of $IQ_{mean}$ for all the Cooke triplets optimized in this article. For the conventional triplet, the $IQ_{mean}$ goes from $12.9$ dB up to $13.5$ dB thanks to deconvolution. Nevertheless, this increase is not homogeneous across the FoV: the on-axis subpart image (Fig. 4(d)) is more contrasted than it should be (according to the ideal image in Fig. 3). The deconvolved middle field image (Fig. 4(e)) appears to be well reconstructed, while the deconvolved extreme field image (Fig. 4(f)) is only slightly more contrasted than the unprocessed subpart (Fig. 4(c)). These observations match the conclusions drawn from the effective MTFs. Indeed, Fig. 2(b), an effective MTF higher than $1$ for low spatial frequencies indicates over contrast, while an effective MTF close to $0$ indicates under contrast (blur).

 figure: Fig. 4.

Fig. 4. Details of the cathedral image obtained with the conventional triplet for an SNR of $34$ dB, (a-b-c) without deconvolution and (d-e-f) with deconvolution.

Download Full Size | PDF

Tables Icon

Table 1. $IQ_{mean}$ before and after deconvolution for the different Cooke triplets.

4. Surrogate criterion based on optical metrics

4.1 Optimization method

Since our optimization goal is to obtain the best possible image quality over the whole FoV, it is possible to define the “best system” as having equivalent performance at any point of the FoV, after deconvolution. Since we have decided to use a single deconvolution filter, this is equivalent to optimizing the optical system under the two following general constraints.

  • • The MTFs at all the positions in the FoV should be nearly equal to each other, so that deconvolution by a unique filter yields equivalent performance across the FoV. To reach this goal, one should implement specific optimization constraints forcing the MTFs at all FoV positions to be as close as possible to each other for a few chosen spatial frequencies.
  • • The MTF values should be maximized to obtain the best possible frequency-wise SNR before deconvolution (and avoid any MTF nullings in the spatial frequency range of interest).
This approach will be called “co-optimization by MTFs equalization”. It should be noted that the maximization of the MTF values is a very important point of this optimization technique. In addition to corresponding well to the goal of obtaining the best possible image quality over the whole FoV, this co-design criterion can be seen as an alternative (a “surrogate”) to the MSE. Indeed, several studies have shown that optimizing performance in terms of MSE over a set of parameters (e.g. depths of field) leads to MTFs that are close to each other [3,31,32]. This criterion can be implemented in various ways in commercial optical software [3]. In this work, we have disabled the default CodeV error function based on the sum of squared spot diagram RMS diameters and only enforced the following user-defined constraints:
  • • Favoring equality between the MTFs at a set of some Y-meridional FoV positions and the on-axis MTF (it is a set of weighted constraints, to allow some latitude and balancing on these equalizations). In order to guarantee the similarity of the MTFs whatever the azimuth, one has to take into account the tangential, sagittal and $45^\circ$ MTFs.
  • • Lower bounding the value of the on-axis MTF (it is an inequality constraint). This constraint acts somewhat like the minimization of the spot diagram diameters in order to get good image quality.
In practice, it is sufficient to enforce similarity of the MTFs at only two or three well chosen spatial frequencies. This method is very simple to implement in an optimization routine and the modifications of the weights of each constraint can be done in an intuitive manner to drive the whole optimization process on its way.

The conventional triplet is used as a starting point. During the optimization process, we use the same variables and the same general constraints as in the former conventional optimization in Sec. 3. (See Supplement 1, section 1). We also use the procedure previously explained to switch from fictitious (n,V) glasses to real catalog materials. This results in the triplet shown in Fig. 1(b), whose precise characteristics are given in Supplement 1 (section 2). It will be referred to as “EMTF triplet”. On a structural point of view, this new configuration has a shape similar to the conventional triplet. The main difference is that the central biconcave lens has become larger and its material has changed (NSF8 instead of NSF10).

4.2 Analysis of MTFs and effective MTFs

Figure 2(c) shows the MTFs obtained with the EMTF triplet. Contrary to the very disparate MTFs of the conventional triplet (Fig. 2(a)), these MTF curves are very close to each other. No MTF (in any field position, and neither in tangential nor in sagittal) presents nullings. On the other hand, they are, on average, lower than in the conventional case. For example, the on-axis MTF, which is quite high in the conventional case, takes values below $0.2$ at a spatial frequency of $40$ lp.mm$^{-1}$, whereas the Nyquist frequency is $100$ lp.mm$^{-1}$. It goes below the relative noise curve at $60$ lp.mm$^{-1}$. The performance on the axis is therefore lower than for the conventional system.

This difference in optical performance is confirmed by the RMS diameter of the spot diagrams, which are much larger - by a factor of about $5$ - in the co-designed case (Fig. 5(b)) than in the conventional case (Fig. 5(a)). The shape of the spot diagrams Fig. 5(b) is characteristic of the presence of strong aperture aberrations (i.e. spherical aberration), which means that the MTF equalization co-optimization method deliberately added aperture aberrations to the original system, most probably to be able to decrease the field-variant aberrations, but also in a special way that does not introduce early MTF nullings.

 figure: Fig. 5.

Fig. 5. Spot diagrams of (a) the conventional triplet and (b) the EMTF triplet.

Download Full Size | PDF

The study of this EMTF triplet would not be complete without considering the digital processing by the average Wiener filter for which it was (implicitly) co-optimized. Fig. 2(d), the effective MTFs obtained after deconvolution are, whatever the field position, close to $1$ up to the spatial frequency $40$ lp.mm$^{-1}$. This means that the reconstruction will be possible for all patterns with frequency below $40$ lp.mm$^{-1}$, regardless of their position within the FoV. This was not the case for the conventional triplet, where the effective MTFs (Fig. 2(b)) took very heterogeneous values, reaching zero at some positions in the field. The effective MTFs of the EMTF triplet smoothly decrease only after $40$ lp.mm$^{-1}$, due to the necessary trade-off made by the average Wiener filter between signal and noise.

4.3 Analysis of final image quality

To compare the performance of the hybrid systems based on optimized triplets, we will use the $IQ_{mean}$ (Eq. (8)), Table 1. It is seen that without deconvolution, the EMTF triplet yields a $IQ_{mean}$ $2$ dB lower than the conventional triplet. After deconvolution, the performance of both triplets is identical: the performance gain by deconvolution is thus very important for the EMTF triplet ($2.6$ dB) and exactly compensates for the drop observed before deconvolution. This large performance gain after deconvolution can be easily seen by comparing the first row (without deconvolution) to the second (with deconvolution) of Fig. 6. In the first case, the images appear extremely blurred, much more than in the conventional case (Fig. 6(a-b-c)). On the other hand, the details appear well restored after deconvolution (Fig. 6(d-e-f)).

 figure: Fig. 6.

Fig. 6. Details of the cathedral image obtained with the EMTF triplet for an SNR of $34$ dB, (a-b-c) without deconvolution and (d-e-f) with deconvolution.

Download Full Size | PDF

In order to facilitate the comparison between the hybrid optical/processing systems, two details of the image are precisely analyzed Fig. 7. They belong to the on-axis subpart image and to the extreme field subpart image. The observation of these two details provides a good understanding of how the differences in MTFs play into the imaging performance. We have already observed that the conventional triplet shows an over contrast in the on-axis position (Fig. 7(c)) compared to the ideal scene image (Fig. 7(a)). This over contrast is due to the excessively high value of the on-axis effective MTF at low spatial frequencies. On the other hand, the effective MTFs for larger fields are relatively low, which means that the reconstruction is poor. In particular Fig. 7(d), the pinnacle ornaments are barely visible. Conversely, the MTFs of the EMTF triplet are very close to each other, which explains that imaging performance is similar for the on-axis detail (Fig. 7(e)) and the extreme field detail (Fig. 7(f)): the contrast is less important on axis than for the conventional triplet, but the reconstruction is better at the extremity of the FoV, where the ornaments of the pinnacle are clearly visible.

 figure: Fig. 7.

Fig. 7. On axis (first column) and the extreme field (second column) details of the cathedral scene. (a-b) Ideal images. (c-d) Conventional triplet and deconvolution. (e-f) EMTF triplet and deconvolution. (g-h) MMSE$_2$ triplet and deconvolution.

Download Full Size | PDF

It can also be noted that with the EMTF triplet, the deconvolved image is slightly more noisy than with the conventional one: this can be seen with the slight “orange skin” effect in the sky, Fig. 7(f). This observation suggests an increased sensitivity to noise of the hybrid system based on the EMTF triplet. This was expected since the MTFs of the EMTF triplet are globally lower than those of the conventional one, so that the frequency-wise SNR before deconvolution is smaller. However, since the MTFs of the EMTF triplet remain globally higher than the noise level, deconvolution is still effective, even in the extreme field (Fig. 7(f)): the noise is increased (and at the origin of the “orange skin” effect), but the signal is clearly enhanced. On the contrary, for the hybrid system based on the conventional triplet (Fig. 7(d)), the noise is not increased, so the sky remains smooth, but the signal is not well reconstructed, as the effective MTF is too low.

To conclude, co-optimization of the Cooke triplet by MTF equalization leads to similar average performance as the conventional triplet, after deconvolution. However, the distribution of the performance over the FoV is different: while the conventional method favors the positions in the field close to the axis at the expense of the extreme fields, the EMTF method homogenizes the performance, as originally intended.

5. MSE as a co-design criterion

5.1 Implementation and use of the MSE criterion

So far, we have used the MSE to evaluate the performance of hybrid systems (through the IQ criterion), but not as a direct co-optimization criterion. An implementation of this criterion has already been done under Zemax [4,6,13], but until recently, it seemed to us impossible to do the same under the other well-known CodeV commercial lens design software, since it was not possible to directly access PSFs (or 2D OTFs) in a user-defined error function during optimization. Using the new features of CodeV version $\ge$ 11.0 (2017) that remove these limitations, we have been able to implement – for the first time to our knowledge - MSE optimization directly into CodeV. The details of the implementation are given in Supplement 1 (section 3). In this section, we co-optimize a Cooke triplet with this method and compare its performance with the two previously described triplets. This allows a fair comparison since all these triplets have been optimized with the the same lens design software.

As for any optimization, the final solution, which corresponds to a local minimum of the criterion, may depend on the chosen starting point. We have thus considered two different starting points. The “MMSE$_1$ triplet”, represented on Fig. 1(c), has been obtained by choosing the conventional triplet as a starting point. The “MMSE$_2$ triplet”, displayed on Fig. 1(d), has been obtained by starting from the EMTF triplet. The detailed characteristics of these two triplets a given in Supplement 1 (section 2). By comparing Fig. 1(c) and Fig. 1(a) on the one hand, and Fig. 1(b) and Fig. 1(d) on the other hand, it is clear that the MMSE triplets have kept the main structural features of their starting points. However, we will see in the following that its imaging performance is different.

5.2 Analysis of MTFs and effective MTFs

Figure 2(e) represents the MTFs of the MMSE$_1$ triplet. We can observe that the on-axis MTF collapses quickly and shows a nulling at $50$ lp.mm$^{-1}$. On the other hand, the other MTFs no longer show any nulling for low spatial frequencies, which is a significant improvement over the conventional system. As a result, Fig. 2(f), the effective MTFs higher than $0.38$ for spatial frequencies under $40$ lp.mm$^{-1}$, which was not the case in the conventional case (Fig. 2(b)). However, the on-axis effective MTF presents a nulling (the same as for the on-axis MTF). The optimization of $MSE_{mean}$ (see Eq. (6)) thus clearly gave priority to the peripheral positions in the FoV over the on-axis MTF, whereas the on-axis MTF is more often favored in conventional optical design because there is naturally less aberration around the optical axis. This evolution was possible because in the MSE-based criterion, the on-axis performance does not have a larger weight than any other field.

Figure 2(g) displays the MTFs of the MMSE$_2$ triplet. The MTFs are close to each other, as for the EMTF triplet. Similarly, the effective MTFs are close to each other (Fig. 2(h)). The MMSE$_2$ triplet is the only system that has high effective MTFs over a wide range of spatial frequencies, with most of its effective MTFs higher than $0.4$ at $60$ lp.mm$^{-1}$. In terms of effective MTFs, it can thus be considered as the best solution.

5.3 Analysis of final image quality

Let us now analyze the obtained image quality. It is seen in Table 1 that the MMSE$_1$ triplet and the MMSE$_2$ triplet both yield enhanced image quality after deconvolution. This was expected since they are optimized to have a smaller $MSE_{mean}$, but the important conclusion is that the performance gain is significant. Indeed, for the MMSE$_1$ triplet, the image quality after deconvolution is increased by $1.1$ dB. This means that the optimization on the MSE, by tightening together the previously disparate MTFs (Fig. 2(a) and Fig. 2(e)), made the deconvolution by the average Wiener filter more efficient.

Similarly, the MMSE$_2$ triplet yields a lower image quality than its starting point (the EMTF triplet) before deconvolution, but a much better one after deconvolution. It shows the best average performance after deconvolution, reaching $IQ_{mean} =16$ dB. The performance gain with respect to the starting point is even larger in this case, since it amounts to $+2.5$ dB. Such a large increase in $IQ_{mean}$ can be explained by the fact that the effective MTFs are close to 1 for a wider range of spatial frequencies.

This increased performance of the MMSE$_2$ triplet is confirmed in the simulated images, Fig. 8. Contrary to the conventional triplet, no over contrast is visible on the restored on-axis subpart image (Fig. 8(d)). The middle field (Fig. 8(e)) and extreme field (Fig. 8(f)) subpart images also appear very well restored. It is possible to observe the reconstruction more in details on Fig. 7(g-h). Compared to the other hybrid systems, we notice that when using MMSE$_2$ triplet, the restored image is slightly more blurred on the axis, but much sharper in the field: it is the method that best reconstructs the pinnacle ornaments. This behavior was predictable from our analysis of the effective MTFs.

 figure: Fig. 8.

Fig. 8. Details of the cathedral image obtained with the MMSE$_2$ triplet for an SNR of $34$ dB, (a-b-c) without deconvolution and (d-e-f) with deconvolution.

Download Full Size | PDF

These results lead to several interesting conclusions. The main one is that the hybrid system based on the MMSE$_2$ triplet has the best performance among the systems considered in this article, both in terms of quantitative and visual image quality. This clearly demonstrates the benefit of implementing MSE-based end-to-end optimization directly in a commercial lens design software. The second conclusion is that both MMSE$_1$ and MMSE$_2$ triplets have kept the characteristics of their starting points in terms of optical architecture and properties (heterogeneity or homogeneity of MTFs). Since the MMSE$_2$ triplet performs better, this shows that, to reach our optimization goal (good image quality at all FoV positions), it was preferable to choose as a starting point a lens having already similar MTFs over the FoV. However, we can also suspect that MSE optimization, as implemented, may have difficulties to “jump out” local minima. The sensitivity of lens design to starting point is a long-standing problem, and a lot of efforts have been done to bring solutions to it in the framework of conventional optical design. An important perspective to the present work is to devote the same efforts to enhance the capacity of MSE-based co-optimization to find globally optimal solutions.

6. Conclusion

In this article, we have compared three different methods to co-optimize a hybrid optical/digital imaging system with commercial lens design software: conventional optimization based on minimization of the RMS diameter of spot diagrams, a surrogate criterion based on near equality of the MTFs and a true MSE criterion taking explicitly into account the digital processing in the optimization process. To implement the latter method, we integrated – for the first time to our knowledge – MSE optimization to the CodeV software. These three methods have been illustrated and compared on a concrete application: the design of a Cooke triplet having good image quality everywhere in the FoV. The obtained results demonstrate the superiority of MSE co-optimization over the other methods, both in terms of quantitative and visual image quality.

Analyzing in detail the different resulting lenses, we have shown that the conventional triplet tends to favor the center of the FoV at the expense of the extreme positions, whereas the hybrid system based on the MSE (the MMSE$_2$ triplet) yields much more homogeneous performance thanks to co-optimization with deconvolution. This homogeneity comes at the expense of the performance on axis, but enable much better performance at peripheral FoV positions. This shows that it is possible, by leveraging deconvolution during the optimization process, to adapt the spatial distribution of imaging performance to a prescribed goal- which was, here, to reach good performance over the whole FoV.

This work has many perspectives. First, we assumed that the deconvolution algorithm was a unique linear filter common to all FoV positions. This post-processing method is clearly not adapted to the conventional triplet, whose MTFs are quite inhomogeneous over the FoV. They are much more homogeneous with the systems resulting from the two other methods, but there is still residual inhomogeneity. To take into account the inhomogeneity of the MTFs over the FoV and improve further the performance, it would be interesting to consider spatially variant post-processing algorithms [33] in the co-optimization process. Furthermore, recent works have proposed to use home-made differentiable ray tracing connected with a deep neural-network [5,711]. Comparison with the approach proposed in this paper, that uses a powerful commercial software and a simpler (and faster) post-processing algorithm, would be very interesting. Moreover, it would be interesting to improve the MSE optimization method, by improving for example its speed of execution, its resilience to the choice of the starting point, and also to study the effect of the SNR parameter, or optimize, using the multi-configuration possibility of the lens design program, an optical system that should optimally work for different apertures (e.g. variable iris diaphragm) and therefore different SNRs.

Acknowledgments

The work reported in this study is supported in part by the Agence de l’Innovation de Défense (AID) that provides half of a PhD fellowship to Alice Fontbonne.

Disclosures

The authors declare no conflicts of interest.

Data availability

Data is available upon request.

Supplemental document

See Supplement 1 for supporting content.

References

1. E. R. Dowski and W. T. Cathey, “Extended depth of field through wave-front coding,” Appl. Opt. 34(11), 1859–1866 (1995). [CrossRef]  

2. W. T. Cathey and E. R. Dowski, “New paradigm for imaging systems,” Appl. Opt. 41(29), 6080–6092 (2002). [CrossRef]  

3. M.-A. Burcklen, H. Sauer, F. Diaz, and F. Goudail, “Joint digital-optical design of complex lenses using a surrogate image quality criterion adapted to commercial optical design software,” Appl. Opt. 57(30), 9005 (2018). [CrossRef]  

4. J. Wang, L. Wang, Y. Yang, R. Gong, X. Shao, C. Liang, and J. Xu, “An integral design strategy combining optical system and image processing to obtain high resolution images,” in Remotely Sensed Data Compression, Communications, and Processing XII, B. Huang, C.-I. Chang, and C. Lee, eds. (SPIE, 2016).

5. Q. Sun, C. Wang, Q. Fu, X. Dun, and W. Heidrich, “End-to-end complex lens design with differentiable ray tracing,” ACM Trans. Graph. 40(4), 1–13 (2021). [CrossRef]  

6. T. Vettenburg and A. R. Harvey, “Holistic optical-digital hybrid-imaging design:wide-field reflective imaging,” Appl. Opt. 52(17), 3931–3936 (2013). [CrossRef]  

7. V. Sitzmann, S. Diamond, Y. Peng, X. Dun, S. Boyd, W. Heidrich, F. Heide, and G. Wetzstein, “End-to-end optimization of optics and image processing for achromatic extended depth of field and super-resolution imaging,” ACM Trans. Graph. 37(4), 1–13 (2018). [CrossRef]  

8. R. Shang, K. Hoffer-Hawlik, F. Wang, G. Situ, and G. P. Luke, “Two-step training deep learning framework for computational imaging without physics priors,” Opt. Express 29(10), 15239 (2021). [CrossRef]  

9. E. Nehme, B. Ferdman, L. E. Weiss, T. Naor, D. Freedman, T. Michaeli, and Y. Shechtman, “Learning optimal wavefront shaping for multi-channel imaging,” IEEE Trans. Pattern Anal. Mach. Intell. 43(7), 2179–2192 (2021). [CrossRef]  

10. Y. Liu, C. Zhang, T. Kou, Y. Li, and J. Shen, “End-to-end computational optics with a singlet lens for large depth-of-field imaging,” Opt. Express 29(18), 28530 (2021). [CrossRef]  

11. A. Halé, P. Trouvé-Peloux, and J.-B. Volatier, “End-to-end sensor and neural network design using differential ray tracing,” Opt. Express 29(21), 34748 (2021). [CrossRef]  

12. R. Fisher, B. Tadic-Galeb, and P. Yoder, Optical System Design, 2 Edition (McGraw-Hill, 2008).

13. D. G. Stork and M. D. Robinson, “Theoretical foundations for joint digital-optical analysis of electro-optical imaging systems,” Appl. Opt. 47(10), B64–B75 (2008). [CrossRef]  

14. H. D. Taylor, “Optical designing as an art,” Trans. Opt. Soc. 24(3), 143–167 (1923). [CrossRef]  

15. K. D. Sharma, “Design of a new five-element cooke triplet derivative,” Appl. Opt. 18(23), 3933 (1979). [CrossRef]  

16. K. D. Sharma, “Four-element lens systems of the cooke triplet family: designs,” Appl. Opt. 19(5), 698 (1980). [CrossRef]  

17. D. M. Vasiljevic, “Optimization of the cooke triplet with various evolution strategies and damped least squares,” in Optical Design and Analysis Software, R. C. Juergens, ed. (SPIE, 1999).

18. T. Stangner, T. Dahlberg, P. Svenmarker, J. Zakrisson, K. Wiklund, L. B. Oddershede, and M. Andersson, “Cooke–triplet tweezers: more compact, robust, and efficient optical tweezers,” Opt. Lett. 43(9), 1990 (2018). [CrossRef]  

19. D. L. Ruderman, “Origins of scaling in natural images,” Vision Res. 37(23), 3385–3398 (1997). [CrossRef]  

20. A. van der Schaaf and J. van Hateren, “Modelling the power spectra of natural images: Statistics and information,” Vision Res. 36(17), 2759–2770 (1996). [CrossRef]  

21. D. Robinson and D. G. Stork, “Joint design of lens systems and digital image processing,” in International Optical Design, (Optical Society of America, 2006), p. WB4.

22. F. Diaz, F. Goudail, B. Loiseaux, and J.-P. Huignard, “Increase in depth of field taking into account deconvolution by optimization of pupil mask,” Opt. Lett. 34(19), 2970–2972 (2009). [CrossRef]  

23. K. Levenberg, “A method for the solution of certain non-linear problems in least squares,” Q. Appl. Math. 2(2), 164–168 (1944). [CrossRef]  

24. D. W. Marquardt, “An algorithm for least-squares estimation of nonlinear parameters,” J. Soc. Ind. Appl. Math. 11(2), 431–441 (1963). [CrossRef]  

25. D. C. Dilworth, “Pseudo-second-derivative matrix and its application to automatic lens design,” Appl. Opt. 17(21), 3372 (1978). [CrossRef]  

26. W. H. Press, S. A. Teukolsky, W. T. Vetterling, and B. P. Flannery, Numerical Recipes in C (2nd Ed.): The Art of Scientific Computing (Cambridge University, New York, NY, USA, 1992).

27. J. R. Rogers, “A new method for the optimization of optical systems: Comparisons and discussions,” in Journée Thématique Calcul Optique, Société Française d’Optique, (2014).

28. T. Houllier and T. Lépine, “Comparing optimization algorithms for conventional and freeform optical design,” Opt. Express 27(13), 18940 (2019). [CrossRef]  

29. F. E. Sahin, “Open-source optimization algorithms for optical design,” Optik 178, 1016–1022 (2019). [CrossRef]  

30. G. Côté, J.-F. Lalonde, and S. Thibault, “Deep learning-enabled framework for automatic lens design starting point generation,” Opt. Express 29(3), 3841 (2021). [CrossRef]  

31. R. Falcón, F. Goudail, C. Kulcsár, and H. Sauer, “Performance limits of binary annular phase masks codesigned for depth-of-field extension,” Opt. Eng. 56(6), 065104 (2017). [CrossRef]  

32. A. Fontbonne, H. Sauer, and F. Goudail, “Theoretical and experimental analysis of co-designed binary phase masks for enhancing the depth of field of panchromatic cameras,” Opt. Eng. 60(03), 033101 (2021). [CrossRef]  

33. L. Denis, E. Thiébaut, F. Soulez, J.-M. Becker, and R. Mourya, “Fast approximations of shift-variant blur,” Int. J. Comput. Vis. 115(3), 253–278 (2015). [CrossRef]  

Supplementary Material (1)

NameDescription
Supplement 1       Supplemental 1

Data availability

Data is available upon request.

Cited By

Optica participates in Crossref's Cited-By Linking service. Citing articles from Optica Publishing Group journals and other participating publishers are listed here.

Alert me when this article is cited.


Figures (8)

Fig. 1.
Fig. 1. Scheme of Cooke triplets. (a) “Conventional triplet”. (b) “EMTF triplet”. (c) “MMSE$_1$ triplet”. (d) “MMSE$_2$ triplet”.
Fig. 2.
Fig. 2. (First column) MTFs and (Second column) Effective MTFs of the (a-b) conventional triplet, (c-d) EMTF triplet (e-f) MMSE$_1$ triplet (g-h) MMSE$_2$ triplet. The curve legends for the all first column plots are the same as the one in (a) and the legends for the all second column plots are the same as the one in (b).
Fig. 3.
Fig. 3. Image of the Gloucester Cathedral (public domain picture) used as a scene for the comparison of Cooke triplets optimized with different methods. Three images are selected for their details and their positions in the FoV (on axis, middle field, extreme field).
Fig. 4.
Fig. 4. Details of the cathedral image obtained with the conventional triplet for an SNR of $34$ dB, (a-b-c) without deconvolution and (d-e-f) with deconvolution.
Fig. 5.
Fig. 5. Spot diagrams of (a) the conventional triplet and (b) the EMTF triplet.
Fig. 6.
Fig. 6. Details of the cathedral image obtained with the EMTF triplet for an SNR of $34$ dB, (a-b-c) without deconvolution and (d-e-f) with deconvolution.
Fig. 7.
Fig. 7. On axis (first column) and the extreme field (second column) details of the cathedral scene. (a-b) Ideal images. (c-d) Conventional triplet and deconvolution. (e-f) EMTF triplet and deconvolution. (g-h) MMSE$_2$ triplet and deconvolution.
Fig. 8.
Fig. 8. Details of the cathedral image obtained with the MMSE$_2$ triplet for an SNR of $34$ dB, (a-b-c) without deconvolution and (d-e-f) with deconvolution.

Tables (1)

Tables Icon

Table 1. I Q m e a n before and after deconvolution for the different Cooke triplets.

Equations (8)

Equations on this page are rendered with MathJax. Learn more.

w ~ Ψ ( ν ) = 1 K k = 1 K h ~ ψ k ( ν ) 1 K k = 1 K | h ~ ψ k ( ν ) | 2 + S n n ( ν ) S o o ( ν )         ,
1 K k = 1 K | h ~ ψ k ( ν ) | 2       .
O ^ ψ k ( r ) = w Ψ ( r ) [ h ψ k ( r ) O ( r ) + n ( r ) ]
M S E ( ψ k ) = E [ | O ^ ψ k ( r ) O ( r ) | 2 d r ]       ,
M S E ( ψ k ) = ( | h ~ ψ k ( ν ) w ~ Ψ ( ν ) 1 | 2 S o o ( ν ) + | w ~ Ψ ( ν ) | 2 S n n ( ν ) ) d ν       .
M S E m e a n ( Ψ ) = 1 K k = 1 K M S E ( ψ k )
| h ~ ψ k e f f ( ν ) | = | h ~ ψ k ( ν ) × w ~ Ψ ( ν ) |       .
I Q m e a n = 10 log 10 1 M S E m e a n ( Ψ )       .
Select as filters


Select Topics Cancel
© Copyright 2024 | Optica Publishing Group. All rights reserved, including rights for text and data mining and training of artificial technologies or similar technologies.