We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a996aa8 commit 34392feCopy full SHA for 34392fe
src/cudas.cu
@@ -38,8 +38,7 @@ namespace ifr::cuda {
38
int i = (int(threadIdx.x) + blockIdx.x * blockDim.x);
39
int j = (int(threadIdx.y) + blockIdx.y * blockDim.y);
40
if (i >= img.cols || j >= img.rows) return;
41
- if (x1 <= i && i <= x2) return;
42
- if (y1 <= j && j <= y2) return;
+ if (x1 <= i && i <= x2 && y1 <= j && j <= y2) return;
43
img(j, i) = 0;
44
}
45
0 commit comments