18#ifndef itkVideoStream_h
19#define itkVideoStream_h
41template <
typename TFrameType>
80 return FrameType::ImageDimension;
131 const SpatialRegionMapType &
142 const SpatialRegionMapType &
153 const SpacingMapType &
175 const DirectionMapType &
186 const NumberOfComponentsPerPixelMapType &
318 video->InitializeEmptyFrames();
322 SpatialRegionType::SizeType size;
323 SpatialRegionType::IndexType start;
327 bufferedSpatialRegion.SetSize( size );
328 bufferedSpatialRegion.SetIndex( start );
329 video->SetAllBufferedSpatialRegions( bufferedSpatialRegion );
373#ifndef ITK_MANUAL_INSTANTIATION
374# include "itkVideoStream.hxx"
Base class for all data objects in ITK.
Control indentation during Print() invocation.
void Print(std::ostream &os, Indent indent=0) const
Implements transparent reference counting.
RingBuffer< DataObject > BufferType
BufferType::Pointer m_DataObjectBuffer
const SpacingMapType & GetSpacingCache() const
WeakPointer< const Self > ConstWeakPointer
void GetNumberOfComponentsPerPixelCache(NumberOfComponentsPerPixelMapType map)
RingBuffer< DataObject > BufferType
BufferType * GetFrameBuffer()
void PrintSelf(std::ostream &os, Indent indent) const override
void SetFrameLargestPossibleSpatialRegion(SizeValueType frameNumber, SpatialRegionType region)
void SetAllBufferedSpatialRegions(SpatialRegionType region)
PointMapType m_OriginCache
const DirectionType & GetFrameDirection(SizeValueType frameNumber) const
void SetAllRequestedSpatialRegions(SpatialRegionType region)
void SetFrameRequestedSpatialRegion(SizeValueType frameNumber, SpatialRegionType region)
typename FrameType::RegionType SpatialRegionType
typename std::map< SizeValueType, NumberOfComponentsPerPixelType > NumberOfComponentsPerPixelMapType
void SetSpacingCache(SpacingMapType map)
~VideoStream() override=default
typename FrameType::Pointer FramePointer
const BufferType * GetFrameBuffer() const
void SetAllFramesDirection(DirectionType direction)
void SetAllLargestPossibleSpatialRegions(SpatialRegionType region)
const SpatialRegionType & GetFrameRequestedSpatialRegion(SizeValueType frameNumber) const
typename std::map< SizeValueType, DirectionType > DirectionMapType
typename std::map< SizeValueType, SpacingType > SpacingMapType
typename FrameType::PixelType PixelType
void InitializeEmptyFrames()
const SpatialRegionType & GetFrameBufferedSpatialRegion(SizeValueType frameNumber) const
const DirectionMapType & GetDirectionCache() const
void SetMinimumBufferSize(SizeValueType minimumNumberOfFrames)
const NumberOfComponentsPerPixelMapType & GetNumberOfComponentsPerPixelCache() const
SmartPointer< const Self > ConstPointer
void SetBufferedSpatialRegionCache(SpatialRegionMapType map)
const SpatialRegionType & GetFrameLargestPossibleSpatialRegion(SizeValueType frameNumber) const
const PointType & GetFrameOrigin(SizeValueType frameNumber) const
void SetDirectionCache(DirectionMapType map)
FrameType * GetFrame(SizeValueType frameNumber)
void SetFrameBufferedSpatialRegion(SizeValueType frameNumber, SpatialRegionType region)
typename FrameType::IndexType IndexType
typename FrameType::DirectionType DirectionType
SpatialRegionMapType m_RequestedSpatialRegionCache
void SetFrameBuffer(BufferType *buffer)
const FrameType * GetFrame(SizeValueType frameNumber) const
typename FrameType::SpacingType SpacingType
SpacingMapType m_SpacingCache
typename FrameType::PointType PointType
TemporalDataObject Superclass
void SetOriginCache(PointMapType map)
void Graft(const DataObject *data) override
const PointMapType & GetOriginCache() const
typename std::map< SizeValueType, PointType > PointMapType
const NumberOfComponentsPerPixelType & GetFrameNumberOfComponentsPerPixel(SizeValueType frameNumber) const
NumberOfComponentsPerPixelMapType m_NumberOfComponentsPerPixelCache
unsigned int NumberOfComponentsPerPixelType
void SetAllFramesSpacing(SpacingType spacing)
SpatialRegionMapType m_BufferedSpatialRegionCache
DirectionMapType m_DirectionCache
static constexpr unsigned int FrameDimension
typename std::map< SizeValueType, SpatialRegionType > SpatialRegionMapType
void SetLargestPossibleSpatialRegionCache(SpatialRegionMapType map)
void SetFrameOrigin(SizeValueType frameNumber, PointType origin)
const SpatialRegionMapType & GetRequestedSpatialRegionCache() const
void SetAllFramesNumberOfComponentsPerPixel(NumberOfComponentsPerPixelType n)
typename FrameType::ConstPointer FrameConstPointer
void SetAllFramesOrigin(PointType origin)
SmartPointer< Self > Pointer
void SetRequestedSpatialRegionCache(SpatialRegionMapType map)
typename FrameType::SizeType SizeType
static unsigned int GetFrameDimension()
void SetFrame(SizeValueType frameNumber, FramePointer frame)
const SpatialRegionMapType & GetBufferedSpatialRegionCache() const
void SetFrameSpacing(SizeValueType frameNumber, SpacingType spacing)
const SpatialRegionMapType & GetLargestPossibleSpatialRegionCache() const
const SpacingType & GetFrameSpacing(SizeValueType frameNumber) const
void SetFrameDirection(SizeValueType frameNumber, DirectionType direction)
SpatialRegionMapType m_LargestPossibleSpatialRegionCache
void SetFrameNumberOfComponentsPerPixel(SizeValueType frameNumber, unsigned int n)
Implements a weak reference to an object.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType