OTB  9.0.0
Orfeo Toolbox
otbOneRIBandImageToOneComplexBandImage.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 otbOneRIBandImageToOneComplexBandImage_h
22 #define otbOneRIBandImageToOneComplexBandImage_h
23 
24 #include "itkImageToImageFilter.h"
25 #include "itkImage.h"
26 #include "itkNumericTraits.h"
27 
28 
29 /*
30  * Inputs : one image made of two real bands
31  * Output : one image made of one complex band
32  *
33  * */
34 
35 namespace otb
36 {
37 
38 
39 template <class TInputImage, class TOutputImage>
40 class ITK_EXPORT OneRIBandImageToOneComplexBandImage : 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(OneRIBandImageToOneComplexBandImage, 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 BeforeThreadedGenerateData(void) override;
78  void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId) override;
79 
80 private:
81  OneRIBandImageToOneComplexBandImage(const Self&) = delete;
82  void operator=(const Self&) = delete;
83 };
84 } // end namespace otb
85 
86 #ifndef OTB_MANUAL_INSTANTIATION
88 #endif
89 
90 #endif
otb::OneRIBandImageToOneComplexBandImage::OutputImageRegionType
OutputImageType::RegionType OutputImageRegionType
Definition: otbOneRIBandImageToOneComplexBandImage.h:67
otb::OneRIBandImageToOneComplexBandImage::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbOneRIBandImageToOneComplexBandImage.h:54
otb::OneRIBandImageToOneComplexBandImage::InputImageType
TInputImage InputImageType
Definition: otbOneRIBandImageToOneComplexBandImage.h:48
otb::OneRIBandImageToOneComplexBandImage::~OneRIBandImageToOneComplexBandImage
~OneRIBandImageToOneComplexBandImage() override
Definition: otbOneRIBandImageToOneComplexBandImage.h:72
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::OneRIBandImageToOneComplexBandImage::InputImageRegionType
InputImageType::RegionType InputImageRegionType
Definition: otbOneRIBandImageToOneComplexBandImage.h:66
otb::OneRIBandImageToOneComplexBandImage::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbOneRIBandImageToOneComplexBandImage.h:55
otb::OneRIBandImageToOneComplexBandImage
Definition: otbOneRIBandImageToOneComplexBandImage.h:40
otb::OneRIBandImageToOneComplexBandImage::Superclass
itk::ImageToImageFilter< InputImageType, OutputImageType > Superclass
Definition: otbOneRIBandImageToOneComplexBandImage.h:53
otb::OneRIBandImageToOneComplexBandImage::OutputPixelType
OutputImageType::PixelType OutputPixelType
Definition: otbOneRIBandImageToOneComplexBandImage.h:64
otb::OneRIBandImageToOneComplexBandImage::Self
OneRIBandImageToOneComplexBandImage Self
Definition: otbOneRIBandImageToOneComplexBandImage.h:52
otb::OneRIBandImageToOneComplexBandImage::InputRealType
itk::NumericTraits< InputPixelType >::RealType InputRealType
Definition: otbOneRIBandImageToOneComplexBandImage.h:65
otb::OneRIBandImageToOneComplexBandImage::InputPixelType
InputImageType::PixelType InputPixelType
Definition: otbOneRIBandImageToOneComplexBandImage.h:61
otb::OneRIBandImageToOneComplexBandImage::OutputImageType
TOutputImage OutputImageType
Definition: otbOneRIBandImageToOneComplexBandImage.h:49
otbOneRIBandImageToOneComplexBandImage.hxx