ITK  4.10.0
Insight Segmentation and Registration Toolkit
itkVideoToVideoFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2  *
3  * Copyright Insight Software Consortium
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0.txt
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  *
17  *=========================================================================*/
18 #ifndef itkVideoToVideoFilter_h
19 #define itkVideoToVideoFilter_h
20 
21 #include "itkVideoSource.h"
22 #include "itkVideoStream.h"
23 
24 namespace itk
25 {
26 
43 template< typename TInputVideoStream, typename TOutputVideoStream >
44 class VideoToVideoFilter : public VideoSource< TOutputVideoStream >
45 {
46 public:
47 
49  typedef TInputVideoStream InputVideoStreamType;
50  typedef TOutputVideoStream OutputVideoStreamType;
52  OutputVideoStreamType > Self;
57 
61 
63  typedef typename InputVideoStreamType::FrameType InputFrameType;
64  typedef typename InputVideoStreamType::SpatialRegionType InputFrameSpatialRegionType;
65  typedef typename InputVideoStreamType::IndexType InputFrameIndexType;
66  typedef typename InputVideoStreamType::PixelType InputFramePixelType;
67  typedef typename InputVideoStreamType::PointType InputFramePointType;
68  typedef typename InputVideoStreamType::SpacingType InputFrameSpacingType;
69  typedef typename InputVideoStreamType::SizeType InputFrameSizeType;
70  typedef typename InputVideoStreamType::DirectionType InputFrameDirectionType;
71 
72  itkNewMacro(Self);
73 
75  itkTypeMacro(VideoToVideoFilter, VideoSource);
76 
79  virtual void SetInput( const InputVideoStreamType* videoStream);
80 
81  virtual void SetInput( unsigned int idx, const InputVideoStreamType* videoStream);
82 
84  const InputVideoStreamType* GetInput() const;
85 
86  const InputVideoStreamType* GetInput(unsigned int idx) const;
87 
94  virtual void UpdateOutputInformation() ITK_OVERRIDE;
95 
96 protected:
97 
101  InputVideoStreamType* GetInput();
102 
103  InputVideoStreamType* GetInput(unsigned int idx);
104 
109  virtual void GenerateOutputRequestedRegion(DataObject* output) ITK_OVERRIDE;
110 
116  virtual void GenerateInputRequestedRegion() ITK_OVERRIDE;
117 
121  virtual void BeforeTemporalStreamingGenerateData() ITK_OVERRIDE;
122 
124  virtual ~VideoToVideoFilter();
125 
126  virtual void PrintSelf(std::ostream & os, Indent indent) const ITK_OVERRIDE;
127 
128 private:
129 
130  VideoToVideoFilter(const Self &) ITK_DELETE_FUNCTION;
131  void operator=(const Self &) ITK_DELETE_FUNCTION;
132 
133 }; // end class VideoToVideoFilter
134 
135 } // end namespace itk
136 
137 #ifndef ITK_MANUAL_INSTANTIATION
138 #include "itkVideoToVideoFilter.hxx"
139 #endif
140 
141 #endif
SmartPointer< const Self > ConstPointer
VideoToVideoFilter< InputVideoStreamType, OutputVideoStreamType > Self
virtual void GenerateInputRequestedRegion() override
VideoSource< OutputVideoStreamType > Superclass
SmartPointer< Self > Pointer
virtual void PrintSelf(std::ostream &os, Indent indent) const override
virtual void UpdateOutputInformation() override
STL namespace.
Superclass::OutputFrameType OutputFrameType
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes...
Definition: itkArray.h:30
Implements a weak reference to an object.
A TemporalProcessObject that produces a VideoStream.
InputVideoStreamType::PointType InputFramePointType
virtual void GenerateOutputRequestedRegion(DataObject *output) override
InputVideoStreamType::PixelType InputFramePixelType
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
Protected method for setting indexed and named inputs.
TOutputVideoStream OutputVideoStreamType
virtual void BeforeTemporalStreamingGenerateData() override
OutputVideoStreamType::SpatialRegionType OutputFrameSpatialRegionType
InputVideoStreamType::IndexType InputFrameIndexType
Base class for filters that use a VideoStream as input and output.
OutputVideoStreamType::FrameType OutputFrameType
InputVideoStreamType::DirectionType InputFrameDirectionType
Superclass::OutputFrameSpatialRegionType OutputFrameSpatialRegionType
InputVideoStreamType::SizeType InputFrameSizeType
InputVideoStreamType::FrameType InputFrameType
Control indentation during Print() invocation.
Definition: itkIndent.h:49
virtual void SetInput(const InputVideoStreamType *videoStream)
InputVideoStreamType::SpacingType InputFrameSpacingType
Base class for all data objects in ITK.
WeakPointer< const Self > ConstWeakPointer
InputVideoStreamType::SpatialRegionType InputFrameSpatialRegionType
const InputVideoStreamType * GetInput() const
TInputVideoStream InputVideoStreamType