Significance
Edge detection is a fundamental tool in image processing, computing, and machine vision. Compared with digital processes, optical analog approaches show enormous advantages owing to its intrinsic parallel nature for high-speed operation. Recently, optical metamaterials and metasurfaces have performed edge detection via analog spatial differentiation, which shows superior integration capability compared with the traditional bulky system. Unfortunately, experimental realization of optical-edge detection with metamaterials and metasurfaces remains challenging based on previous theoretical proposals. Here, we demonstrated a mechanism to realize an optical spatial differentiator consisting of a designed metasurface sandwiched by two orthogonally aligned linear polarizers. This approach relies on spin-orbit interaction of light and the metasurface, showing versatile edge-detection capability with exceptional quality.
Keywords: edge detection, spatial differentiation, metasurface, Pancharatnam–Berry phase
Abstract
Optical edge detection is a useful method for characterizing boundaries, which is also in the forefront of image processing for object detection. As the field of metamaterials and metasurface is growing fast in an effort to miniaturize optical devices at unprecedented scales, experimental realization of optical edge detection with metamaterials remains a challenge and lags behind theoretical proposals. Here, we propose a mechanism of edge detection based on a Pancharatnam–Berry-phase metasurface. We experimentally demonstrated broadband edge detection using designed dielectric metasurfaces with high optical efficiency. The metasurfaces were fabricated by scanning a focused laser beam inside glass substrate and can be easily integrated with traditional optical components. The proposed edge-detection mechanism may find important applications in image processing, high-contrast microscopy, and real-time object detection on compact optical platforms such as mobile phones and smart cameras.
Edge detection is the first step of human visual perception and is fundamentally important in the human visual system (1). Edge detection significantly reduces the amount of data to be processed, since it extracts meaningful information and preserves important geometric features. To detect the edges of an object, the object information is processed by either digital computation or analog computation. In practice, as an optical analog computation element, spatial differentiator enables massively parallel processing of edge detection from an entire image, which offers advantages over digital computation: It can deal with real-time and continuous image processing with high speed and is power-saving in specialized computational tasks (2–4).
During the past few years, optical metamaterials and metasurfaces have been suggested to perform analog spatial differentiation for edge detection (5–17) which show superior integration capability compared with the traditional bulky system comprising lenses and spatial filters (18). A suitably designed metamaterial structure was theoretically proposed to perform desired mathematical operations including edge detection as light propagates through it (6). Deliberately designed layered structure was also suggested for spatial differentiation when an incident beam is reflected from it (8–10). Plasmonic dark-field microscopy utilizes near-field surface plasmon waves to excite the object, and can be also treated as an efficient approach for edge detection (16). However, to the best of our knowledge, free-space broadband edge detection has not been reported yet because either the system can only be applied for surface imaging (16, 19) or the fabrication involved is too complicated (6, 8–10, 13).
Here, we propose a mechanism to implement an optical spatial differentiator consisting of a designed Pancharatnam–Berry (PB)-phase metasurface inserted between two orthogonally aligned linear polarizers (20–22). Unlike other spatial differentiator approaches, our method does not depend on complex layered structures or critical plasmonic coupling condition, but instead is based on spin-to-orbit interactions. Experiment confirms that broadband optical analog computing enables the edge detection of an object and achieves tunable resolution at the resultant edges. Furthermore, metasurface orientation-dependent edge detection is also demonstrated experimentally.
Concept of Edge-Detection Metasurface
Metasurface has been widely used for splitting the left-handed and right-handed circularly polarized (LCP and RCP) beam to different directions (23–29). Especially, PB phase metasurface is a popular candidate due to its robust and lower recline on precision fabrication. A typical example is illustrated in Fig. 1A, when a linear-polarized plane wave is incident on a PB phase gradient metasurface with phase (assuming the phase gradient direction is along x axis with period of Λ), the LCP and RCP components gain additional phase and (Fig. 1B), respectively. To explain the edge-detection concept of this work, a square-shaped object is illuminated by a linearly polarized (LP) light along x direction. Its electric field distribution can be written as (Fig. 1E) at object/image plane and at Fourier plane (Fig. 1C for the magnitude spectrum). If we introduce a PB phase gradient metasurface at the Fourier plane (Fig. 1D), the output electrical field at image plane can be given as (SI Appendix, Detailed Formulations)
| [1] |
This means that the LCP and RCP component possesses opposite phase gradient, which leads the LCP and RCP images translating a distance of but with opposite directions (Fig. 1F). Here, is the working wavelength and is the focus length. If an analyzer (orthogonal linear polarizer along y direction) is employed upon the images shown in Fig. 1F, it is apparent that only the two shaded areas can go through, indicating the edge-detection function. The final electrical field goes through the whole system and could be rewritten as
| [2] |
If the shift is much smaller than the image profile, is approximately proportional to the first-order spatial differentiation of the input :
| [3] |
Therefore, the proposed edge-detection mechanism can be briefly explained as follows: illuminate an object by linear polarized light and propagate through the metasurface. The left- and right-handed photons with the opposite spin angular momentum acquire opposite extrinsic orbit angular momentum by interacting with the metasurface, as indicated in Eq. 1, which manifests LCP and RCP images with a tiny shift at the image plane. The overlapped LCP and RCP components recombined to LP thus will be eliminated by the analyzer, leaving out only the edge information available for detection.
Fig. 1.
The proposed concept of edge detection based on a designed phase gradient metasurface. (A) When PB phase gradient metasurface is illuminated by collimated LP beam, two separated LCP and RCP beam components are observed. (B) Resultant phase gradient of LCP and RCP component. The Fourier space spectrum (C) and real-space image (E) of a square object. C and E will be changed to D and F, respectively, when a PB phase gradient metasurface is added at the Fourier plane. Blue- and red-shaded areas indicate the resultant edge information along the PB phase gradient direction.
Sample Fabrication and Characterization
As shown in Fig. 2A, the sample is made of form-birefringent nanostructured glass slabs. The diameter of the glass substrate is 2.5 cm, the thickness is 3 mm, and the pattern area of the sample is 8 mm by 8 mm. The metasurface pattern is fabricated by a femtosecond pulse laser inside of glass, 50 μm beneath the surface. Under intense laser irradiation, a plasma of high free-electron density is generated by a multiphoton ionization process. The interference between the plasma and the incident light beam leads to the stripe-like nanostructure as reported (30). By carefully controlling the polarization of incident beam, the desired orientation of the nanostructure, which is perpendicular to this polarization, can be obtained. More fabrication details could be found in our previous work (31).
Fig. 2.
The metasurface embedded in glass. (A) Photograph of a 1-inch-diameter sample. Metasurface patterned area, 8 mm × 8 mm. (Scale bar, 5 mm.) (B) Polariscope optical image of the sample pattern area marked in A. (Scale bar, 25 μm.) The red bars indicate structures orientation in one period. (Inset) SEM image of the induced nanostructure. (Scale bar, 500 nm.)
We utilized the polariscopy method to demonstrate the local optical slow-axis orientation of this birefringent structure (32). As shown in Fig. 2B, crossed linear polarizer imaging under 80× magnification emphasizes the transverse gradient pattern of the optical axis, which corresponds to the dotted square area in Fig. 2A. We can clearly see the local orientation of the microscopic structures, i.e., the slow-axis distribution of laser-induced form birefringence. The red bars indicate the orientation of the slow axis over one period of this sample. The nanostructures are on the order of 30∼100 nm, as indicated from the scanning electron microscope (SEM) image in Fig. 2B, Inset. The structure dimension is much smaller than the working wavelength, therefore we can treat it as a birefringence medium with spatially variant optical slow axis. When the light beam passes through the designed inhomogeneous birefringent medium with locally varying optical axis orientations and homogeneous retardation, it will acquire a spatially varying PB phase (33, 34).
Edge-Detection Experiment
We perform a series of experiments to demonstrate versatile edge-detection capabilities. In the first experiment, we use a photolithography fabricated University of California, San Diego (UCSD) library logo (SI Appendix, Test Object Fabrication and Fig. S1) to test the edge-detection performance at various working wavelengths. The detailed experimental setup is provided in the experiment setup in (SI Appendix, Fig. S2). A 4f system consists of two identical lenses, which are 2f apart from each other. The metasurface is placed at one focal length behind the first lens and one focal length in front of the second lens. The first lens yields the Fourier transform of the object at its back focal plane, which is exactly the position of the metasurface. In turn, the second lens performs another Fourier transform, delivering a duplicate of the object. When the light passes through the 4f system, we obtain two vertically shifted LCP and RCP images with overlapping area being linear-polarized as shown in Fig. 3 A–C. The amount of shift of the two images is difficult to see due to the small phase gradient of the metasurface. To block the overlapping area while preserving circularly polarized edge, we put an analyzer after the metasurface so that only the edges can go through, as displayed in Fig. 3 D–F. The wavelengths are chosen as 430, 500, and 670 nm, which not only confirms the proposed concept of edge detection, but also demonstrates its broadband capability. The broadband property of our metasurface originates from the geometric phase of the nanostructure orientation, which is intrinsically independent of wavelength (31). Additionally, the transfer function of the whole edge-detection system is experimentally measured and provided in SI Appendix, Fig. S3, which shows a typical response for the edge-detection function (16).
Fig. 3.
Broadband edge-detection demonstration. (A–C) The first row shows images without the analyzer; the illumination wavelengths are 430, 500, and 670 nm, respectively. The images are taken with metasurface period Λ of 8,000 μm. (D–F) The second row shows resultant images after adding an analyzer.
Additionally, we demonstrate the tunable resolution of the edge images corresponding to different PB phase gradient period Λ. For this experiment, we choose the UCSD Triton insignia as our object (SI Appendix, Fig. S1B). Fig. 4 A–D shows the photos of four metasurfaces with Λ equal to 500, 750, 1,000, and 8,000 μm. Fig. 4 E–H corresponds to the polariscope optical image of the metasurfaces of the first row, which shows different numbers of period within the same field of view (∼2,000 μm). Similar to Fig. 3, without the analyzer, we can see clearly two horizontally shifted LCP and RCP images, as shown in Fig. 4 I–L. The separation between two images determines how sharp the edge can be resolved, which is also confirmed by the final edge-detection images shown in Fig. 4 M–P. The highest resolution achieved is around 2 μm (Fig. 4P), close to the diffraction limit of the optical system, by using a metasurface with Λ of 8,000 μm. It is worth to note here that these results are taken under the condition of a planar object at the focal plane. Therefore, for thick 3D object, multiple measurements need to be taken by scanning the focal plane over the objects and combine each focal plane result together. In the case of the samples with circular birefringence inclusions, the LCP and RCP components will gain different phases, so that the combined LP components in the overlapped area may not be completely canceled out after the second linear polarizer. Although this indicates the contrast between the edge and the background will be compromised, additional circular birefringence information can be revealed.
Fig. 4.
Edge detection with various resolutions at the wavelength of 500 nm. (A–D) Photographs of the metasurface sample with different phase gradient periods: 500, 750, 1,000, and 8,000 μm, respectively. (E–H) Polariscopy images of the samples in the first row. (Scale bar, 125 μm.) (I–L) Two separated LCP and RCP images without the analyzer. (M–P) Edge image of different samples corresponding to different resolutions.
We also studied the orientation-dependent edge detection. As shown in Fig. 5A, an image of “1960 UCSD” without using the analyzer is represented. Fig. 5 B–D shows the edge images after the analyzer with different orientations of the metasurface. As we expected, the one-dimensional phase gradient metasurface only provides the sensitivity to the edges along the gradient direction, indicated by the white arrows. The metasurface design can be easily extended to 2D edge detection by changing the one-dimensional phase gradient to a radial phase gradient . As numerically shown in SI Appendix, Fig. S4 for 2D edge detection, all edges are clearly revealed.
Fig. 5.
Orientation-dependent edge detection. (A) Original image without edge detection. (B–D) Different portion of the edge shows up for different metasurface orientations. Arrows indicate the edge-detection direction.
Conclusions
Edge detection is typically the first step of the subsequent processing stages and its signal might be very weak in many practical scenarios. The optical efficiency of the metasurface, therefore, becomes a critical issue. The optical efficiency of our metasurface is defined as , which can reach around 90% in our experiments. This high efficiency is attributed to the relatively thick glass-based metastructure with high transmission coefficient, showing clear advantages compared with metallic metasurfaces for transmission mode applications. The demonstrated edge-detection scheme is not limited to the birefringence dielectric metasurface but can be implemented by any other PB phase gradient metasurfaces with high optical efficiency (27).
In conclusion, we have proposed, fabricated, and experimentally verified that a PB phase gradient metasurface sandwiched by two orthogonal linear polarizers can be used for broadband optical edge detection with tunable resolution. Although only one-dimensional edge detection is demonstrated in our concept-proof experiment, there are no limitations to extend it to 2D which could be done in the future. Since the edge detection here is enabled by the interplay between different polarization components of light, we envision the PB phase gradient metasurfaces may lead to important applications in polarization-dependent high-contrast microscopy and compact optical processing systems (35).
Supplementary Material
Acknowledgments
We thank Qian Ma, Anna Bezryadina, and Yeon Ui Lee for help in experiments. Additionally, we thank Khoa Nguyen for valuable discussions. This work was partially supported by the National Natural Science Foundation of China (Grants No. 61835004) and the China Scholarship Council (Scholarship 201606130065).
Footnotes
The authors declare no conflict of interest.
This article is a PNAS Direct Submission.
This article contains supporting information online at www.pnas.org/lookup/suppl/doi:10.1073/pnas.1820636116/-/DCSupplemental.
References
- 1.Hubel D. H., Wiesel T. N., Receptive fields, binocular interaction and functional architecture in the cat’s visual cortex. J. Physiol. 160, 106–154 (1962). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 2.Goodman C. The digital revolution: Art in the computer age. Art J. 49, 248–252 (1990). [Google Scholar]
- 3.Solli D. R., Jalali B., Analog optical computing. Nat. Photonics 9, 704–706 (2015). [Google Scholar]
- 4.Caulfield H. J., Dolev S., Why future supercomputing requires optics. Nat. Photonics 4, 261–263 (2010). [Google Scholar]
- 5.Farmahini-Farahani M., Cheng J., Mosallaei H., Metasurfaces nanoantennas for light processing. J. Opt. Soc. Am. B 30, 2365–2370 (2013). [Google Scholar]
- 6.Silva A., et al. , Performing mathematical operations with metamaterials. Science 343, 160–163 (2014). [DOI] [PubMed] [Google Scholar]
- 7.Pors A., Nielsen M. G., Bozhevolnyi S. I., Analog computing using reflective plasmonic metasurfaces. Nano Lett. 15, 791–797 (2015). [DOI] [PubMed] [Google Scholar]
- 8.Doskolovich L. L., Bykov D. A., Bezus E. A., Soifer V. A., Spatial differentiation of optical beams using phase-shifted Bragg grating. Opt. Lett. 39, 1278–1281 (2014). [DOI] [PubMed] [Google Scholar]
- 9.Youssefi A., Zangeneh-Nejad F., Abdollahramezani S., Khavasi A., Analog computing by Brewster effect. Opt. Lett. 41, 3467–3470 (2016). [DOI] [PubMed] [Google Scholar]
- 10.Bykov D. A., Doskolovich L. L., Bezus E. A., Soifer V. A., Optical computation of the Laplace operator using phase-shifted Bragg grating. Opt. Express 22, 25084–25092 (2014). [DOI] [PubMed] [Google Scholar]
- 11.Golovastikov N. V., Bykov D. A., Doskolovich L. L., Bezus E. A., Spatial optical integrator based on phase-shifted Bragg gratings. Opt. Commun. 338, 457–460 (2015). [Google Scholar]
- 12.Ruan Z. Spatial mode control of surface plasmon polariton excitation with gain medium: From spatial differentiator to integrator. Opt. Lett. 40, 601–604 (2015). [DOI] [PubMed] [Google Scholar]
- 13.AbdollahRamezani S., Arik K., Khavasi A., Kavehvash Z., Analog computing using graphene-based metalines. Opt. Lett. 40, 5239–5242 (2015). [DOI] [PubMed] [Google Scholar]
- 14.Chizari A., Abdollahramezani S., Jamali M. V., Salehi J. A., Analog optical computing based on a dielectric meta-reflect array. Opt. Lett. 41, 3451–3454 (2016). [DOI] [PubMed] [Google Scholar]
- 15.Hwang Y., Davis T. J., Optical metasurfaces for subwavelength difference operations. Appl. Phys. Lett. 109, 181101 (2016). [Google Scholar]
- 16.Zhu T., et al. , Plasmonic computing of spatial differentiation. Nat. Commun. 8, 15391 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 17.Saba A., Tavakol M. R., Karimi-Khoozani P., Khavasi A., Two-dimensional edge detection by guided mode resonant metasurface. IEEE Photonics Technol. Lett. 30, 853–856 (2018). [Google Scholar]
- 18.Goodman J., Introduction to Fourier Optics (Roberts & Company Publishers, Englewood, CO, 2005). [Google Scholar]
- 19.Hu H., Ma C., Liu Z., Plasmonic dark field microscopy. Appl. Phys. Lett. 96, 113107 (2010). [Google Scholar]
- 20.Pancharatnam S., Generalized theory of interference, and its applications. Proc. Indian Acad. Sci. A, 44, 5, 398–417 (1956). [Google Scholar]
- 21.Berry M. V., Quantal phase factors accompanying adiabatic changes. Proc. R. Soc. London Ser. A, 392, 45–57 (1984). [Google Scholar]
- 22.Bomzon Z., Biener G., Kleiner V., Hasman E., Space-variant Pancharatnam-Berry phase optical elements with computer-generated subwavelength gratings. Opt. Lett. 27, 1141–1143 (2002). [DOI] [PubMed] [Google Scholar]
- 23.Huang L., et al. , Dispersionless phase discontinuities for controlling light propagation. Nano Lett. 12, 5750–5755 (2012). [DOI] [PubMed] [Google Scholar]
- 24.Shitrit N., Bretner I., Gorodetski Y., Kleiner V., Hasman E., Optical spin Hall effects in plasmonic chains. Nano Lett. 11, 2038–2042 (2011). [DOI] [PubMed] [Google Scholar]
- 25.Luo W., Xiao S., He Q., Sun S., Zhou L., Photonic spin Hall effect with nearly 100% efficiency. Adv. Opt. Mater. 3, 1102–1108 (2015). [Google Scholar]
- 26.Luo X.-G., Pu M.-B., Li X., Ma X.-L., Broadband spin Hall effect of light in single nanoapertures. Light Sci. Appl. 6, e16276 (2017). [DOI] [PMC free article] [PubMed] [Google Scholar]
- 27.Lin D., Fan P., Hasman E., Brongersma M. L., Dielectric gradient metasurface optical elements. Science 345, 298–302 (2014). [DOI] [PubMed] [Google Scholar]
- 28.Yin X., Ye Z., Rho J., Wang Y., Zhang X., Photonic spin Hall effect at metasurfaces. Science 339, 1405–1407 (2013). [DOI] [PubMed] [Google Scholar]
- 29.Shaltout A., Liu J., Kildishev A., Shalaev V., Photonic spin Hall effect in gap–plasmon metasurfaces for on-chip chiroptical spectroscopy. Optica 2, 860–863 (2015). [Google Scholar]
- 30.Shimotsuma Y., Kazansky P. G., Qiu J., Hirao K., Self-organized nanogratings in glass irradiated by ultrashort light pulses. Phys. Rev. Lett. 91, 247405 (2003). [DOI] [PubMed] [Google Scholar]
- 31.Zhou J., et al. , Broadband photonic spin Hall meta-lens. ACS Nano 12, 82–88 (2018). [DOI] [PubMed] [Google Scholar]
- 32.Hakobyan D., Brasselet E., Left-handed optical radiation torque. Nat. Photonics 8, 610–614 (2014). [Google Scholar]
- 33.Bomzon Z., Kleiner V., Hasman E., Pancharatnam–Berry phase in space-variant polarization-state manipulations with subwavelength gratings. Opt. Lett. 26, 1424–1426 (2001). [DOI] [PubMed] [Google Scholar]
- 34.Biener G., Niv A., Kleiner V., Hasman E., Formation of helical beams by use of Pancharatnam-Berry phase optical elements. Opt. Lett. 27, 1875–1877 (2002). [DOI] [PubMed] [Google Scholar]
- 35.Robinson M. D., Stork D. G., Joint digital-optical design of superresolution multiframe imaging systems. Appl. Opt. 47, B11–B20 (2008). [DOI] [PubMed] [Google Scholar]
Associated Data
This section collects any data citations, data availability statements, or supplementary materials included in this article.





