ITK
6.0.0
Insight Toolkit
|
#include <itkImageToVideoFilter.h>
Converts Image to VideoStream representation with a temporal axis.
ImageToVideoFilter is a ProcessObject for converting an Image or VectorImage to a VideoStream. The user provides an input image of at least two dimensions and specifies one axis to interpret as the temporal axis. Image slices along the designated axis are grafted into video frames in the output VideoStream. The filter assumes that temporal samples are axis-aligned (time cannot be rotated) and the temporal accessor index matches its spatial index (no permutation).
Other than the specified temporal axis, axis order is preserved and orientation and spacing information is copied over to each VideoStream frame from the original Image. Image orientation is understood as having LPS (left-posterior-superior) interpretation.
ImageToVideoFilter inherits from VideoSource to indicate that its output is a VideoStream. However, many methods are overridden to properly handle Image rather than VideoStream input to ImageToVideoFilter.
Definition at line 53 of file itkImageToVideoFilter.h.
Public Types | |
using | ConstPointer = SmartPointer< const Self > |
using | ConstWeakPointer = WeakPointer< const Self > |
using | InputImageConstPointer = typename InputImageType::ConstPointer |
using | InputImageIndexType = typename InputImageType::IndexType |
using | InputImagePixelType = typename InputImageType::PixelType |
using | InputImagePointer = typename InputImageType::Pointer |
using | InputImageRegionType = typename InputImageType::RegionType |
using | InputImageType = TInputImage |
using | OutputFrameSpatialRegionType = typename Superclass::OutputFrameSpatialRegionType |
using | OutputFrameType = typename Superclass::OutputFrameType |
using | OutputTemporalRegionType = typename TOutputVideoStream::TemporalRegionType |
using | OutputVideoStreamType = TOutputVideoStream |
using | Pointer = SmartPointer< Self > |
using | Self = ImageToVideoFilter< InputImageType, OutputVideoStreamType > |
using | Superclass = VideoSource< OutputVideoStreamType > |
Public Member Functions | |
const InputImageType * | GetInput () const |
const InputImageType * | GetInput (unsigned int idx) const |
const char * | GetNameOfClass () const override |
virtual void | SetInput (const InputImageType *image) |
virtual void | SetInput (unsigned int idx, const InputImageType *videoStream) |
virtual IndexValueType | GetFrameAxis () |
virtual void | SetFrameAxis (IndexValueType _arg) |
Static Public Member Functions | |
static Pointer | New () |
Static Public Attributes | |
static constexpr unsigned int | InputImageDimension = TInputImage::ImageDimension |
Protected Member Functions | |
void | GenerateData () override |
void | GenerateInputRequestedRegion () override |
void | GenerateOutputInformation () override |
void | GenerateOutputRequestedRegion (DataObject *output) override |
InputImageType * | GetInput () |
InputImageType * | GetInput (unsigned int idx) |
ImageToVideoFilter () | |
void | PrintSelf (std::ostream &os, Indent indent) const override |
void | UpdateOutputInformation () override |
~ImageToVideoFilter () override=default | |
Private Attributes | |
IndexValueType | m_FrameAxis { TInputImage::ImageDimension - 1 } |
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::ConstPointer = SmartPointer<const Self> |
Definition at line 64 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::ConstWeakPointer = WeakPointer<const Self> |
Definition at line 65 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::InputImageConstPointer = typename InputImageType::ConstPointer |
Definition at line 74 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::InputImageIndexType = typename InputImageType::IndexType |
Definition at line 77 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::InputImagePixelType = typename InputImageType::PixelType |
Definition at line 76 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::InputImagePointer = typename InputImageType::Pointer |
Input type alias
Definition at line 73 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::InputImageRegionType = typename InputImageType::RegionType |
Definition at line 75 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::InputImageType = TInputImage |
Standard class type aliases
Definition at line 59 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::OutputFrameSpatialRegionType = typename Superclass::OutputFrameSpatialRegionType |
Definition at line 69 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::OutputFrameType = typename Superclass::OutputFrameType |
Output type alias
Definition at line 68 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::OutputTemporalRegionType = typename TOutputVideoStream::TemporalRegionType |
Definition at line 70 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::OutputVideoStreamType = TOutputVideoStream |
Definition at line 60 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::Pointer = SmartPointer<Self> |
Definition at line 63 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::Self = ImageToVideoFilter<InputImageType, OutputVideoStreamType> |
Definition at line 61 of file itkImageToVideoFilter.h.
using itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::Superclass = VideoSource<OutputVideoStreamType> |
Definition at line 62 of file itkImageToVideoFilter.h.
|
protected |
|
overrideprotecteddefault |
|
overrideprotected |
Graft pixel data from input image onto output video frames
|
overrideprotected |
Override the default implementation of GenerateInputRequestedRegion from VideoSource so that we only get spatial regions from the image input.
|
overrideprotected |
Set up the output VideoStream via spatial and temporal regions derived from the spatial regions of the input Image.
|
overrideprotected |
Generate the requested regions in the output VideoStream from the size of the available input Image.
|
virtual |
Allow the user to specify the axis in the input image that will correspond to the temporal axis in the output temporal object.
|
protected |
Get a non-const version of the input for internal use when setting input's requested regions. This is the only time input should be modified
const InputImageType * itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::GetInput | ( | ) | const |
Get the input Image for this process object
|
protected |
const InputImageType * itk::ImageToVideoFilter< TInputImage, TOutputVideoStream >::GetInput | ( | unsigned int | idx | ) | const |
|
override |
|
static |
|
overrideprotected |
|
virtual |
Allow the user to specify the axis in the input image that will correspond to the temporal axis in the output temporal object.
|
virtual |
|
virtual |
|
overrideprotected |
Override the Superclass::UpdateOutputInformation method so that the temporal output region is defined entirely within the GenerateOutputInformation method.
|
staticconstexpr |
Definition at line 78 of file itkImageToVideoFilter.h.
|
private |
Index representing the axis accessor index to use for slicing the input Image into frames for the output VideoStream. Default to slowest-moving axis in the input Image.
Definition at line 156 of file itkImageToVideoFilter.h.