Project 1: Image Filtering and Hybrid Images

Hybrid images can be created by combining low frequencies of one image and high frequencies of another. I wrote a simple filtering algorithm to do the same. The input image is padded with zeros depending on the size of the filter. The program then iterates over the image in a sliding window fashion to calculate resulting value for each pixel. This happens for each color channel in case of RGB images. The output image is finally cropped to its original size.

Results in a table

Each of results in the table above show low and high frequency images, the hybrid image and scales of the hybrid image. The cutoff frequency has been modified to get the best hydrid image in each case.