Skip to content

Commit

Permalink
Update gmt_map.c
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulWessel committed Dec 27, 2023
1 parent 029e767 commit 9267591
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gmt_map.c
Original file line number Diff line number Diff line change
Expand Up @@ -8608,6 +8608,7 @@ int gmt_img_project (struct GMT_CTRL *GMT, struct GMT_IMAGE *I, struct GMT_IMAGE
rgb[b] = ((double)nz[ij_out] * O->data[nb*ij_out+b] + I->data[nb*ij_in+b])/(nz[ij_out] + 1.0); /* Update the mean pix values inside this rect... */
O->data[nb*ij_out+b] = (unsigned char) lrint (gmt_M_0_255_truncate (rgb[b]));
}
if (O->alpha) O->alpha[ij_out] = ((double)nz[ij_out] * O->alpha[ij_out] + I->alpha[ij_in]) / (nz[ij_out] + 1.0); /* Update the mean alpha value for this rect... */
nz[ij_out]++; /* ..and how many points there were */
}
}
Expand Down

0 comments on commit 9267591

Please sign in to comment.