view include/InputVideoFileModule.h @ 511:ad518f0c3218

merged pulling from main
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Wed, 28 May 2014 17:46:38 -0400
parents 2be846d36dec
children
line wrap: on
line source

#ifndef INPUT_VIDEO_FILE_MODULE_H
#define INPUT_VIDEO_FILE_MODULE_H

#include "InputFrameProviderIface.h"
#include <string>
#include "opencv2/core/core.hpp"
#include "opencv2/highgui/highgui.hpp"

class InputVideoFileModule : public InputFrameProviderIface
{
public:
  InputVideoFileModule(const std::string& videoPath);
  ~InputVideoFileModule();

  bool getNextFrame(cv::Mat&);

  unsigned int getNbFrames(){		return mNumberOfFrame;}

  bool isOpen() const { return mInit;}

  void setFrameNumber(const unsigned int& frameNumber);

  const cv::Size& getSize() const { return mSize;}
	
private:
  cv::Size mSize;
  cv::VideoCapture mVideoCapture;
  bool mInit;
  int mNumberOfFrame;
};

#endif