OTB  9.0.0
Orfeo Toolbox
otbSarConcatenateBurstsImageFilter.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 
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 
99 private:
100  SarConcatenateBurstsImageFilter(const Self&) = delete;
101  void operator=(const Self&) = delete;
102 
103  // SLC Image Metadata
105 
106  unsigned int m_Offset_OriginL;
107 };
108 
109 } // end namespace itk
110 
111 #ifndef OTB_MANUAL_INSTANTIATION
113 #endif
114 
115 #endif
otb::SarConcatenateBurstsImageFilter::ConstPointer
itk::SmartPointer< const Self > ConstPointer
Definition: otbSarConcatenateBurstsImageFilter.h:64
otb::SarConcatenateBurstsImageFilter::m_Offset_OriginL
unsigned int m_Offset_OriginL
Definition: otbSarConcatenateBurstsImageFilter.h:106
otb::SarConcatenateBurstsImageFilter::LinesRecordVectorType
std::vector< RecordType > LinesRecordVectorType
Definition: otbSarConcatenateBurstsImageFilter.h:74
otb::SarConcatenateBurstsImageFilter::Pointer
itk::SmartPointer< Self > Pointer
Definition: otbSarConcatenateBurstsImageFilter.h:63
otbSarConcatenateBurstsImageFilter.hxx
otb::SarConcatenateBurstsImageFilter::m_SLCImd
ImageMetadata m_SLCImd
Definition: otbSarConcatenateBurstsImageFilter.h:104
otb::SarConcatenateBurstsImageFilter
This filter allows making a spatial mosaic from a set of bursts.
Definition: otbSarConcatenateBurstsImageFilter.h:57
otb::SarConcatenateBurstsImageFilter::Self
SarConcatenateBurstsImageFilter Self
Definition: otbSarConcatenateBurstsImageFilter.h:61
otb
The "otb" namespace contains all Orfeo Toolbox (OTB) classes.
Definition: otbJoinContainer.h:32
otb::SarConcatenateBurstsImageFilter::RecordType
std::pair< unsigned long, unsigned long > RecordType
Definition: otbSarConcatenateBurstsImageFilter.h:73
otb::SarConcatenateBurstsImageFilter::Superclass
TileImageFilter< TImage > Superclass
Definition: otbSarConcatenateBurstsImageFilter.h:62
otb::SarConcatenateBurstsImageFilter::RegionType
ImageType::RegionType RegionType
Definition: otbSarConcatenateBurstsImageFilter.h:70
otb::SarConcatenateBurstsImageFilter::SizeType
ImageType::SizeType SizeType
Definition: otbSarConcatenateBurstsImageFilter.h:69
otb::SarConcatenateBurstsImageFilter::ImagePointerType
ImageType::Pointer ImagePointerType
Definition: otbSarConcatenateBurstsImageFilter.h:68
otb::SarConcatenateBurstsImageFilter::ImageType
TImage ImageType
Definition: otbSarConcatenateBurstsImageFilter.h:67
otb::SarConcatenateBurstsImageFilter::PointType
ImageType::PointType PointType
Definition: otbSarConcatenateBurstsImageFilter.h:71
otb::ImageMetadata
Generic class containing image metadata used in OTB.
Definition: otbImageMetadata.h:270
otb::TileImageFilter
This filter allows making a spatial mosaic from a set of images.
Definition: otbTileImageFilter.h:53
otbImageMetadata.h
otbTileImageFilter.h