Skip to content

Commit 34392fe

Browse files
committed
修复填充
Signed-off-by: yuanlu <[email protected]>
1 parent a996aa8 commit 34392fe

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/cudas.cu

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@ namespace ifr::cuda {
3838
int i = (int(threadIdx.x) + blockIdx.x * blockDim.x);
3939
int j = (int(threadIdx.y) + blockIdx.y * blockDim.y);
4040
if (i >= img.cols || j >= img.rows) return;
41-
if (x1 <= i && i <= x2) return;
42-
if (y1 <= j && j <= y2) return;
41+
if (x1 <= i && i <= x2 && y1 <= j && j <= y2) return;
4342
img(j, i) = 0;
4443
}
4544

0 commit comments

Comments
 (0)