OTB  9.0.0
Orfeo Toolbox
otbNRIBandImagesToOneNComplexBandsImage.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2022 Centre National d'Etudes Spatiales (CNES)
3  *
4  * This file is part of Orfeo Toolbox
5  *
6  * https://www.orfeo-toolbox.org/
7  *
8  * Licensed under the Apache License, Version 2.0 (the "License");
9  * you may not use this file except in compliance with the License.
10  * You may obtain a copy of the License at
11  *
12  * http://www.apache.org/licenses/LICENSE-2.0
13  *
14  * Unless required by applicable law or agreed to in writing, software
15  * distributed under the License is distributed on an "AS IS" BASIS,
16  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17  * See the License for the specific language governing permissions and
18  * limitations under the License.
19  */
20 
21 #ifndef otbNRIBandImagesToOneNComplexBandsImage_h
22 #define otbNRIBandImagesToOneNComplexBandsImage_h
23 
24 #include "itkImageToImageFilter.h"
25 #include "itkImage.h"
26 #include "itkNumericTraits.h"
27 
28 /*
29  * Inputs : N images made of two real bands
30  * Output : one single image made of N complex bands
31  *
32  * */
33 
34 
35 namespace otb
36 {
37 
38 
39 template <class TInputImage, class TOutputImage>
40 class ITK_EXPORT NRIBandImagesToOneNComplexBandsImage : public itk::ImageToImageFilter<TInputImage, TOutputImage>
41 {
42 public:
44  itkStaticConstMacro(InputImageDimension, unsigned int, TInputImage::ImageDimension);
45  itkStaticConstMacro(OutputImageDimension, unsigned int, TOutputImage::ImageDimension);
47 
48  typedef TInputImage InputImageType;
49  typedef TOutputImage OutputImageType;
50 
53  typedef itk::ImageToImageFilter<InputImageType, OutputImageType> Superclass;
54  typedef itk::SmartPointer<Self> Pointer;
55  typedef itk::SmartPointer<const Self> ConstPointer;
56 
58  itkNewMacro(Self);
59 
61  itkTypeMacro(NRIBandImagesToOneNComplexBandsImage, ImageToImageFilter);
62 
63  typedef typename InputImageType::PixelType InputPixelType;
64  typedef typename OutputImageType::PixelType OutputPixelType;
65  typedef typename itk::NumericTraits<InputPixelType>::RealType InputRealType;
66  typedef typename InputImageType::RegionType InputImageRegionType;
67  typedef typename OutputImageType::RegionType OutputImageRegionType;
68 
69 
70 protected:
73  {
74  }
75  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
76 
77  void GenerateOutputInformation(void) override;
78  void BeforeThreadedGenerateData(void) override;
79  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
80 
81 private:
82  NRIBandImagesToOneNComplexBandsImage(const Self&) = delete;
83  void operator=(const Self&) = delete;
84 };
85 } // end namespace otb
86 
87 #ifndef OTB_MANUAL_INSTANTIATION
89 #endif
90 
91 #endif
otb::NRIBandImagesToOneNComplexBandsImage::~NRIBandImagesToOneNComplexBandsImage
~NRIBandImagesToOneNComplexBandsImage() override
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:72
otb::NRIBandImagesToOneNComplexBandsImage::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:66
otb::NRIBandImagesToOneNComplexBandsImage::InputImageType
TInputImage InputImageType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:48
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::NRIBandImagesToOneNComplexBandsImage::OutputImageType
TOutputImage OutputImageType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:49
otb::NRIBandImagesToOneNComplexBandsImage::Superclass
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:53
otb::NRIBandImagesToOneNComplexBandsImage::Self
NRIBandImagesToOneNComplexBandsImage Self
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:52
otbNRIBandImagesToOneNComplexBandsImage.hxx
otb::NRIBandImagesToOneNComplexBandsImage::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:55
otb::NRIBandImagesToOneNComplexBandsImage::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:67
otb::NRIBandImagesToOneNComplexBandsImage::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:54
otb::NRIBandImagesToOneNComplexBandsImage
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:40
otb::NRIBandImagesToOneNComplexBandsImage::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:61
otb::NRIBandImagesToOneNComplexBandsImage::InputRealType
itk::NumericTraits< InputPixelType >::RealType InputRealType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:65
otb::NRIBandImagesToOneNComplexBandsImage::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbNRIBandImagesToOneNComplexBandsImage.h:64