Session Ready
Exercise

Mean absolute error

Cost functions and objective functions output a single value that summarizes how well two images match.

The mean absolute error (MAE), for example, summarizes intensity differences between two images, with higher values indicating greater divergence.

For this exercise, calculate the mean absolute error between im1 and im2 step-by-step.

Instructions 1/3
undefined XP
  • 1
  • 2
  • 3
  • Calculate the difference between im1 and im2.
  • Plot err with the seismic colormap. To center the colormap at 0, set vmin=-200 and vmax=200.