Skip to content

Commit

Permalink
Fix fast corner 9 algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
LMJW committed Aug 4, 2024
1 parent ef8ffb9 commit 83cc1a2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/corners.rs
Original file line number Diff line number Diff line change
Expand Up @@ -312,8 +312,8 @@ fn is_corner_fast9(image: &GrayImage, threshold: u8, x: u32, y: u32) -> bool {
let (p0, p4, p8, p12) = unsafe {
(
image.unsafe_get_pixel(x, y - 3)[0] as i16,
image.unsafe_get_pixel(x, y + 3)[0] as i16,
image.unsafe_get_pixel(x + 3, y)[0] as i16,
image.unsafe_get_pixel(x, y + 3)[0] as i16,
image.unsafe_get_pixel(x - 3, y)[0] as i16,
)
};
Expand Down

0 comments on commit 83cc1a2

Please sign in to comment.