RESUMEN
Here, we present a novel, to the best of our knowledge, optical edge detection scheme that can be operated in both linear and circular polarization modes, leveraging an optical spatial differentiator constructed by quarter-wave Pancharatnam-Berry (P-B) phase gradient element. After explaining the theoretical mechanism, we utilize a quarter-wave P-B phase liquid crystal polarization grating to validate the dual-polarization optical edge detection capability. We demonstrate that the orientation of linear polarization and the spin of circular polarization dictate the transition between edge and bright-field images. Besides, the linear and circular polarization modes exhibit broadband and monochromatic responsive properties, respectively. This mechanism, dependent on wavelength and polarization, holds promise for applications in color image processing, chiral sensing imaging, and polarization-entangled quantum imaging.