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;
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;
142 const std::vector<SizeValueType>& dim,
144 unsigned int nChannels,
151 virtual void PrintSelf(std::ostream & os,
Indent indent)
const ITK_OVERRIDE;
163 bool VerifyExtensions(
const std::vector<std::string>& fileList )
const;
167 void operator=(
const Self &) ITK_DELETE_FUNCTION;
178 #endif // itkFileListVideoIO_h Abstract superclass defines video IO interface.
virtual FrameOffsetType GetCurrentFrame() const override
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
VideoIO object for reading and writing videos as a sequence of frame files.
SizeValueType FrameOffsetType
virtual TemporalRatioType GetFramesPerSecond() const override
SmartPointer< Self > Pointer
std::vector< std::string > m_FileNames
SizeValueType CameraIDType
ImageIOBase::Pointer m_ImageIO
virtual TemporalOffsetType GetRatio() const override
virtual FrameOffsetType GetLastIFrame() const override
virtual FrameOffsetType GetFrameTotal() const override
Control indentation during Print() invocation.
double TemporalOffsetType