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

Dependencies:   mbed

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers MotionFinder.h Source File

MotionFinder.h

00001 #pragma once
00002 // Class to detect motion in a series of frames
00003 
00004 class Frame;
00005 
00006 
00007 class MotionFinder
00008 {
00009 public:
00010     MotionFinder( ServoMinder *xServoMinder, ServoMinder *yServoMinder  );
00011 
00012     void processFrame( Frame *frame );
00013     void newBackground( Frame *frame );
00014 
00015     ~MotionFinder();
00016 
00017 
00018     Frame *m_backgroundFrame;
00019     Frame *m_resultFrame;
00020     uint16_t m_delta;
00021 
00022     float m_attentionX;
00023     float m_attentionY;
00024 
00025     
00026     ServoMinder *m_xServoMinder;
00027     ServoMinder *m_yServoMinder;
00028 
00029 };