Skip to content

Commit

Permalink
Fix a erode issue.
Browse files Browse the repository at this point in the history
  • Loading branch information
liuliu committed Jan 25, 2024
1 parent e6c6b9a commit b069f92
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ccv_basic.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ void ccv_erode(ccv_dense_matrix_t* a, ccv_dense_matrix_t** b, int type, int fsz)
{ \
_for_type_b minimum = _for_get_b(buf, j * ch + c); \
for (k = 1; k < fsz; k++) \
minimum = ccv_max(minimum, _for_get_b(buf, (j + k) * ch + c)); \
minimum = ccv_min(minimum, _for_get_b(buf, (j + k) * ch + c)); \
_for_set_b(b_ptr, j * ch + c, minimum, 0); \
} \
} \
Expand Down
Binary file modified test/unit/data/chessbox.erode_3x3.bin
Binary file not shown.
Binary file modified test/unit/data/chessbox.erode_5x5.bin
Binary file not shown.

0 comments on commit b069f92

Please sign in to comment.