ITK
4.1.0
Insight Segmentation and Registration Toolkit
|
#include <itkVideoIOBase.h>
Abstract superclass defines video IO interface.
VideoIOBase is a class that reads and/or writes video data using a particular external technique or external library (OpenCV, vxl). The VideoIOBase encapsulates both the reading and writing of data. The VideoIOBase is used by the VideoFileReader class (to read data) and the VideoFileWriter (to write data). Normally the user does not directly manipulate this class directly.
A Pluggable factory pattern is used. This allows different kinds of readers to be registered (even at run time) without having to modify the code in this class.
Definition at line 48 of file itkVideoIOBase.h.
Video-specific typedefs
Definition at line 64 of file itkVideoIOBase.h.
Definition at line 60 of file itkVideoIOBase.h.
typedef SmartPointer< Self > itk::VideoIOBase::Pointer |
Reimplemented from itk::ImageIOBase.
Reimplemented in itk::FileListVideoIO.
Definition at line 55 of file itkVideoIOBase.h.
typedef VideoIOBase itk::VideoIOBase::Self |
Standard class typedefs.
Reimplemented from itk::ImageIOBase.
Reimplemented in itk::FileListVideoIO.
Definition at line 53 of file itkVideoIOBase.h.
Reimplemented from itk::ImageIOBase.
Definition at line 56 of file itkVideoIOBase.h.
Reimplemented from itk::ImageIOBase.
Reimplemented in itk::FileListVideoIO.
Definition at line 54 of file itkVideoIOBase.h.
typedef double itk::VideoIOBase::TemporalOffsetType |
Frame offset typedefs
Definition at line 59 of file itkVideoIOBase.h.
typedef double itk::VideoIOBase::TemporalRatioType |
Definition at line 61 of file itkVideoIOBase.h.
Enum used to define weather to read from a file or a camera
Definition at line 75 of file itkVideoIOBase.h.
itk::VideoIOBase::VideoIOBase | ( | ) | [protected] |
virtual itk::VideoIOBase::~VideoIOBase | ( | ) | [protected, virtual] |
itk::VideoIOBase::VideoIOBase | ( | const Self & | ) | [private] |
virtual bool itk::VideoIOBase::CanReadCamera | ( | CameraIDType | cameraID | ) | const [pure virtual] |
Return whether or not the VideoIO can read from a camera. The cameraID can be a camera number for OpenCV or a guid for VXL
Implemented in itk::FileListVideoIO.
virtual void itk::VideoIOBase::FinishReadingOrWriting | ( | ) | [pure virtual] |
Close the reader and writer and reset members
Implemented in itk::FileListVideoIO.
virtual FrameOffsetType itk::VideoIOBase::GetCurrentFrame | ( | ) | const [pure virtual] |
Virtual accessor functions to be implemented in each derived class
Implemented in itk::FileListVideoIO.
virtual TemporalRatioType itk::VideoIOBase::GetFramesPerSecond | ( | ) | const [pure virtual] |
Virtual accessor functions to be implemented in each derived class
Implemented in itk::FileListVideoIO.
virtual FrameOffsetType itk::VideoIOBase::GetFrameTotal | ( | ) | const [pure virtual] |
Virtual accessor functions to be implemented in each derived class
Implemented in itk::FileListVideoIO.
virtual FrameOffsetType itk::VideoIOBase::GetLastIFrame | ( | ) | const [pure virtual] |
Virtual accessor functions to be implemented in each derived class
Implemented in itk::FileListVideoIO.
virtual const char* itk::VideoIOBase::GetNameOfClass | ( | ) | const [virtual] |
Run-time type information (and related methods).
Reimplemented from itk::ImageIOBase.
Reimplemented in itk::FileListVideoIO.
virtual TemporalOffsetType itk::VideoIOBase::GetPositionInMSec | ( | ) | const [pure virtual] |
Virtual accessor functions to be implemented in each derived class
Implemented in itk::FileListVideoIO.
virtual TemporalRatioType itk::VideoIOBase::GetRatio | ( | ) | const [pure virtual] |
Virtual accessor functions to be implemented in each derived class
Implemented in itk::FileListVideoIO.
ReadType itk::VideoIOBase::GetReadType | ( | ) | [inline] |
Get the current read type
Definition at line 84 of file itkVideoIOBase.h.
void itk::VideoIOBase::operator= | ( | const Self & | ) | [private] |
This method causes the filter to generate its output.
Reimplemented from itk::ImageIOBase.
Reimplemented in itk::FileListVideoIO.
void itk::VideoIOBase::PrintSelf | ( | std::ostream & | os, |
Indent | indent | ||
) | const [protected, virtual] |
Methods invoked by Print() to print information about the object including superclasses. Typically not called by the user (use Print() instead) but used in the hierarchical print process to combine the output of several classes.
Reimplemented from itk::ImageIOBase.
Reimplemented in itk::FileListVideoIO.
virtual bool itk::VideoIOBase::SetNextFrameToRead | ( | FrameOffsetType | frameNumber | ) | [pure virtual] |
Set the next frame that should be read. Return true if you operation succesful
Implemented in itk::FileListVideoIO.
virtual void itk::VideoIOBase::SetReadFromCamera | ( | ) | [pure virtual] |
Set to reading from a camera
Implemented in itk::FileListVideoIO.
virtual void itk::VideoIOBase::SetReadFromFile | ( | ) | [pure virtual] |
Set to reading from file
Implemented in itk::FileListVideoIO.
virtual void itk::VideoIOBase::SetWriterParameters | ( | TemporalRatioType | framesPerSecond, |
const std::vector< SizeValueType > & | dim, | ||
const char * | fourCC, | ||
unsigned int | nChannels, | ||
IOComponentType | componentType | ||
) | [pure virtual] |
Set Writer Parameters
Implemented in itk::FileListVideoIO.
FrameOffsetType itk::VideoIOBase::m_CurrentFrame [protected] |
Definition at line 125 of file itkVideoIOBase.h.
TemporalRatioType itk::VideoIOBase::m_FramesPerSecond [protected] |
Definition at line 123 of file itkVideoIOBase.h.
FrameOffsetType itk::VideoIOBase::m_FrameTotal [protected] |
Definition at line 124 of file itkVideoIOBase.h.
FrameOffsetType itk::VideoIOBase::m_IFrameInterval [protected] |
Definition at line 126 of file itkVideoIOBase.h.
FrameOffsetType itk::VideoIOBase::m_LastIFrame [protected] |
Definition at line 127 of file itkVideoIOBase.h.
TemporalOffsetType itk::VideoIOBase::m_PositionInMSec [protected] |
Definition at line 129 of file itkVideoIOBase.h.
TemporalRatioType itk::VideoIOBase::m_Ratio [protected] |
Definition at line 128 of file itkVideoIOBase.h.
bool itk::VideoIOBase::m_ReaderOpen [protected] |
Definition at line 131 of file itkVideoIOBase.h.
ReadType itk::VideoIOBase::m_ReadType [protected] |
Member Variables
Definition at line 122 of file itkVideoIOBase.h.
bool itk::VideoIOBase::m_WriterOpen [protected] |
Definition at line 130 of file itkVideoIOBase.h.