As of Monday morning, so this is the code we showed at Uncraftivism.

Dependencies:   mbed

MotionFinder.h

Committer:
voidnoise
Date:
2009-12-14
Revision:
1:5d20e168f467
Parent:
0:da6a22da11a2

File content as of revision 1:5d20e168f467:

#pragma once
// Class to detect motion in a series of frames

class Frame;


class MotionFinder
{
public:
    MotionFinder( ServoMinder *xServoMinder, ServoMinder *yServoMinder  );

    void processFrame( Frame *frame );
    void newBackground( Frame *frame );

    ~MotionFinder();


    Frame *m_backgroundFrame;
    Frame *m_resultFrame;
    uint16_t m_delta;

    float m_attentionX;
    float m_attentionY;

    
    ServoMinder *m_xServoMinder;
    ServoMinder *m_yServoMinder;

};