11
11
12
12
// isce3::cuda::core
13
13
#include < isce3/cuda/core/gpuPoly2d.h>
14
- #include < isce3/cuda/core/gpuLUT2d .h>
14
+ #include < isce3/cuda/core/gpuLUT1d .h>
15
15
#include < isce3/cuda/core/gpuInterpolator.h>
16
16
17
17
#include < isce3/cuda/except/Error.h>
20
20
21
21
using isce3::cuda::core::gpuPoly2d;
22
22
using isce3::cuda::core::gpuInterpolator;
23
- using isce3::cuda::core::gpuLUT2d ;
23
+ using isce3::cuda::core::gpuLUT1d ;
24
24
using isce3::cuda::core::gpuSinc2dInterpolator;
25
25
26
26
#define THRD_PER_BLOCK 512 // Number of threads per block (should always %32==0)
@@ -33,7 +33,7 @@ void transformTile(const thrust::complex<float> *tile,
33
33
const float *azOffTile,
34
34
const gpuPoly2d rgCarrier,
35
35
const gpuPoly2d azCarrier,
36
- const gpuLUT2d <double > dopplerLUT,
36
+ const gpuLUT1d <double > dopplerLUT,
37
37
gpuSinc2dInterpolator<thrust::complex <float >> interp,
38
38
bool flatten,
39
39
int outWidth,
@@ -85,12 +85,11 @@ void transformTile(const thrust::complex<float> *tile,
85
85
86
86
// Skip computations if indices out of bound or az/rng not in doppler
87
87
// Output previously filled with designated invalid values
88
- if (intAzOutOfBounds || intRgOutOfBounds
89
- || !dopplerLUT.contains (az, rng))
88
+ if (intAzOutOfBounds || intRgOutOfBounds)
90
89
return ;
91
90
92
91
// evaluate Doppler polynomial
93
- const double dop = dopplerLUT.eval (az, rng) * 2 * M_PI / prf;
92
+ const double dop = dopplerLUT.eval (rng) * 2 * M_PI / prf;
94
93
95
94
// Doppler to be added back. Simultaneously evaluate carrier that needs to
96
95
// be added back after interpolation
@@ -147,7 +146,7 @@ gpuTransformTile(isce3::image::Tile<std::complex<float>> & tile,
147
146
isce3::image::Tile<float > & azOffTile,
148
147
const isce3::core::Poly2d & rgCarrier,
149
148
const isce3::core::Poly2d & azCarrier,
150
- const isce3::core::LUT2d <double > & dopplerLUT,
149
+ const isce3::core::LUT1d <double > & dopplerLUT,
151
150
isce3::cuda::core::gpuSinc2dInterpolator<thrust::complex <float >> interp,
152
151
int inWidth, int inLength, double startingRange, double rangePixelSpacing,
153
152
double sensingStart, double prf, double wavelength, double refStartingRange,
@@ -171,7 +170,7 @@ gpuTransformTile(isce3::image::Tile<std::complex<float>> & tile,
171
170
float *d_rgOffTile, *d_azOffTile;
172
171
gpuPoly2d d_rgCarrier (rgCarrier);
173
172
gpuPoly2d d_azCarrier (azCarrier);
174
- gpuLUT2d <double > d_dopplerLUT (dopplerLUT);
173
+ gpuLUT1d <double > d_dopplerLUT (dopplerLUT);
175
174
176
175
// determine sizes
177
176
size_t nInPixels = size_t (tile.length ()) * tile.width ();
0 commit comments