18 #ifndef itkOpenCVVideoIO_h
19 #define itkOpenCVVideoIO_h
23 #include "opencv2/core/version.hpp"
24 #if !defined(CV_VERSION_EPOCH)
26 # include "opencv2/videoio/videoio.hpp"
27 # include "opencv2/videoio/videoio_c.h"
28 # include "opencv2/imgproc/imgproc_c.h"
35 #include "ITKVideoBridgeOpenCVExport.h"
70 FinishReadingOrWriting();
87 CanReadFile(
const char *);
95 ReadImageInformation();
108 GetPositionInMSec()
const;
112 GetFrameTotal()
const;
114 GetFramesPerSecond()
const;
116 GetCurrentFrame()
const;
118 GetIFrameInterval()
const;
120 GetLastIFrame()
const;
131 GetCameraIndex()
const;
146 virtual std::vector<double>
149 return this->GetDefaultDirection(i);
156 CanWriteFile(
const char *);
161 WriteImageInformation();
166 Write(
const void * buffer);
170 SetWriterParameters(TemporalRatioType fps,
171 const std::vector<SizeValueType> & dim,
173 unsigned int nChannels,
174 IOComponentType componentType);
181 PrintSelf(std::ostream & os,
Indent indent)
const override;
185 UpdateReaderProperties();
211 #endif // itkOpenCVVideoIO_h