9 #ifndef CVideoFileWriter_H 10 #define CVideoFileWriter_H mrpt::utils::TImageSize m_img_size
A copy of the video size.
A class for storing images as grayscale or RGB bitmaps.
void close()
Finish the file writing and close the file output.
A pair (x,y) of pixel coordinates (integer resolution).
mrpt::utils::void_ptr_noncopy m_video
A pointer to CvVideoWriter.
bool isOpen() const
Return true if already successfully open with open() and not closed yet.
bool writeImage(const mrpt::utils::CImage &img) const
Write image to the video file (method function, alternative to the operator <<).
GLsizei const GLchar ** string
CVideoFileWriter()
Default constructor, which does not open any file.
virtual ~CVideoFileWriter()
Destructor.
This is the global namespace for all Mobile Robot Programming Toolkit (MRPT) libraries.
An output stream which takes a sequence of images and writes a video file in any of a given of compat...
bool open(const std::string &out_file, double fps, const mrpt::utils::TImageSize &frameSize, const std::string &fourcc=std::string(""), bool isColor=true)
Open a file for writing the video.
const CVideoFileWriter & operator<<(const mrpt::utils::CImage &img) const
Write image to the video file.