Assignment No. 1

Due Date: Thursday, 6 September 2018

  1. Take photographs of the same stationary object using different values of aperture and time settings on the camera. Select a few pixels and compare the changes in intensity values (if any). Plot (i) intensity vs. time and (ii) intensity vs. aperture values. Remember that the intensity values lie between 0 and 255. If you do not have access to a digital camera with the necessary features, use the photographs here. The names give you the time and aperture settings: tmmm-fn.n.jpg indicates an image whose time setting is 1/mmm seconds and aperture is 50/n.n millimetres. (5 Marks)
  2. Implement the connected component labelling algorithm discussed in class (using openCV library). Write it as a function which takes two arguments inpImage and outImage and returns an integer count of the number of connected components found in the inpImage. It is assumed that inpImage is a binary image. The outImage contains an array of connected component labels. You can assume for this assignment that the number of components is always less than 255.
    Try your porgram on the test image. (10 Marks)
  3. Describe m-connectedness of pixels in an image. Draw m-connected circles of radii 5, 7 and 9 pixels. How do they differ from 4- and 8-connected circles? (5 Marks)

End of Assignment