ITK  4.3.0
Insight Segmentation and Registration Toolkit
itkFrameDifferenceVideoFilter.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 __itkFrameDifferenceVideoFilter_h
19 #define __itkFrameDifferenceVideoFilter_h
20 
21 #include "itkVideoToVideoFilter.h"
22 
23 namespace itk
24 {
25 
35 template<class TInputVideoStream, class TOutputVideoStream>
36 class ITK_EXPORT FrameDifferenceVideoFilter :
37  public VideoToVideoFilter<TInputVideoStream, TOutputVideoStream>
38 {
39 public:
40 
42  typedef TInputVideoStream InputVideoStreamType;
43  typedef TOutputVideoStream OutputVideoStreamType;
51 
52  typedef typename TInputVideoStream::FrameType InputFrameType;
53  typedef typename InputFrameType::PixelType InputPixelType;
54  typedef typename InputFrameType::RegionType InputFrameSpatialRegionType;
55  typedef typename TOutputVideoStream::FrameType OutputFrameType;
56  typedef typename OutputFrameType::PixelType OutputPixelType;
57  typedef typename OutputFrameType::RegionType OutputFrameSpatialRegionType;
58 
59  itkNewMacro(Self);
60 
62 
64  void SetFrameOffset(SizeValueType numFrames);
65  SizeValueType GetFrameOffset();
67 
68 protected:
69 
73 
75  virtual void PrintSelf(std::ostream & os, Indent indent) const;
76 
79  virtual void ThreadedGenerateData(
80  const OutputFrameSpatialRegionType& outputRegionForThread,
81  int threadId);
82 
83 private:
84  FrameDifferenceVideoFilter(const Self &); // purposely not implemented
85  void operator=(const Self &); // purposely not implemented
86 
87 
88 }; // end class FrameDifferenceVideoFilter
89 
90 } // end namespace itk
91 
92 #ifndef ITK_MANUAL_INSTANTIATION
93 #include "itkFrameDifferenceVideoFilter.hxx"
94 #endif
95 
96 #endif
97