ITK
4.9.0
Insight Segmentation and Registration Toolkit
|
#include <itkVideoFileWriter.h>
Writer that takes in a VideoStream and writes the frames to a file.
This class is a subclass of TemporalProcessObject which specifically takes a single VideoStream as input and writes the frames out to a file in sequence. A call to Update() will write the entire requested temporal region to the file. If no temporal region is requested, the largest possible will be used.
Definition at line 39 of file itkVideoFileWriter.h.
Static Public Member Functions | |
static Pointer | New () |
Static Public Member Functions inherited from itk::Object | |
static bool | GetGlobalWarningDisplay () |
static void | GlobalWarningDisplayOff () |
static void | GlobalWarningDisplayOn () |
static Pointer | New () |
static void | SetGlobalWarningDisplay (bool flag) |
Static Public Member Functions inherited from itk::LightObject | |
static void | BreakOnError () |
static Pointer | New () |
Protected Attributes | |
ImageIOBase::IOComponentType | m_ComponentType |
std::vector< SizeValueType > | m_Dimensions |
std::string | m_FileName |
std::string | m_FourCC |
TemporalRatioType | m_FramesPerSecond |
SizeValueType | m_NumberOfComponents |
TemporalRegion | m_OutputTemporalRegion |
IOBasePointer | m_VideoIO |
Protected Attributes inherited from itk::TemporalProcessObject | |
OffsetValueType | m_FrameSkipPerOutput |
SizeValueType | m_InputStencilCurrentFrameIndex |
SizeValueType | m_UnitInputNumberOfFrames |
SizeValueType | m_UnitOutputNumberOfFrames |
Protected Attributes inherited from itk::ProcessObject | |
TimeStamp | m_OutputInformationMTime |
bool | m_Updating |
Protected Attributes inherited from itk::LightObject | |
AtomicInt< int > | m_ReferenceCount |
Private Member Functions | |
void | operator= (const Self &) ITK_DELETE_FUNCTION |
VideoFileWriter (const Self &) ITK_DELETE_FUNCTION | |
typedef VideoStreamType::FrameType itk::VideoFileWriter< TInputVideoStream >::FrameType |
Definition at line 55 of file itkVideoFileWriter.h.
typedef VideoIOBase::Pointer itk::VideoFileWriter< TInputVideoStream >::IOBasePointer |
Definition at line 49 of file itkVideoFileWriter.h.
typedef VideoIOBase itk::VideoFileWriter< TInputVideoStream >::IOBaseType |
Definition at line 48 of file itkVideoFileWriter.h.
typedef FrameType::PixelType itk::VideoFileWriter< TInputVideoStream >::PixelType |
Definition at line 56 of file itkVideoFileWriter.h.
typedef SmartPointer<Self> itk::VideoFileWriter< TInputVideoStream >::Pointer |
Definition at line 46 of file itkVideoFileWriter.h.
typedef VideoFileWriter< TInputVideoStream> itk::VideoFileWriter< TInputVideoStream >::Self |
-TYPEDEFS------------------------------------------------------------—
Definition at line 44 of file itkVideoFileWriter.h.
typedef IOBaseType::SizeValueType itk::VideoFileWriter< TInputVideoStream >::SizeValueType |
Definition at line 50 of file itkVideoFileWriter.h.
typedef TemporalProcessObject itk::VideoFileWriter< TInputVideoStream >::Superclass |
Definition at line 45 of file itkVideoFileWriter.h.
typedef IOBaseType::TemporalRatioType itk::VideoFileWriter< TInputVideoStream >::TemporalRatioType |
Definition at line 51 of file itkVideoFileWriter.h.
typedef VideoStreamType::Pointer itk::VideoFileWriter< TInputVideoStream >::VideoStreamPointer |
Definition at line 54 of file itkVideoFileWriter.h.
typedef TInputVideoStream itk::VideoFileWriter< TInputVideoStream >::VideoStreamType |
Definition at line 53 of file itkVideoFileWriter.h.
|
protected |
-PROTECTED METHODS---------------------------------------------------—
|
protectedvirtual |
|
private |
|
virtual |
Create an object from an instance, potentially deferring to a factory. This method allows you to create an instance of an object that is exactly the same type as the referring object. This is useful in cases where an object has been cast back to a base class.
Reimplemented from itk::Object.
void itk::VideoFileWriter< TInputVideoStream >::FinishWriting | ( | ) |
Finish writing the video and close the file
|
virtual |
-PUBLIC METHODS---------------------------------------------------—— Specify the file to read. This is forwarded to the IO instance.
|
virtual |
Specify the FourCC to use for video encoding. FourCC, or four character code, is commonly used to denote the codec to be used to encode video by many libraries. See http://en.wikipedia.org/wiki/FourCC for more information.
|
virtual |
Specify the output FpS
const VideoStreamType* itk::VideoFileWriter< TInputVideoStream >::GetInput | ( | ) |
|
virtual |
Run-time type information (and related methods).
Reimplemented from itk::TemporalProcessObject.
|
virtual |
Get/Set the OutputTemporalRegion
|
protected |
Initialize output parameters
|
protected |
Set up the VideoIO using VideoIOFactory. Returns true if successful, false otherwise. Warning: this will overwrite any currently set VideoIO
|
static |
Method for creation through the object factory.
|
private |
|
overrideprotectedvirtual |
ITK print mechanism
Reimplemented from itk::TemporalProcessObject.
|
virtual |
-PUBLIC METHODS---------------------------------------------------—— Specify the file to read. This is forwarded to the IO instance.
|
virtual |
Specify the FourCC to use for video encoding. FourCC, or four character code, is commonly used to denote the codec to be used to encode video by many libraries. See http://en.wikipedia.org/wiki/FourCC for more information.
|
virtual |
Specify the output FpS
void itk::VideoFileWriter< TInputVideoStream >::SetInput | ( | const VideoStreamType * | input | ) |
|
virtual |
Get/Set the OutputTemporalRegion
void itk::VideoFileWriter< TInputVideoStream >::SetVideoIO | ( | IOBasePointer | videoIO | ) |
Manually set the VideoIO to use
|
overrideprotectedvirtual |
Override TemporalStreamingGenerateData to do the actual writing.
Reimplemented from itk::TemporalProcessObject.
|
overridevirtual |
Aliased to the Write() method to be consistent with the rest of the pipeline.
Reimplemented from itk::ProcessObject.
|
overridevirtual |
Write the entire video to a file, if possible. This is the same as calling write or update without setting an output temporal region.
Reimplemented from itk::ProcessObject.
void itk::VideoFileWriter< TInputVideoStream >::Write | ( | ) |
Write the requested temporal region to a file. If no OutputTemporalRegion has been set, the largest possible temporal region of the input will be used.
|
protected |
Definition at line 149 of file itkVideoFileWriter.h.
|
protected |
Definition at line 147 of file itkVideoFileWriter.h.
|
protected |
-PROTECTED MEMBERS------------------------------------------------—— The file to read
Definition at line 136 of file itkVideoFileWriter.h.
|
protected |
Definition at line 146 of file itkVideoFileWriter.h.
|
protected |
Parameters for writing
Definition at line 145 of file itkVideoFileWriter.h.
|
protected |
Definition at line 148 of file itkVideoFileWriter.h.
|
protected |
TemporalRegion to write out
Definition at line 142 of file itkVideoFileWriter.h.
|
protected |
The VideoIO used for writing
Definition at line 139 of file itkVideoFileWriter.h.