18 #ifndef itkFileListVideoIO_h
19 #define itkFileListVideoIO_h
22 #include "ITKVideoIOExport.h"
60 itkGetConstMacro(FileNames, std::vector<std::string>);
63 void SetFileName(
const std::string& fileList)
override;
64 void SetFileName(
const char* fileList)
override;
68 void FinishReadingOrWriting()
override;
73 static std::vector<std::string> SplitFileNames(
const std::string& fileList);
76 void SetReadFromFile()
override;
79 void SetReadFromCamera()
override;
83 bool CanReadFile(
const char *)
override;
86 bool CanReadCamera(
CameraIDType cameraID )
const override;
89 void ReadImageInformation()
override;
92 void Read(
void *buffer)
override;
101 return this->m_PositionInMSec;
105 return this->m_Ratio;
109 return this->m_FrameTotal;
113 return this->m_FramesPerSecond;
117 return this->m_CurrentFrame;
119 itkGetConstMacro(IFrameInterval,FrameOffsetType);
122 return this->m_LastIFrame;
127 double GetSpacing(
unsigned int i)
const override;
129 double GetOrigin(
unsigned int i)
const override;
131 std::vector< double > GetDirection(
unsigned int i)
const override;
135 bool CanWriteFile(
const char *)
override;
139 void WriteImageInformation()
override;
143 void Write(
const void *buffer)
override;
146 void SetWriterParameters( TemporalRatioType framesPerSecond,
147 const std::vector<SizeValueType>& dim,
149 unsigned int nChannels,
150 IOComponentType componentType )
override;
156 void PrintSelf(std::ostream & os,
Indent indent)
const override;
168 bool VerifyExtensions(
const std::vector<std::string>& fileList )
const;
178 #endif // itkFileListVideoIO_h
double TemporalOffsetType
Light weight base class for most itk classes.
Abstract superclass defines video IO interface.
TemporalOffsetType GetPositionInMSec() const override
SizeValueType FrameOffsetType
Abstract superclass defines image IO interface.
TemporalOffsetType GetRatio() const override
VideoIO object for reading and writing videos as a sequence of frame files.
FrameOffsetType GetCurrentFrame() const override
TemporalRatioType GetFramesPerSecond() const override
std::vector< std::string > m_FileNames
ImageIOBase::Pointer m_ImageIO
SizeValueType CameraIDType
Control indentation during Print() invocation.
Base class for most ITK classes.
FrameOffsetType GetLastIFrame() const override
FrameOffsetType GetFrameTotal() const override