// ================= // || Worksheet 8 // || In this exercise, we are going be performing a prominent feature detector. // ================= #include "program.h" using namespace std; using namespace cv; // In this worksheet, we will be performing DFT's and Inverse DFT's int worksheeteight(Mat& src) { // our goal here is to create a filter that only keeps frequencies with a high amplitude. // this should be quite simple. // 1) perform the DFT, and compute the magnitude image. // 2) loop through all pixels in the madnitude image. // if the magnitude is less than some threshold (up to you) // then set the corresponding (complex) pixel value of the DFT image to 0+0i; // 3) perform the IDFT // 4) display the reconstructed image. return 0; }