Orfeo Toolbox  4.0
otbLocalRxDetectorNonThreadFilter.h
Go to the documentation of this file.
1 /*=========================================================================
2 
3  Program: ORFEO Toolbox
4  Language: C++
5  Date: $Date$
6  Version: $Revision$
7 
8  Copyright (c) Centre National d'Etudes Spatiales. All rights reserved.
9  See OTBCopyright.txt for details.
10 
11 
12  This software is distributed WITHOUT ANY WARRANTY; without even
13  the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
14  PURPOSE. See the above copyright notices for more information.
15 
16 =========================================================================*/
17 
18 #ifndef __otbLocalRxDetectorNonThreadFilter_h
19 #define __otbLocalRxDetectorNonThreadFilter_h
20 
21 #include "itkImageToImageFilter.h"
22 
25 #include "itkImageRegionIterator.h"
26 #include "itkListSample.h"
28 #include "itkVariableSizeMatrix.h"
29 
30 namespace otb
31 {
32 
39 template <class TInputImage, class TOutputImage>
41  public itk::ImageToImageFilter<TInputImage, TOutputImage>
42 {
43 public:
44 
50 
52  itkNewMacro(Self);
53 
55  itkTypeMacro(LocalRxDetectorNonThreadFilter, ImageToImageFilter);
56 
58  typedef TInputImage InputImageType;
59  typedef typename InputImageType::Pointer InputPointerType;
60  typedef typename InputImageType::ConstPointer InputConstPointerType;
61  typedef typename InputImageType::IndexType InputIndexType;
62  typedef typename InputImageType::SizeType InputSizeType;
63 
64  typedef TOutputImage OutputImageType;
65  typedef typename OutputImageType::Pointer OutputPointerType;
66  typedef typename OutputImageType::IndexType OutputIndexType;
68  typedef typename OutputImageType::SizeType OutputSizeType;
69  typedef typename OutputImageType::RegionType OutputImageRegionType;
70 
76 
78  typedef typename InputImageType::PixelType VectorMeasurementType;
83 
85  itkSetMacro(InternalRadius, int);
86  itkGetMacro(InternalRadius, int);
87  itkSetMacro(ExternalRadius, int);
88  itkGetMacro(ExternalRadius, int);
89 
91  virtual void GenerateInputRequestedRegion();
92  virtual void GenerateData();
93 // virtual void BeforeThreadedGenerateData();
94 // virtual void ThreadedGenerateData(const OutputImageRegionType& outputRegionForThread, itk::ThreadIdType threadId);
95 
96 
97 protected:
100  void PrintSelf(std::ostream& os, itk::Indent indent) const;
101 
102 private:
103  LocalRxDetectorNonThreadFilter(const Self&); //purposely not implemented
104  void operator=(const Self&); //purposely not implemented
105 
108 
109 };
110 
111 } // end namespace otb
112 
113 #ifndef OTB_MANUAL_INSTANTIATION
115 #endif
116 
117 #endif

Generated at Sat Mar 8 2014 16:06:31 for Orfeo Toolbox with doxygen 1.8.3.1