18 #ifndef itkFileListVideoIO_h
19 #define itkFileListVideoIO_h
22 #include "ITKVideoIOExport.h"
58 itkGetConstMacro(FileNames, std::vector<std::string>);
61 virtual void SetFileName(
const std::string& fileList) ITK_OVERRIDE;
62 virtual void SetFileName(
const char* fileList) ITK_OVERRIDE;
66 virtual void FinishReadingOrWriting() ITK_OVERRIDE;
71 static std::vector<std::
string> SplitFileNames(const std::
string& fileList);
74 virtual
void SetReadFromFile() ITK_OVERRIDE;
77 virtual
void SetReadFromCamera() ITK_OVERRIDE;
81 virtual
bool CanReadFile(const
char *) ITK_OVERRIDE;
84 virtual
bool CanReadCamera(
CameraIDType cameraID )const ITK_OVERRIDE;
87 virtual
void ReadImageInformation() ITK_OVERRIDE;
90 virtual
void Read(
void *buffer) ITK_OVERRIDE;
94 virtual
bool SetNextFrameToRead(
FrameOffsetType frameNumber) ITK_OVERRIDE;
99 return this->m_PositionInMSec;
103 return this->m_Ratio;
107 return this->m_FrameTotal;
111 return this->m_FramesPerSecond;
115 return this->m_CurrentFrame;
117 itkGetConstMacro(IFrameInterval,FrameOffsetType);
120 return this->m_LastIFrame;
125 virtual double GetSpacing(
unsigned int i)
const ITK_OVERRIDE;
127 virtual double GetOrigin(
unsigned int i)
const ITK_OVERRIDE;
129 virtual std::vector< double > GetDirection(
unsigned int i)
const ITK_OVERRIDE;
133 virtual bool CanWriteFile(
const char *) ITK_OVERRIDE;
137 virtual
void WriteImageInformation() ITK_OVERRIDE;
141 virtual
void Write(const
void *buffer) ITK_OVERRIDE;
144 virtual
void SetWriterParameters( TemporalRatioType framesPerSecond,
147 unsigned int nChannels,
148 IOComponentType componentType ) ITK_OVERRIDE;
152 ~FileListVideoIO() ITK_OVERRIDE;
154 virtual
void PrintSelf(std::ostream & os,
Indent indent) const ITK_OVERRIDE;
166 bool VerifyExtensions( const std::vector<std::
string>& fileList ) const;
169 ITK_DISALLOW_COPY_AND_ASSIGN(FileListVideoIO);
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.
SmartPointer< const Self > ConstPointer
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.
double TemporalOffsetType