During class today some students brought up the possibility that
the distortion equation described in the Homework 1 handout does not
correspond to the distortion shown in the screenshot in the handout.
I've double-checked the solution, which was used to generate the
screenshots in the handout, and it does appear to match the equation
in the handout. Though the equation shown is correct, the handout will
be has been updated with more screenshots.
If your code exits with an abort error it may be because the index used for fb_dup is out of range. To check whether that is the case, and if so, to look at how the index is computed run hw01-debug under gdb and when it prints the error message first type where to get a call stack (back trace). Then locate the frame where your code is (look for "hw01.cc:LINE" at the end of a frame entry). Then type frame X where X is the frame where your code executed. Use up and down to move up and down. You can print variable values and expressions using the command p, for example, p x or p y*win_width. To get the size of fb_dup type p fb_dup.size().
David M. Koppelman - koppel@ece.lsu.edu | Modified 11 Sep 2025 12:03 (1703 UTC) |
Provide Website Feedback • Accessibility Statement • Privacy Statement |