CS 143 / Project 1 / Image Filtering and Hybrid Images

Outline

  1. Algorithm
  2. Results in a table

1. Algorithm

  • first classify the image into grayscale or rgb image
  • if the image is grayscale we proceed as follows:
  • if the image is rgb then we proceed as follows:
  • my_imfilter

    Here we are trying to implement the convolution operation between the filter and the image. We first create a ouput image having the same resolution as either one of the images, with each pixel having zero intensity. We also pad the original image with rows and columns containing 0s based on the size of the filter. [padder.m has the implementation.] To do the task in the previous mentioned sentence, we compute the center of the filter matrix. Finally we compute the convolution at the every pixel belonging to the original image and store that value in the corresponding output matrix. [my_conv.m contains the necessary implementation of this.]

    2. Results in a table

    for all images , cutoff frequency = 7