Huygens Vectorial MTF

This example demonstrates how to use the HuygensMTF class to calculate and visualize the MTF of an optical system. This accounts for the full vectorial nature of the electric field at the exit pupil.

Note: Vectorial MTF calculations are automatically performed when polarization is enabled in the optical system. This is triggered by setting a polarization state on the optical system.

[1]:
from optiland.mtf import HuygensMTF
from optiland.samples.objectives import TessarLens
from optiland.rays import create_polarization
[2]:
# Load a sample lens
lens = TessarLens()

# Create and set a polarization state (e.g., horizontal linear polarization)
pol_state_H = create_polarization("H")
lens.updater.set_polarization(pol_state_H)

_ = lens.draw()
../../_images/gallery_wavefront_vectorial_huygens_mtf_2_0.png
[3]:
mtf = HuygensMTF(lens)
_ = mtf.view()
../../_images/gallery_wavefront_vectorial_huygens_mtf_3_0.png