Image Motion Detection Algorithm

Discussion in 'Programmer's Corner' started by scubasteve_911, Oct 9, 2008.

  1. scubasteve_911

    Thread Starter Senior Member

    Dec 27, 2007
    1,202
    1
    Hello Everyone!,

    I'm trying to come up with a method to detect motion between two frames of an image. Basically, I want to take a picture, move the scene, take another picture (with at least 75% of the original scene contained), then return a vector representing the angle of movement and the relative magnitude.

    I am using a 1.3M-pixel USB webcam and matlab. I am able to get the entire image into Matlab space without a problem, it's the processing that I need to figure out.

    Does anyone have any idea how this is done, or how it could be done? I found a quick blurb on the internet on how I believe someone was describing how to do this, yet I am not able to decode what he is saying.

    Does this sound right? Can someone shed some light? I have the image processing and signal processing toolbox at my disposal.

    All the best!,

    Stephen
     
  2. n9352527

    AAC Fanatic!

    Oct 14, 2005
    1,198
    4
    Have you considered using correlation?
     
  3. scubasteve_911

    Thread Starter Senior Member

    Dec 27, 2007
    1,202
    1
    I should have thought of that, it seems like a good tool for this. I'm going to experiment with some images in matlab and post some results.

    Steve
     
Loading...