Homework 1

Image Matching (Detecting Motion Vectors)


Due Date: 03/05

  • Images: trucka.bmp, truckb.bmp
  • Discription: ACV hw1.pptx
  • Detect motions vectors between trucka.bmp and truckb.bmp.
  • Use trucka.bmp as the basis, sample it by an 9×9 , 11×11, 15×15, 21×21, 31×31 block.
  • Threshold of search range: 50 pixels. (This is a reference value only!)
  • Dimension of truck is 386×386 with 216 bytes of leading header.
  • Announcement

  • You may use any programming language of your choice to implement the functions, provided that you do not use any library calls except for basic image IO (e.g. OpenCV).
  • Failing to provide a report will reduce your grade by 1~2 levels.
  • Using restricted functions within your program (unless specified) will result in a failure of your work.
  • FAQ


  • Q1: 請問作業一,是要計算trucka每個n*n的block,在truckb移動多少的(dx,dy),像素值差的總和最低,進而繪製出向量圖嗎?
      沒錯哦。
  • Q2: 報告中需要有幾張圖呢?
      共5張圖哦,一個 block size 一張圖,越大的 block size 會有越少的向量。
  • Q3: 請問 block 間的間隔多少?
      緊密相連,沒有重疊也沒有空隙。
  • Q4: 請問起始的 block 一定要是最左上角的點嘛?
      不用哦,可以預留幾個pixel,如說明投影片中的例子。
  • Q5: Search range 一定要 50 pixel 嘛? 程式好像跑不太動。
      Search range 同學可以可以根據不同 block size 進行調整。