ITK  6.0.0
Insight Toolkit
itkFrameDifferenceVideoFilter.h
Go to the documentation of this file.
1/*=========================================================================
2 *
3 * Copyright NumFOCUS
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 * https://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
22
23namespace itk
24{
25
36template <typename TInputVideoStream, typename TOutputVideoStream>
37class ITK_TEMPLATE_EXPORT FrameDifferenceVideoFilter : public VideoToVideoFilter<TInputVideoStream, TOutputVideoStream>
38{
39public:
40 ITK_DISALLOW_COPY_AND_MOVE(FrameDifferenceVideoFilter);
41
43 using InputVideoStreamType = TInputVideoStream;
44 using OutputVideoStreamType = TOutputVideoStream;
50
51 using InputFrameType = typename TInputVideoStream::FrameType;
52 using InputPixelType = typename InputFrameType::PixelType;
54 using OutputFrameType = typename TOutputVideoStream::FrameType;
55 using OutputPixelType = typename OutputFrameType::PixelType;
57
58 itkNewMacro(Self);
59
60 itkOverrideGetNameOfClassMacro(FrameDifferenceVideoFilter);
61
63 void
69protected:
72 ~FrameDifferenceVideoFilter() override = default;
76 void
77 PrintSelf(std::ostream & os, Indent indent) const override;
78
81 void
82 ThreadedGenerateData(const OutputFrameSpatialRegionType & outputRegionForThread, int threadId) override;
83
84private:
85}; // end class FrameDifferenceVideoFilter
86
87} // end namespace itk
88
89#ifndef ITK_MANUAL_INSTANTIATION
90# include "itkFrameDifferenceVideoFilter.hxx"
91#endif
92
93#endif
Compute the squared intensity difference between frame x and frame x+n.
void PrintSelf(std::ostream &os, Indent indent) const override
typename InputFrameType::PixelType InputPixelType
void ThreadedGenerateData(const OutputFrameSpatialRegionType &outputRegionForThread, int threadId) override
typename OutputFrameType::PixelType OutputPixelType
void SetFrameOffset(SizeValueType numFrames)
~FrameDifferenceVideoFilter() override=default
Control indentation during Print() invocation.
Definition: itkIndent.h:50
Light weight base class for most itk classes.
typename OutputVideoStreamType::SpatialRegionType OutputFrameSpatialRegionType
typename OutputVideoStreamType::FrameType OutputFrameType
TOutputVideoStream OutputVideoStreamType
Base class for filters that use a VideoStream as input and output.
typename InputVideoStreamType::FrameType InputFrameType
typename InputVideoStreamType::SpatialRegionType InputFrameSpatialRegionType
TInputVideoStream InputVideoStreamType
Implements a weak reference to an object.
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
unsigned long SizeValueType
Definition: itkIntTypes.h:86