 |
ImageD
v2_7_5 (24.06.22)
ImageD is an image processing software designed for rapid prototyping and implementing algorithms and solutions for science, research and teaching.
|
Go to the documentation of this file.
9 #ifndef D_VIDEOWRITER_H
10 #define D_VIDEOWRITER_H
40 #include <opencv2/core/core.hpp>
41 #include <opencv2/highgui/highgui.hpp>
42 #include <opencv2/imgproc/imgproc.hpp>
58 int set_PathOut(
string S_OutPath);
59 int set_PathOut(QString QS_OutPath);
60 int set_PathOut(QFileInfo FI_OutPath);
61 int set_Size(
Size size_out);
62 int set_Size(
int width,
int height);
63 int set_FPS(
double fps);
64 int set_isColor(
bool is_color);
67 int init_VideoWriter();
70 int AddFrame(
Mat frame2add);
71 int AddFrame(
Mat *frame2add);
72 int EndVideoWriting();
77 const int prop_FourCC_full = CV_FOURCC(
'M',
'J',
'P',
'G');
84 int prop_FourCC = prop_FourCC_full;
85 bool prop_isColor =
true;
91 bool state_isSet_DestinationPath =
false;
92 bool state_isSet_FourCC =
true;
93 bool state_isSet_FrameSize =
false;
94 bool state_isSet_FPS =
false;
95 bool state_isSet_isColor =
false;
96 bool state_ready2write =
false;
97 bool is_ready2write();
98 bool state_isInit =
false;
101 #endif // D_VIDEOWRITER_H
cv::Mat Mat
Definition: d_opencv_typedefs.h:28
@ ER_okay
Definition: d_enum.h:133
int set_Size(Size size_out)
Definition: d_videowriter.cpp:16
@ ER_channel_missmatch
Definition: d_enum.h:145
@ ER_size_missmatch
Definition: d_enum.h:141
int init_VideoWriter()
Definition: d_videowriter.cpp:67
@ ER_file_not_exist
Definition: d_enum.h:161
cv::VideoWriter VideoWriter
Definition: d_opencv_typedefs.h:25
D_VideoWriter()
Definition: d_videowriter.cpp:11
The D_VideoWriter class Creates a video from a sequence of images and saves it as a file.
Definition: d_videowriter.h:53
int EndVideoWriting()
Definition: d_videowriter.cpp:133
int set_PathOut(string S_OutPath)
Definition: d_videowriter.cpp:140
int set_FPS(double fps)
Definition: d_videowriter.cpp:42
@ ER_other
Definition: d_enum.h:134
int AddFrame(Mat frame2add)
Definition: d_videowriter.cpp:101
@ ER_parameter_bad
Definition: d_enum.h:142
bool is_Init()
Definition: d_videowriter.cpp:90
int set_isColor(bool is_color)
Definition: d_videowriter.cpp:56
cv::Size Size
Definition: d_opencv_typedefs.h:31
@ ER_empty
Definition: d_enum.h:135