Richard Sewell
/
ucam
This is the code we showed at Uncraftivism
Diff: MotionFinder.h
- Revision:
- 0:57f4fdadc97f
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/MotionFinder.h Fri Nov 20 14:40:48 2009 +0000 @@ -0,0 +1,29 @@ +#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; + +};