isce3 0.25.0
Loading...
Searching...
No Matches
GeocodeHelpers.h
1#pragma once
2
3#include <isce3/math/complexOperations.h>
4
5namespace isce3 { namespace geocode {
6
7template<typename T, typename T_out>
8void _convertToOutputType(T a, T_out& b)
9{
10 b = a;
11}
12
13template<typename T, typename T_out>
14void _convertToOutputType(std::complex<T> a, T_out& b)
15{
16 b = std::norm(a);
17}
18
19template<typename T, typename T_out>
20void _convertToOutputType(std::complex<T> a, std::complex<T_out>& b)
21{
22 b = a;
23}
24
25template<typename T, typename T_out>
26void _accumulate(T_out& band_value, T a, double b)
27{
28 if (b == 0)
29 return;
30
31 using isce3::math::complex_operations::operator*;
32
33 T_out a2;
34 _convertToOutputType(a, a2);
35 band_value += a2 * b;
36}
37
38}}
base interpolator is an abstract base class
Definition BinarySearchFunc.cpp:5

Generated for ISCE3.0 by doxygen 1.13.2.