1 Background

Speckle can be explained using the Hugen’s principle by considering the microscopic structure of the surface [1]. Since 1948 before the advent of laser, the aperture filtering suggested annular shape for the sake of resolution improvement realized by many authors like in [2,3,4,5,6,7,8,9,10,11].

Aperture filtering methods proposed and investigated in 1983 where linear and quadratic apertures are studied in [12, 13]. Recently, a linear-quadratic arrangement is investigated in [14]. Different applications on speckle microscopic and medical images are investigated by the author using different filtering apertures e.g., in [15,16,17]. Novel techniques for the generation of customized speckle with a tailored speckle-size distributions are presented in [18,19,20].

Recently, design of microelectromechanical systems (MEMS) devices with rectangular optical apertures was fabricated and used for the detection of transparent biological cells [21]. An interesting recent work provides that different approaches of mathematical modeling are considered in [21, 22]. For example, dynamic behavior of two predators-one prey model with generalized functional response and time-fractional derivative is outlined and discussed in [21].

In this paper, we propose new rectangular arrangement of apertures of two-fold symmetry with annular central disc, and we compute the PSF and the autocorrelation corresponding to these apertures. In addition, an application on speckle imaging modulated by the aperture is given. Theoretical analysis, results and discussion are followed by a conclusion.

2 Methods

A rectangular aperture composed of four equal squares placed at equal distances from the center. The total matrix of rectangular shape has dimensions 1024 × 1024 pixels. While, the dimensions of each square (x0, y0) = 128 × 128 pixels and located along the cartesian coordinates (x, y) at distances ± xd and ± yd as shown in the Fig. 1a. A central obstruction is governed by the difference between two circles where the width of the annulus = 32 pixels. A uniform illumination emitted from laser beam is incident upon this new aperture, hence the amplitude transmittance is written as follows:

$$\begin{aligned} A\left( {x,y} \right) & & = rect\left( {x - x_{d} ,y} \right) + rect\left( {x + x_{d} ,y} \right) + rect\left( {x,y - y_{d} } \right) \\ & \quad + rect\left( {x,y + y_{d} } \right) + circ\left( {r_{1} } \right) - circ\left( {r_{2} } \right) \\ \end{aligned}$$
(1)
Fig. 1
figure 1

a An aperture composed of four squares arranged symmetrically along the cartesian coordinates and obstructed by a circular annulus placed in the center of diameter 128 pixels and annular width 16 pixels. Each square has dimensions 128 × 128 pixels compared with the whole matrix of dimensions 1024 × 1024 pixels. b An aperture composed of four squares arranged symmetrically along the cartesian coordinates and obstructed by a square annulus placed in the center of width 16 pixels. Each square has dimensions 128 × 128 pixels and shifted by 256 pixels along the coordinates. c An aperture composed of two squares arranged symmetrically along the y-axis, and two rectangles arranged along x-axis and obstructed by an annular rectangle placed in the center. Each square has dimensions 128 × 128 pixels and shifted by 256 pixels along the coordinates, and each rectangle has dimensions 128 × 512 pixels and shifted by ± 256 pixels from the x-axis. d An aperture composed of a square of dimensions 640 × 640 pixels

where

$$rect\left( {x,y} \right) = 1; \left| {\frac{x}{{x_{0} }}\left| { \le 1 , } \right|\frac{y}{{y_{0} }}} \right| \le 1,$$
$$circ\left({r}_{1}\right)=1; |\frac{r}{{r}_{01}}|\le 1, \quad {\text{and }} \quad circ\left({r}_{2}\right)=1; |\frac{r}{{r}_{02}}|\le 1$$

The Point Spread Function (PSF) corresponding to the novel aperture described by Eq. (1) is obtained by operating the Fourier transform as follows:

$$\begin{aligned} h\left( {x,y} \right) & = F.T. \left\{ {A\left( {x,y} \right)} \right\} \\ & = F.T. \{ rect\left( {x - x_{d} ,y} \right) + rect\left( {x + x_{d} ,y} \right) + rect\left( {x,y - y_{d} } \right) \\ & \quad + rect\left( {x,y + y_{d} } \right) + circ\left( {r_{1} } \right) - circ\left( {r_{2} } \right)\} \\ & =F.T. \{ rect\left( {x,y} \right) \otimes \delta ( x-x_{d},y)\} + F.T. \{ rect\left( {x,y} \right) \otimes \delta (x+x_{d},y)\} \\ & \quad F.T. \{ rect\left( {x,y} \right) \otimes \delta ( x,y - y_{d} )\} + F.T. \{ rect\left( {x,y} \right) \otimes \delta (x,y + y_{d} )\} \\ & \quad + F.T. \left\{ {circ\left( {r_{1} } \right)} \right\} - F.T. \left\{ {circ\left( {r_{2} } \right)} \right\} \\ \end{aligned}$$
(2)

The 1st transformation is solved taking in consideration that convolution of two functions is equivalent to simple product of the F.T. of each function, hence we write:

\(F.T. \{rect\left(x,y\right)\otimes\) δ(\(x-{x}_{d},y)\}=F.T.\{rect\left(x,y\right)\}. F.T. \{\updelta ( x-{x}_{d},y)\}\)

It is known that the Fourier transform of rect function is written as:

$$F.T.\left\{rect\left(x,y\right)\right\}={x}_{0}{y}_{0}\left[\frac{\mathrm{sin}\left(\frac{\pi {x}_{0}u}{\lambda f}\right)}{\left(\frac{\pi {x}_{0}u}{\lambda f}\right)}\right]\left[ \frac{\mathrm{sin}\left(\frac{\pi {y}_{0}v}{\lambda f}\right)}{\left(\frac{\pi {y}_{0}v}{\lambda f}\right)}\right]={x}_{0}{y}_{0} sinc\left({x}^{^{\prime}}\right)sinc\left({y}^{^{\prime}}\right)$$
(3)

where sinc function is defined as:

sinc(x’) = sin (πx’)/πx’, x’ = x0 u/λf, and a similar expression for sinc(y’).

Also, the Fourier transform of circ function as obtained as follows [11]:

$${\text{F}}.{\text{T}}. \, \left\{ {{\text{circ}}\left( {r_{{1}} } \right)} \right\} = {2}J_{{1}} \left( {Z_{{1}} } \right)/Z_{{1}} ,{\text{ and F}}.{\text{T}}. \, \left\{ {{\text{circ}}\left( {r_{{2}} } \right)} \right\} = {2}J_{{1}} \left( {Z_{{2}} } \right)/Z_{{2}}$$
(4)

where Z1 = 2πr01w1/λf and Z2 = 2πr02w2/λf represent the reduced coordinates in the Fourier planes corresponding to the external and internal circles of radii r01 and r02. \({w}_{\mathrm{1,2}}=\sqrt{{u}^{2}+{v}^{2 }}\,is\,the\,radial\,coordinate\,in\,the\,Fourier\,plane\) \(corresponding\,to\,each\,circle.\)

The Fourier transform of shifted dirac-delta function gives inclined plane wave as:

$$\begin{aligned}F.T. \left\{\updelta \left( x-x_d,y\right)\right\} & = \mathop {\iint }\limits_{ - \infty }^{\infty }\left\{\updelta \left( x-x_d,y\right)\right\} \exp \left[ { - \frac{j2\pi}{\lambda f}\left( {xu + yv} \right)} \right] {\text{d}}x{\text{d}}y \\ & = \exp \left( { - \frac{{j2\pi x_{d} u}}{\lambda f}} \right)\mathop {\iint }\limits_{ - \infty }^{\infty }\left\{\updelta \left( x-x_d,y\right)\right\} \exp \left[ {- \frac{j2\pi}{\lambda f}(\left( {x - x_{d} )u + yv} \right)} \right] {\text{d}}x{\text{d}}y \\ & = \exp \left( { - \frac{{j2\pi x_{d} u}}{\lambda f}} \right) \\ \end{aligned}$$
(5)

Similar expressions are obtained for the other shift of the dirac-delta function as follows:

$$F.T. \left\{\updelta \left( x+{x}_{d},y\right)\right\}=\mathrm{exp} \left(+\frac{j2\pi {x}_{d}u}{\lambda f}\right)$$
(6)
$$F.T. \left\{\updelta \left( x,y-{y}_{d}\right)\right\}=\mathrm{exp} \left(-\frac{j2\pi {y}_{d}v}{\lambda f}\right)$$
(7)
$$F.T. \left\{\updelta \left( x,y+{y}_{d}\right)\right\}=\mathrm{exp} \left(+\frac{j2\pi {y}_{d}v}{\lambda f}\right)$$
(8)

Plugging Eqs. (38) in Eq. (2), we get:

$$\begin{aligned} h\left( {x,y} \right) & = x_{0} y_{0} {\text{sinc}}\left( {x^{\prime}} \right){\text{sinc}}\left( {y^{\prime}} \right) \\ & \quad + \left\{ {\exp \left( { - \frac{{j2x_{d} u}}{f}} \right) + \exp \left( { + \frac{{j2x_{d} u}}{f}} \right) + {\text{exp}} \left( { - \frac{{j2y_{d} v}}{f}} \right) + {\text{exp}} \left( { + \frac{{j2y_{d} v}}{f}} \right)} \right\} \\ & \quad + \left\{ {\frac{{2J_{1} \left( {Z_{1} } \right)}}{{Z_{1} }} - \frac{{2J_{1} \left( {Z_{2} } \right)}}{{Z_{2} }}} \right\} \\ \end{aligned}$$
(9)

Hence, the PSF is finally written as follows:

$$\begin{aligned} h\left( {x,y} \right) & = 2x_{0} y_{0} {\text{sinc}}\left( {x^{\prime}} \right){\text{sinc}}\left( {y^{\prime}} \right)\left\{ {{\text{cos}}\left( {\frac{{2x_{d} u}}{f}} \right) + {\text{cos}} \left( {\frac{{2y_{d} v}}{f}} \right)} \right\} \\ & \quad + \left\{ {\frac{{2J_{1} \left( {Z_{1} } \right)}}{{Z_{1} }} - \frac{{2J_{1} \left( {Z_{2} } \right)}}{{Z_{2} }}} \right\} \\ \end{aligned}$$
(10)

Equation (10) is rewritten as follows:

$$\begin{aligned} h\left( {x,y} \right) & = 4x_{0} y_{0} {\text{sinc}}\left( {x^{\prime}} \right){\text{sinc}}\left( {y^{\prime}} \right)\left\{ {\cos \left( {\frac{{\left( {x_{d} u + y_{d} v} \right)}}{f}} \right){\text{cos}}\left( {\frac{{\left( {x_{d} u - y_{d} v} \right)}}{f}} \right) } \right\} \\ & \quad + \left\{ {\frac{{2J_{1} \left( {Z_{1} } \right)}}{{Z_{1} }} - \frac{{2J_{1} \left( {Z_{2} } \right)}}{{Z_{2} }}} \right\} \\ \end{aligned}$$
(11)

The intensity impulse response is computed from the modulus square of Eq. (11) as follows:

$$\begin{aligned} I\left( {x,y} \right) \\ & = 16 x_{0}^{2} y_{0}^{2} {\text{sinc}}^{2} \left( {x^{\prime}} \right){\text{sinc}}^{2} \left( {y^{\prime}} \right)\left\{ {\cos^{2} \left( {\frac{{\left( {x_{d} u + y_{d} v} \right)}}{f}} \right){\text{cos}}^{2} \left( {\frac{{\left( {x_{d} u - y_{d} v} \right)}}{f}} \right) } \right\} \\ & \quad + 8x_{0} y_{0} {\text{sinc}}\left( {x^{\prime}} \right){\text{sinc}}\left( {y^{\prime}} \right)\left\{ {\cos \left( {\frac{{\left( {x_{d} u + y_{d} v} \right)}}{f}} \right)cos\left( {\frac{{\left( {x_{d} u - y_{d} v} \right)}}{f}} \right) } \right\} \\ & \quad \left\{ {\frac{{2J_{1} \left( {Z_{1} } \right)}}{{Z_{1} }} - \frac{{2J_{1} \left( {Z_{2} } \right)}}{{Z_{2} }}} \right\} + \left\{ {\frac{{2J_{1} \left( {Z_{1} } \right)}}{{Z_{1} }} - \frac{{2J_{1} \left( {Z_{2} } \right)}}{{Z_{2} }}} \right\}^{2} \\ \end{aligned}$$
(12)

3 Results

The design of the new apertures is shown in the Fig. 1. It is fabricated using a MATLAB code. The aperture composed of four squares arranged symmetrically along the cartesian coordinates and obstructed by an annulus placed in the center is shown as in the Fig. 1a. Each square has dimensions 128 × 128 pixels compared with the whole matrix of dimensions 1024 × 1024 pixels. The total effective aperture in the whole matrix has dimensions of 640 × 640 pixels. Similar aperture is shown in the Fig. 1b while the circular annulus is replaced by square annulus. In addition, an aperture of two symmetric squares arranged along y-axis, and two symmetric rectangles placed along x-axis where the center remains of square annulus that is shown in the Fig. 1c. An effective square aperture of dimensions 640 × 640 pixels is shown in the Fig. 1d.

The PSF corresponding to the apertures under investigation are computed using the FFT technique. The plot of the PSF in the range from 460 pixels up to 560 pixels is shown in the Fig. 2a for the 1st model, while Fig. 2b represents the PSF for the 2nd model, and the Fig. 2c for the PSF for the 3rd model. A comparative result for the PSF corresponding to the effective square is shown in the Fig. 2d.

Fig. 2
figure 2

a The PSF for the aperture shown in the Fig. 1a, in the range from 460 to 560 pixels. The cut-off for the central lope = 55 pixels while the central peak at 54 pixels. FWHM = 1 pixels. b The PSF for the aperture shown in the Fig. 1b, in the range from 460 to 560 pixels. The cut-off for the central lope = 55 pixels while the central peak at 54 pixels. FWHM = 1 pixels. c The PSF for the aperture shown in the Fig. 1c, in the range from 460 to 560 pixels. The cut-off for the central lope = 55 pixels while the central peak at 54 pixels. FWHM = 1 pixels. The side lobes are strengthen compared with that shown in the figure (b). d The PSF for the whole aperture shown in the Fig. 1d, in the same range as in the figure (b). The cut-off for the central lope = 57 pixels while the central peak at 54 pixels. FWHM = 3 pixels

A magnified portion of the plot is shown in the range from 500 pixels up to 526 pixels as in the Fig. 3a–C Fig. 2a–c. The image of the diffraction for the aperture shown in the Fig. 1a is plotted as in the Fig. 4. It is named as the intensity Fourier spectrum or intensity impulse response equals the modulus square of the PSF corresponding to the aperture.

Fig. 3
figure 3

a The PSF for the aperture shown in the Fig. 1a, in the range from 500 to 526 pixels. The cut-off for the central lope = 15 pixels while the central peak at 14 pixels. FWHM = 1 pixels. b The PSF for the aperture shown in the Fig. 1b, in the range from 500 to 526 pixels. The cut-off for the central lope = 15 pixels while the central peak at 14 pixels. FWHM = 1 pixels. c The PSF for the aperture shown in the Fig. 1c, in the range from 500 to 526 pixels. The cut-off for the central lope = 15 pixels while the central peak at 14 pixels. FWHM = 1 pixels. The side lobes are strengthen compared with that shown in the figure (b). d The PSF for the whole square of dimensions 640 × 640 pixels in the same range as in the figure (c). The cut-off for the central lope = 17 pixels while the central peak at 14 pixels. FWHM = 3 pixels

Fig. 4
figure 4

The intensity impulse response corresponding to the aperture shown in the Fig. 1a

The speckle image in presence of the aperture shown in L.H.S., while in the R.H.S., speckle image in absence of the aperture is represented as in the Fig. 5a.

Fig. 5
figure 5

a In the L.H.S., speckle image in presence of the aperture shown in the Fig. 1a, while in the R.H.S., speckle image in absence of the aperture is shown. b In the L.H.S., speckle plot in presence of the aperture, while in the R.H.S., speckle plot in absence of the aperture is shown. The range is from 60 up to 120 pixels.

The corresponding line plots are shown as in the Fig. 5b. The range taken is from 60 up to 120 pixels for both line plots.

The autocorrelation of the apertures shown in the Fig. 1a–d are computed and plotted as shown in the Fig. 6a–d, where the total band width = 1280 pixels which is two times the aperture width of 640 pixels.

Fig. 6
figure 6

a The autocorrelation of the aperture shown in the Fig. 1a, where the total band width = 1280 pixels which is two times the aperture width 640 pixels. b The autocorrelation of the aperture shown in the Fig. 1b, where the total band width = 1280 pixels which is two times the aperture width 640 pixels. c The autocorrelation of the aperture shown in the Fig. 1c, where the total band width = 1280 pixels which is two times the aperture width 640 pixels. d The autocorrelation of the aperture shown in the Fig. 1d, where the total band width = 1280 pixels which is two times the aperture width 640 pixels

4 Discussion

It is shown, referring to the Figs. 2 and 3, that the full width at half-maximum (FWHM) is the same for the suggested models, shown in the Fig. 1, and equals to 1 pixels as compared with the FWHM for the effective aperture which equals 3 pixels. Hence, resolution improvement is attained using the suggested designs of apertures shown in the Fig. 1a–c. The difference between the 1st two models and the 3rd model is apparent in the strengthen of the legs shown in the Fig. 2c as compared with the legs shown in the Fig. 2a, b. In all cases, as shown in the Fig. 2a–c, the strength of the legs of the diffraction pattern (PSF) is considered useful for imaging of extended objects as compared with the weak strength obtained in Fig. 2d.

The magnified portions representing the PSF corresponding to the different models shown in the Fig. 3, is for the discrimination of the PSF structure.

The image of the diffraction from the aperture shown in the Fig. 4 is called the intensity impulse response or the modulus square of the PSF.

The speckle image formed in presence of the aperture using certain diffuser as a randomly distributed function is obtained by applying the Fourier transform (F.T.) upon the multiplication of the aperture and the diffuser illuminated by uniform amplitude emitted from spatially filtered laser beam. Hence, the formed speckle image is the convolution product of the PSF for the aperture and the F.T. corresponding to the diffuser. While the other speckle image shown in the R.H.S. is simply the F.T. corresponding to the same diffuser as in the Fig. 5a.

It is shown that the plots corresponding to the speckle images are different Fig. 5b. In addition, the contrast is decreased in presence of the aperture as expected for the modulating aperture.

The autocorrelation of the apertures has a new shape, as shown in the Fig. 6a–C, which depends on the geometry of the aperture as compared with the known autocorrelation of square aperture giving simple triangular distribution Fig. 6d. It is shown, referring to the Fig. 6a, b, that nearly equal shapes are obtained. In addition, the center has a peak much grater than the two nearly equal side peaks.

While in the Fig. 6c, the ratio of the side peaks to the central peak is much greater than the ratio obtained in the Fig. 6a, b. This is attributed to the unequal zones shown in the Fig. 1c where the arrangement has two conjugate rectangles along x-coordinate instead of two conjugate squares as in the Fig. 6a, b.

5 Conclusions

The resolution computed from the FWHM showed an improvement for the suggested square apertures as compared with the uniform square aperture where the total width is kept constant. In addition, the strength of the legs in the PSF for the suggested apertures is much higher than that corresponding the uniform aperture which makes it useful for imaging of extended objects. Further increase in the legs strength is attained in the 3rd model as shown in the Fig. 2c.

A comparison of the obtained speckle image using the different apertures with that obtained in absence of the aperture showed a remarkable difference since the speckle in case of apertures resulted from the convolution product of the ordinary speckle and the PSF. In addition, the autocorrelation corresponding to the different apertures showed a geometry related to its distribution.

We believe that the suggested apertures may be useful for imaging transparent cells in confocal microscopy since the resulted PSF is further improved as compared with the ordinary rectangular apertures.