18 #ifndef itkOpenCVVideoIO_h
19 #define itkOpenCVVideoIO_h
24 #include "ITKVideoBridgeOpenCVExport.h"
55 virtual void FinishReadingOrWriting();
60 virtual void SetReadFromFile();
63 virtual void SetReadFromCamera();
67 virtual bool CanReadFile(
const char *);
70 virtual bool CanReadCamera(
CameraIDType cameraID )
const;
73 virtual void ReadImageInformation();
76 virtual void Read(
void *buffer);
103 virtual double GetOrigin(
unsigned int itkNotUsed(i))
const
106 {
return this->GetDefaultDirection(i); }
111 virtual bool CanWriteFile(
const char *);
115 virtual void WriteImageInformation();
119 virtual void Write(
const void *buffer);
122 virtual void SetWriterParameters( TemporalRatioType fps,
123 const std::vector<SizeValueType>& dim,
125 unsigned int nChannels,
126 IOComponentType componentType );
132 void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
135 void UpdateReaderProperties();
148 void operator=(const Self &) ITK_DELETE_FUNCTION;
152 IplImage* m_TempImage;
153 CvCapture* m_Capture;
154 CvVideoWriter* m_Writer;
164 #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