Assignment 4: Q&A
Q: what should error_map return?
A: A tuple of (diff, diff_bounds).
Q: how should we use bounds in the calculation of the PSNR?
A: Follow wikipedia, and note that MAX_I in wikipedia is actually maxval - minval.
Q: How should we handle NaN values in the calculation of RMSE?
A: Read about np.nanmean.
Q: What does imshow_hbox expect to get as kwargs?
A: kwargs should be either a dictionary, if the same kwargs should be used for all the images, or a list of dictionary (a dictionary per image), with the per-image kwargs.
Q: What should be put in "non-existing" pixels in align_video?
A: As in align_image, "non-existing" pixels should be NaN.