44 #ifndef vpVideoWriter_H
45 #define vpVideoWriter_H
49 #include <visp3/io/vpImageIo.h>
51 #if VISP_HAVE_OPENCV_VERSION >= 0x020200
52 #include <opencv2/highgui/highgui.hpp>
53 #elif VISP_HAVE_OPENCV_VERSION >= 0x020000
54 #include <opencv/highgui.h>
162 #if VISP_HAVE_OPENCV_VERSION >= 0x020100
163 cv::VideoWriter m_writer;
181 vpVideoFormatType m_formatType;
184 std::string m_videoName;
185 std::string m_frameName;
200 unsigned int m_width;
201 unsigned int m_height;
234 #if VISP_HAVE_OPENCV_VERSION >= 0x020100
235 inline void setCodec(
const int fourcc_codec) { m_fourcc = fourcc_codec; }
238 void setFileName(
const std::string &filename);
239 void setFirstFrameIndex(
int first_frame);
250 #if VISP_HAVE_OPENCV_VERSION >= 0x020100
251 inline void setFramerate(
const double framerate) { m_framerate = framerate; }
253 inline void setFramerate(
const double dummy) { (void)dummy; }
259 inline void setFrameStep(
const int frame_step) { m_frameStep = frame_step; }
262 vpVideoFormatType getFormat(
const std::string &filename);
263 static std::string getExtension(
const std::string &filename);
Class that enables to write easily a video file or a sequence of images.
void setFrameStep(const int frame_step)
void setFramerate(const double framerate)
void setCodec(const int fourcc_codec)
std::string getFrameName() const
unsigned int getCurrentFrameIndex() const