18 #ifndef itkFileListVideoIO_h
19 #define itkFileListVideoIO_h
22 #include "ITKVideoIOExport.h"
54 virtual void FinishReadingOrWriting() ITK_OVERRIDE;
59 static std::vector<std::
string> SplitFileNames(const std::
string& fileList);
64 virtual
void SetReadFromFile() ITK_OVERRIDE;
67 virtual
void SetReadFromCamera() ITK_OVERRIDE;
71 virtual
bool CanReadFile(const
char *) ITK_OVERRIDE;
74 virtual
bool CanReadCamera(
CameraIDType cameraID )const ITK_OVERRIDE;
77 virtual
void ReadImageInformation() ITK_OVERRIDE;
80 virtual
void Read(
void *buffer) ITK_OVERRIDE;
84 virtual
bool SetNextFrameToRead(
FrameOffsetType frameNumber) ITK_OVERRIDE;
89 return this->m_PositionInMSec;
97 return this->m_FrameTotal;
101 return this->m_FramesPerSecond;
105 return this->m_CurrentFrame;
107 itkGetConstMacro(IFrameInterval,FrameOffsetType);
110 return this->m_LastIFrame;
115 virtual void SetFileName(
const std::string& fileList) ITK_OVERRIDE;
116 virtual void SetFileName(
const char* fileList) ITK_OVERRIDE;
120 virtual double GetSpacing(
unsigned int i)
const ITK_OVERRIDE;
122 virtual double GetOrigin(
unsigned int i)
const ITK_OVERRIDE;
124 virtual std::vector< double > GetDirection(
unsigned int i)
const ITK_OVERRIDE;
130 virtual bool CanWriteFile(
const char *) ITK_OVERRIDE;
134 virtual
void WriteImageInformation() ITK_OVERRIDE;
138 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
141 virtual
void SetWriterParameters( TemporalRatioType framesPerSecond,
144 unsigned int nChannels,
145 IOComponentType componentType ) ITK_OVERRIDE;
151 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
163 bool VerifyExtensions( const std::vector<std::
string>& fileList ) const;
166 FileListVideoIO(const Self &);
167 void operator=(const Self &);
173 std::vector<std::
string> m_FileNames;
178 #endif // itkFileListVideoIO_h
Light weight base class for most itk classes.
virtual TemporalRatioType GetFramesPerSecond() const override
Abstract superclass defines video IO interface.
Abstract superclass defines image IO interface.
virtual TemporalOffsetType GetRatio() const override
unsigned long SizeValueType
VideoIO object for reading and writing videos as a sequence of frame files.
virtual FrameOffsetType GetCurrentFrame() const override
SizeValueType FrameOffsetType
SmartPointer< Self > Pointer
SizeValueType CameraIDType
virtual FrameOffsetType GetLastIFrame() const override
virtual FrameOffsetType GetFrameTotal() const override
Control indentation during Print() invocation.
Base class for most ITK classes.
double TemporalOffsetType