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"
68 virtual void FinishReadingOrWriting();
75 virtual void SetReadFromFile();
78 virtual void SetReadFromCamera();
82 virtual bool CanReadFile(
const char *);
85 virtual bool CanReadCamera(
CameraIDType cameraID )
const;
88 virtual void ReadImageInformation();
91 virtual void Read(
void *buffer);
120 virtual double GetOrigin(
unsigned int itkNotUsed(i))
const
123 {
return this->GetDefaultDirection(i); }
128 virtual bool CanWriteFile(
const char *);
132 virtual void WriteImageInformation();
136 virtual void Write(
const void *buffer);
139 virtual void SetWriterParameters( TemporalRatioType fps,
140 const std::vector<SizeValueType>& dim,
142 unsigned int nChannels,
143 IOComponentType componentType );
149 void PrintSelf(std::ostream & os,
Indent indent)
const override;
152 void UpdateReaderProperties();
176 #endif // itkOpenCVVideoIO_h
double TemporalOffsetType
Light weight base class for most itk classes.
Abstract superclass defines video IO interface.
virtual double GetSpacing(unsigned int) const
SizeValueType FrameOffsetType
virtual double GetOrigin(unsigned int) const
VideoIO object for reading and writing videos using OpenCV.
SizeValueType CameraIDType
Control indentation during Print() invocation.
virtual std::vector< double > GetDirection(unsigned int i) const
Base class for most ITK classes.