ITK  5.2.0
Insight Toolkit
itkDecimateFramesVideoFilter.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  * 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 itkDecimateFramesVideoFilter_h
19 #define itkDecimateFramesVideoFilter_h
20 
21 #include "itkVideoToVideoFilter.h"
22 
23 namespace itk
24 {
25 
35 template <typename TVideoStream>
36 class ITK_TEMPLATE_EXPORT DecimateFramesVideoFilter : public VideoToVideoFilter<TVideoStream, TVideoStream>
37 {
38 public:
39  ITK_DISALLOW_COPY_AND_MOVE(DecimateFramesVideoFilter);
40 
42  using VideoStreamType = TVideoStream;
43  using InputVideoStreamType = TVideoStream;
44  using OutputVideoStreamType = TVideoStream;
50 
51  using FrameType = typename TVideoStream::FrameType;
52  using PixelType = typename FrameType::PixelType;
54 
55  itkNewMacro(Self);
56 
58 
60  void
61  SetPreservedFrameSpacing(SizeValueType numFrames);
63  GetPreservedFrameSpacing();
65 
66 protected:
69  ~DecimateFramesVideoFilter() override = default;
71 
73  void
74  PrintSelf(std::ostream & os, Indent indent) const override;
75 
78  void
79  ThreadedGenerateData(const FrameSpatialRegionType & outputRegionForThread, int threadId) override;
80 
81 private:
82 }; // end class DecimateFramesVideoFilter
83 
84 } // end namespace itk
85 
86 #ifndef ITK_MANUAL_INSTANTIATION
87 # include "itkDecimateFramesVideoFilter.hxx"
88 #endif
89 
90 #endif
itk::VideoToVideoFilter
Base class for filters that use a VideoStream as input and output.
Definition: itkVideoToVideoFilter.h:45
itk::DecimateFramesVideoFilter::VideoStreamType
TVideoStream VideoStreamType
Definition: itkDecimateFramesVideoFilter.h:42
itkVideoToVideoFilter.h
itk::DecimateFramesVideoFilter::FrameType
typename TVideoStream::FrameType FrameType
Definition: itkDecimateFramesVideoFilter.h:51
itk::DecimateFramesVideoFilter::FrameSpatialRegionType
typename FrameType::RegionType FrameSpatialRegionType
Definition: itkDecimateFramesVideoFilter.h:53
itk::SmartPointer< Self >
itk::Indent
Control indentation during Print() invocation.
Definition: itkIndent.h:49
itk::LightObject
Light weight base class for most itk classes.
Definition: itkLightObject.h:59
itk::DecimateFramesVideoFilter::PixelType
typename FrameType::PixelType PixelType
Definition: itkDecimateFramesVideoFilter.h:52
itk::GTest::TypedefsAndConstructors::Dimension2::RegionType
ImageBaseType::RegionType RegionType
Definition: itkGTestTypedefsAndConstructors.h:54
itk::WeakPointer
Implements a weak reference to an object.
Definition: itkWeakPointer.h:44
itk::DecimateFramesVideoFilter::OutputVideoStreamType
TVideoStream OutputVideoStreamType
Definition: itkDecimateFramesVideoFilter.h:44
itk
The "itk" namespace contains all Insight Segmentation and Registration Toolkit (ITK) classes....
Definition: itkAnnulusOperator.h:24
itk::DecimateFramesVideoFilter
Reduce a video's frame-rate by keeping every Nth frame.
Definition: itkDecimateFramesVideoFilter.h:36
itk::SizeValueType
unsigned long SizeValueType
Definition: itkIntTypes.h:83
itk::DecimateFramesVideoFilter::InputVideoStreamType
TVideoStream InputVideoStreamType
Definition: itkDecimateFramesVideoFilter.h:43