Skip to content

Commit

Permalink
Update kernel.cu
Browse files Browse the repository at this point in the history
  • Loading branch information
gisers authored Jun 26, 2018
1 parent 7b87bf7 commit d582c54
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Codes/kernel.cu
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ __global__ void Blending2_pairs(float **image_pairs,int num_pairs,int Height,int
pix_sum1+=image_pairs[m][i+Width*j];
pix_sum2+=image_pairs[m+BandNum][i+Width*j];
}
if(fabs(pix_sum1-_nodata)>1e-6&&fabs(pix_sum2-_nodata)>1e-6)
if(fabs(pix_sum1-_nodata*BandNum)>1e-6&&fabs(pix_sum2-_nodata*BandNum)>1e-6)
{
n1=0;
weight_all=0,weight=0;
Expand Down Expand Up @@ -437,7 +437,7 @@ __global__ void Blending2(float **BufferIn11,float **BufferIn22,float **BufferIn
pix_sum1+=BufferIn11[m][i+Width*j];
pix_sum2+=BufferIn33[m][i+Width*j];
}
if(fabs(pix_sum1-_nodata)>1e-6&&fabs(pix_sum2-_nodata)>1e-6)
if(fabs(pix_sum1-_nodata*BandNum)>1e-6&&fabs(pix_sum2-_nodata*BandNum)>1e-6)
{
n1=0;
weight_all=0,weight=0;
Expand Down

0 comments on commit d582c54

Please sign in to comment.