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"
66 virtual void FinishReadingOrWriting();
73 virtual void SetReadFromFile();
76 virtual void SetReadFromCamera();
80 virtual bool CanReadFile(
const char *);
83 virtual bool CanReadCamera(
CameraIDType cameraID )
const;
86 virtual void ReadImageInformation();
89 virtual void Read(
void *buffer);
118 virtual double GetOrigin(
unsigned int itkNotUsed(i))
const
121 {
return this->GetDefaultDirection(i); }
126 virtual bool CanWriteFile(
const char *);
130 virtual void WriteImageInformation();
134 virtual void Write(
const void *buffer);
137 virtual void SetWriterParameters( TemporalRatioType fps,
138 const std::vector<SizeValueType>& dim,
140 unsigned int nChannels,
141 IOComponentType componentType );
147 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
150 void UpdateReaderProperties();
176 #endif // itkOpenCVVideoIO_h
Light weight base class for most itk classes.
Abstract superclass defines video IO interface.
virtual double GetSpacing(unsigned int) const
virtual double GetOrigin(unsigned int) const
SizeValueType FrameOffsetType
Superclass::TemporalOffsetType TemporalOffsetType
Superclass::CameraIDType CameraIDType
Superclass::TemporalRatioType TemporalRatioType
SizeValueType CameraIDType
SmartPointer< Self > Pointer
VideoIO object for reading and writing videos using OpenCV.
Control indentation during Print() invocation.
virtual std::vector< double > GetDirection(unsigned int i) const
Base class for most ITK classes.
double TemporalOffsetType
Superclass::FrameOffsetType FrameOffsetType