airforce#

optika.targets.airforce(axis_x, axis_y, num_x=1000, num_y=1000)[source]#

A 1951 USAF resolution test target used for testing the performance of optical systems.

Parameters:
  • axis_x (str) – The name of the horizontal axis.

  • axis_y (str) – The name of the vertical axis.

  • num_x (int) – The number of pixels along the horizontal axis.

  • num_y (int) – The number of pixels along the vertical axis.

Return type:

ScalarArray

Examples

Load and display the test target

import matplotlib.pyplot as plt
import named_arrays as na
import optika

# Load the test target
target = optika.targets.airforce("x", "y")

# Display the test target
fig, ax = plt.subplots(constrained_layout=True)
na.plt.pcolormesh(C=target);
../_images/optika.targets.airforce_0_0.png