/Code/core/ComponentOutputFramesImages.h
https://github.com/roboshepherd/swistrackplus · C Header · 44 lines · 32 code · 8 blank · 4 comment · 0 complexity · 4309715fd8fc9edece5386619bbf6748 MD5 · raw file
- #ifndef HEADER_ComponentOutputFramesImages
- #define HEADER_ComponentOutputFramesImages
-
- #include <vector>
- #include <cv.h>
- #include <highgui.h>
- #include "Component.h"
-
- //! An input component that reads an AVI file using the CV library.
- class ComponentOutputFramesImages: public Component {
-
- public:
- enum eFileType { // see cvLoadImage for supported file types
- FileTypePNG = 0,
- FileTypeBMP = 1,
- FileTypeJPEG = 2,
- };
- //! Constructor.
- ComponentOutputFramesImages(SwisTrackCore *stc);
- //! Destructor.
- ~ComponentOutputFramesImages();
-
- // Overwritten Component methods
- void OnStart();
- void OnReloadConfiguration();
- void OnStep();
- void OnStepCleanup();
- void OnStop();
- Component *Create() {
- return new ComponentOutputFramesImages(mCore);
- }
- void DrawParticles(Display *mDisplay, IplImage* mImage);
-
- private:
- int mInputSelection; //!< (configuration) Selects the input channel.
- wxFileName mFileName; //!< (configuration) directory and filename prefix
- eFileType mFileType; //!< (configuration) directory and filename prefix
- Display mDisplayOutput; //!< The DisplayImage showing the output of this component.
- CvFont mFontMain;
- };
-
- #endif