In recent decades, optical analog computing has attracted considerable interest in image processing and optical engineering. However, the optical analog computing system composed of traditional optical devices is bulky and difficult to integrate in practical applications. Here, we propose a method for inversely designing Pancharatnam–Berry phase metasurfaces based on specified optical computing. Derived from the evolution of the Pancharatnam–Berry phase on the Poincaré sphere, the special relationship between local optical axis structure and phase can be obtained. On this basis, we inversely design several metasurfaces and applied them into optical analog computing as well as all-optical image edge detection.
Optical differential operation is the basic principle of optical image edge detection, which has the advantages of high efficiency, simple structure and markerless compared with the traditional digital image processing methods. In this paper, we propose an optical differential operation with high contrast based on the photonic spin Hall effect in a Weyl semimetal, which enables to switch between one- and two-dimensional edge detection. Due to the unique optical and electrical properties of the Weyl semimetal, a transport model for the differential operation is established, which is closely related to the beam shifts. By tuning the incidence conditions, we effectively manipulate the in-plane and transverse shifts to switch differential operations between one and two dimensions. The contrast of the differential operation is further regulated by changing the physical parameters of the Weyl semimetal, and can be improved by two orders of magnitude compared to the conventional differentiator. This study provides new possibilities in edge detection and image processing owing to the advantages of switchable dimension and high contrast.
We propose a photonic spin Hall spatial differentiator based on a natural hexagonal boron nitride (hBN) interface in the mid-infrared Reststrahlen band. The optical-axis orientation is set by the crystal cut and lies in the incidence plane, while the operating mode is selected through the incidence angle, input polarization, and analyzer orientation. Near the ENZ-assisted Brewster-like condition, co-polarized reflection is strongly suppressed, enabling a high-contrast X-differentiation channel, whereas the Y-differentiation channel originates from first-order angular-spectrum spin–orbit coupling and remains background-free. At and fixed orientation , the effective Brewster-like minimum occurs at with . Numerical simulations demonstrate switching among intensity-like imaging, X differentiation, and background-free Y differentiation. These results identify fixed-orientation hBN as a natural-crystal platform for polarization-selective mid-infrared optical spatial differentiation without subwavelength patterning.