isce3  0.1.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Pages
Phass.h
1 // -*- C++ -*-
2 // -*- coding: utf-8 -*-
3 //
4 // Author: Heresh Fattahi
5 // Copyright 2019-
6 
7 #pragma once
8 
9 #include <complex> // std::complex
10 #include <cstddef> // size_t
11 #include <cstdint> // uint8_t
12 
13 #include <isce3/io/Raster.h> // isce3::io::Raster
14 
15 #include "PhassUnwrapper.h"
16 
17 namespace isce3::unwrap::phass {
18 
19 class Phass
20 {
21 public:
23  Phass() {
24  _correlationThreshold = 0.2;
25  _goodCorrelation = 0.7;
26  _minPixelsPerRegion = 200.0;
27  _usePower = true;
28  };
29 
31  ~Phass() = default;
32 
34  void unwrap(
35  isce3::io::Raster & phaseRaster,
36  isce3::io::Raster & corrRaster,
37  isce3::io::Raster & unwRaster,
38  isce3::io::Raster & labelRaster);
39 
41  void unwrap(
42  isce3::io::Raster & phaseRaster,
43  isce3::io::Raster & powerRaster,
44  isce3::io::Raster & corrRaster,
45  isce3::io::Raster & unwRaster,
46  isce3::io::Raster & labelRaster);
47 
49  double correlationThreshold() const;
50 
52  void correlationThreshold(const double);
53 
55  double goodCorrelation() const;
56 
58  void goodCorrelation(const double);
59 
61  int minPixelsPerRegion() const;
62 
64  void minPixelsPerRegion(const int);
65 
66 
67  private:
68  double _correlationThreshold = 0.2;
69  double _goodCorrelation = 0.7;
70  int _minPixelsPerRegion = 200.0;
71  bool _usePower = true;
72 
73 };
74 
75 }
76 
77 // Get inline implementations.
78 #define ISCE_UNWRAP_PHASS_PHASS_ICC
79 #include "Phass.icc"
80 #undef ISCE_UNWRAP_PHASS_PHASS_ICC
~Phass()=default
Destructor.
int minPixelsPerRegion() const
Get minimum size of a region to be unwrapped.
Definition: Phass.icc:39
void unwrap(isce3::io::Raster &phaseRaster, isce3::io::Raster &corrRaster, isce3::io::Raster &unwRaster, isce3::io::Raster &labelRaster)
Unwrap the interferometric wrapped phase.
Definition: Phass.cpp:16
double goodCorrelation() const
Get good correlation threshold.
Definition: Phass.icc:29
Phass()
Constructor.
Definition: Phass.h:23
Definition: Phass.h:19
Data structure meant to handle Raster I/O operations.
Definition: Raster.h:34
double correlationThreshold() const
Get correlation threshold increment.
Definition: Phass.icc:19

Generated for ISCE3.0 by doxygen 1.8.5.