18 #ifndef itkVideoStream_h
19 #define itkVideoStream_h
41 template <
typename TFrameType>
57 using typename Superclass::BufferType;
76 static constexpr
unsigned int FrameDimension = FrameType::ImageDimension;
80 return FrameType::ImageDimension;
99 InitializeEmptyFrames();
105 return reinterpret_cast<BufferType *>(m_DataObjectBuffer.GetPointer());
110 return reinterpret_cast<BufferType *>(m_DataObjectBuffer.GetPointer());
116 SetFrameBuffer(BufferType * buffer);
119 const SpatialRegionMapType &
122 return m_LargestPossibleSpatialRegionCache;
127 m_LargestPossibleSpatialRegionCache = map;
131 const SpatialRegionMapType &
134 return m_RequestedSpatialRegionCache;
139 m_RequestedSpatialRegionCache = map;
142 const SpatialRegionMapType &
145 return m_BufferedSpatialRegionCache;
150 m_BufferedSpatialRegionCache = map;
153 const SpacingMapType &
156 return m_SpacingCache;
161 m_SpacingCache = map;
167 return m_OriginCache;
175 const DirectionMapType &
178 return m_DirectionCache;
183 m_DirectionCache = map;
186 const NumberOfComponentsPerPixelMapType &
189 return m_NumberOfComponentsPerPixelCache;
194 m_NumberOfComponentsPerPixelCache = map;
213 SetFrameLargestPossibleSpatialRegion(
SizeValueType frameNumber, SpatialRegionType region);
215 const SpatialRegionType &
216 GetFrameLargestPossibleSpatialRegion(
SizeValueType frameNumber)
const;
220 SetFrameRequestedSpatialRegion(
SizeValueType frameNumber, SpatialRegionType region);
222 const SpatialRegionType &
223 GetFrameRequestedSpatialRegion(
SizeValueType frameNumber)
const;
227 SetFrameBufferedSpatialRegion(
SizeValueType frameNumber, SpatialRegionType region);
229 const SpatialRegionType &
230 GetFrameBufferedSpatialRegion(
SizeValueType frameNumber)
const;
234 SetFrameSpacing(
SizeValueType frameNumber, SpacingType spacing);
255 SetFrameNumberOfComponentsPerPixel(
SizeValueType frameNumber,
unsigned int n);
257 const NumberOfComponentsPerPixelType &
258 GetFrameNumberOfComponentsPerPixel(
SizeValueType frameNumber)
const;
264 SetAllLargestPossibleSpatialRegions(SpatialRegionType region);
270 SetAllRequestedSpatialRegions(SpatialRegionType region);
276 SetAllBufferedSpatialRegions(SpatialRegionType region);
282 SetAllFramesSpacing(SpacingType spacing);
300 SetAllFramesNumberOfComponentsPerPixel(NumberOfComponentsPerPixelType n);
318 video->InitializeEmptyFrames();
321 SpatialRegionType bufferedSpatialRegion;
327 bufferedSpatialRegion.SetSize( size );
328 bufferedSpatialRegion.SetIndex( start );
329 video->SetAllBufferedSpatialRegions( bufferedSpatialRegion );
352 Superclass::Print(os, indent);
373 #ifndef ITK_MANUAL_INSTANTIATION
374 # include "itkVideoStream.hxx"