Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cxx/isce3/cuda/matchtemplate/pycuampcor/cuDeramp.cu
Original file line number Diff line number Diff line change
Expand Up @@ -105,8 +105,8 @@ __global__ void cuDerampMethod1_kernel(float2 *images, const int imageNX, int co

for (int i = tid; i < imageSize; i += nthreads)
{
pixelIdxX = i%imageNY;
pixelIdxY = i/imageNY;
pixelIdxX = i / imageNY;
pixelIdxY = i % imageNY;
float phase = pixelIdxX*phaseX + pixelIdxY*phaseY;
float2 phase_factor = make_float2(cosf(phase), sinf(phase));
image[i] *= phase_factor;
Expand Down
4 changes: 2 additions & 2 deletions cxx/isce3/matchtemplate/pycuampcor/cuDeramp.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ static void cuDerampMethod1_kernel(float2 *images, const int imageNX, int const
float phaseY = atan2f(phaseDiffY.y, phaseDiffY.x);

for (int i = 0; i < imageSize; i++) {
const int pixelIdxX = i%imageNY;
const int pixelIdxY = i/imageNY;
const int pixelIdxX = i / imageNY;
const int pixelIdxY = i % imageNY;
float phase = pixelIdxX*phaseX + pixelIdxY*phaseY;
float2 phase_factor = make_float2(cosf(phase), sinf(phase));
image[i] *= phase_factor;
Expand Down
Binary file not shown.
Binary file not shown.