OTB  6.7.0
Orfeo Toolbox
otbSparseWvltToAngleMapperListFilter.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2005-2019 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 otbSparseWvltToAngleMapperListFilter_h
22 #define otbSparseWvltToAngleMapperListFilter_h
23 
24 #include "otbMath.h"
25 #include "otbImageList.h"
26 
27 #include "itkProcessObject.h"
28 #include "itkDataObjectDecorator.h"
30 
31 namespace otb {
32 
33 
45 template < class TInputImageList, class TOutputSampleList, unsigned int VNbInputImages >
47  : public ITK_EXPORT itk::ProcessObject
48 {
49 public:
55 
57  itkNewMacro(Self);
58 
60  itkTypeMacro(SparseWvltToAngleMapperListFilter, ProcessObject);
61 
63  itkStaticConstMacro(NumberOfInputImages, unsigned int, VNbInputImages);
64 
66  typedef TInputImageList InputImageListType;
67  typedef typename InputImageListType::Pointer InputImageListPointerType;
68  typedef typename InputImageListType::ConstIterator InputImageListConstIteratorType;
69  typedef typename InputImageListType::ImageType InputImageType;
70  typedef typename InputImageType::Pointer InputImagePointerType;
71  typedef typename InputImageType::RegionType InputImageRegionType;
72  typedef typename InputImageType::PixelType InputImagePixelType;
74  typedef typename InputImageType::ValueType ValueType;
75 
77  typedef TOutputSampleList OutputSampleListType;
78  typedef typename OutputSampleListType::Pointer OutputSampleListPointer;
79  typedef typename OutputSampleListType::ConstPointer OutputSampleListConstPointer;
80  typedef typename OutputSampleListType::MeasurementVectorType OutputMeasurementVectorType;
81  typedef typename OutputMeasurementVectorType::ValueType OutputValueType;
82 
85  typedef std::vector< ImageConstIteratorType > ImageConstIteratorVectorType;
86  typedef std::vector< InputImageListConstIteratorType > InputImageListConstIteratorVectorType;
87 
88  void SetInput ( unsigned int i, const InputImageListType * );
90 
91  const InputImageListType * GetInput( unsigned int i ) const;
92 
98 
101 
104 
106  itkGetMacro(ThresholdValue, ValueType);
107  itkSetMacro(ThresholdValue, ValueType);
109 
110 protected:
113 
117 
118  void PrintSelf(std::ostream& os, itk::Indent indent) const override;
119 
121  void GenerateData() override;
122 
123  /* Internal functions */
124  virtual bool IsToGenerate ( const ImageConstIteratorVectorType & ) const;
127 
128 private:
129  SparseWvltToAngleMapperListFilter(const Self &); // not implemented
130  void operator=(const Self &);
131 
133 
134 }; // end of class
135 
136 } // end of namespace otb
137 
138 #ifndef OTB_MANUAL_INSTANTIATION
140 #endif
141 
142 #endif
143 
144 
itk::Size< Monteverdi_DIMENSION > SizeType
Definition: mvdTypes.h:137
OutputSampleListType::ConstPointer OutputSampleListConstPointer
OutputMeasurementVectorType::ValueType OutputValueType
virtual bool IsToGenerate(const ImageConstIteratorVectorType &) const
DataObjectPointer MakeOutput(DataObjectPointerArraySizeType idx) override
const InputImageListType * GetInput(unsigned int i) const
itk::ImageRegionConstIterator< InputImageType > ImageConstIteratorType
OutputSampleListType::MeasurementVectorType OutputMeasurementVectorType
virtual DataObjectPointer MakeOutput(const DataObjectIdentifierType &)
InputImageListType::ConstIterator InputImageListConstIteratorType
DataObjectPointerArray::size_type DataObjectPointerArraySizeType
virtual void SetInput(const DataObjectIdentifierType &key, DataObject *input)
void PrintSelf(std::ostream &os, itk::Indent indent) const override
itk::ProcessObject::DataObjectPointerArraySizeType DataObjectPointerArraySizeType
std::vector< InputImageListConstIteratorType > InputImageListConstIteratorVectorType
itk::DataObjectDecorator< OutputSampleListType > OutputSampleListObjectType
std::vector< ImageConstIteratorType > ImageConstIteratorVectorType
virtual OutputMeasurementVectorType FromEuclideanToSphericalSpace(const ImageConstIteratorVectorType &) const
void SetInput(unsigned int i, const InputImageListType *)
This class select N-uple join-wvlt coeff for sparse unmixing.