Homework 4

Mathematical Morphology - Binary Morphology

Description

    You can download lena.bmp here !
    You can also download OpenCV C++ template for Visual Studio 2015 here ! (Warning: If you use this template, please don't upload the whole project. Only the source codes should be submitted. e.g. main.cpp, funtion.h )

  • Write programs which do binary morphology on a binary image:
    • (a) Dilation
    • (b) Erosion
    • (c) Opening
    • (d) Closing
    • (e) Hit-and-miss transform

Announcement

  • Binarize Lena with the threshold 128 (0-127,128-255).
  • Please use the octogonal 3-5-5-5-3 kernel.
  • Please use the "L" shaped kernel (same as the text book) to detect the upper-right corner for hit-and-miss transform.
  • Please process the white pixels (operating on white pixels).
  • 5 images should be included in your report: Dilation, Erosion, Opening, Closing, and Hit-and-Miss.

  • You can use any programing language to implement homework, however, you'll get zero point if you just call existing library.

FAQ

  • Q1: 有規定報告的頁數嗎?
      沒有,但建議不要超過4頁。報告內容簡短扼要即可。
  • Q2: 請問之前作業實作過的函式,以後作業可以直接 call 現成函式嗎?
      可以哦,如果是之前作業手刻過的函式,之後用到可以任意 call function.
  • Q3: 結果影像和課程網站的範例圖不太一樣?
      邊界部分有稍微不同沒關係。