From 184bab9167b85c08a3e1bbbb4d8e0f530f069e0a Mon Sep 17 00:00:00 2001 From: Will Date: Sun, 4 Aug 2024 23:10:06 +1000 Subject: [PATCH] Fix fast corner 9 algorithm (#680) --- src/corners.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/corners.rs b/src/corners.rs index 4d8cc891..80422823 100644 --- a/src/corners.rs +++ b/src/corners.rs @@ -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, ) };