/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

  1. #ifndef HEADER_ComponentOutputFramesImages
  2. #define HEADER_ComponentOutputFramesImages
  3. #include <vector>
  4. #include <cv.h>
  5. #include <highgui.h>
  6. #include "Component.h"
  7. //! An input component that reads an AVI file using the CV library.
  8. class ComponentOutputFramesImages: public Component {
  9. public:
  10. enum eFileType { // see cvLoadImage for supported file types
  11. FileTypePNG = 0,
  12. FileTypeBMP = 1,
  13. FileTypeJPEG = 2,
  14. };
  15. //! Constructor.
  16. ComponentOutputFramesImages(SwisTrackCore *stc);
  17. //! Destructor.
  18. ~ComponentOutputFramesImages();
  19. // Overwritten Component methods
  20. void OnStart();
  21. void OnReloadConfiguration();
  22. void OnStep();
  23. void OnStepCleanup();
  24. void OnStop();
  25. Component *Create() {
  26. return new ComponentOutputFramesImages(mCore);
  27. }
  28. void DrawParticles(Display *mDisplay, IplImage* mImage);
  29. private:
  30. int mInputSelection; //!< (configuration) Selects the input channel.
  31. wxFileName mFileName; //!< (configuration) directory and filename prefix
  32. eFileType mFileType; //!< (configuration) directory and filename prefix
  33. Display mDisplayOutput; //!< The DisplayImage showing the output of this component.
  34. CvFont mFontMain;
  35. };
  36. #endif