isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
SearchTable.h
1 #pragma once
2 
3 #include <cstddef> // size_t
4 
5 #include "ICU.h" // offset2_t
6 
7 namespace isce3::unwrap::icu {
8 
9 // \brief Lookup table of points to search for residues or neutrons
10 //
11 // Search points are stored in order of increasing distance with elliptical
12 // distance contours determined by the relative pixel spacing in x & y.
14 {
15 public:
16  // Constructor
17  SearchTable(const int maxdist, const float ratioDxDy = 1.f);
18  // Destructor
19  ~SearchTable();
20  // Access specified element.
21  offset2_t & operator[](const size_t pos) const;
22  // Get number of search points within the ellipse with semi-major axis a.
23  size_t numPtsInEllipse(const int a) const;
24 
25 private:
26  // Array of search points
27  offset2_t * _searchpts;
28  // Number of search points within each integer distance
29  size_t * _npts;
30 };
31 
32 }
33 
34 // Get inline implementations.
35 #define ISCE_UNWRAP_ICU_SEARCHTABLE_ICC
36 #include "SearchTable.icc"
37 #undef ISCE_UNWRAP_ICU_SEARCHTABLE_ICC
Definition: SearchTable.h:13

Generated for ISCE3.0 by doxygen 1.8.5.