Posts

Showing posts from December, 2018

Playing Music with Images

Image
For our last activity of the semester, we did something interesting -- as the title mentions, we played music with images. To do this, we used the technique known as template matching. As the name of the technique implies, template matching involves determining which part of an image follows or is similar to particular template[1], and there are many ways to do it. In this activity, this was done by convolving an image of interest with a template image. Notice that since we are matching templates, the template in the template image should look exactly like the things similar to it in our image of interest. Further, since we are convolving both the image of interest and the template image, it should be noted that they are supposed to be of the same image size as if this condition is not met, then by the code used in doing this activity, we won't be able to achieve this. The code used to do template matching is shown below. Notice that in the code, we took the Fourier transform o...