OTB  10.0.0
Orfeo Toolbox
otbSarConcatenateBurstsImageFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2024 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 
22 #ifndef otbSarConcatenateBurstsImageFilter_h
23 #define otbSarConcatenateBurstsImageFilter_h
24 
25 #include "itkImageToImageFilter.h"
26 #include "otbTileImageFilter.h"
27 #include "otbImageMetadata.h"
28 
29 namespace otb
30 {
56 template <class TImage>
57 class ITK_EXPORT SarConcatenateBurstsImageFilter : public TileImageFilter<TImage>
58 {
59 public:
63  typedef itk::SmartPointer<Self> Pointer;
64  typedef itk::SmartPointer<const Self> ConstPointer;
65 
67  typedef TImage ImageType;
68  typedef typename ImageType::Pointer ImagePointerType;
69  typedef typename ImageType::SizeType SizeType;
70  typedef typename ImageType::RegionType RegionType;
71  typedef typename ImageType::PointType PointType;
72 
73  typedef std::pair<unsigned long, unsigned long> RecordType;
74  typedef std::vector<RecordType> LinesRecordVectorType;
75 
77  itkNewMacro(Self);
78 
81 
82  // Setter
83  void SetSLCImageMetadata(ImageMetadata sarImd);
84 
85  bool getDeburstLinesAndSamples(LinesRecordVectorType& linesRecord, LinesRecordVectorType& samplesRecord, unsigned int first_burstInd,
86  bool inputWithInvalidPixels);
87 
88 protected:
91 
94 
96  void GenerateOutputInformation() override;
97 
98  void VerifyInputInformation() const override
99  {
100 
101  }
102 
103 private:
105  void operator=(const Self&) = delete;
106 
107  // SLC Image Metadata
109 
110  unsigned int m_Offset_OriginL;
111 };
112 
113 } // end namespace itk
114 
115 #ifndef OTB_MANUAL_INSTANTIATION
117 #endif
118 
119 #endif
Generic class containing image metadata used in OTB.
This filter allows making a spatial mosaic from a set of bursts.
SarConcatenateBurstsImageFilter(const Self &)=delete
std::pair< unsigned long, unsigned long > RecordType
void operator=(const Self &)=delete
This filter allows making a spatial mosaic from a set of images.
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.