From 1b9c6f4e6f5640246a227aeec1a56de7e40b0098 Mon Sep 17 00:00:00 2001 From: Nuzhny007 Date: Fri, 17 Jan 2025 21:37:45 +0300 Subject: [PATCH] Fixed build on Macbook M1 --- src/Detector/vibe_src/vibe.cpp | 2 +- src/Detector/vibe_src/vibe.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Detector/vibe_src/vibe.cpp b/src/Detector/vibe_src/vibe.cpp index 1c9fb6b24..39ab68bdc 100644 --- a/src/Detector/vibe_src/vibe.cpp +++ b/src/Detector/vibe_src/vibe.cpp @@ -21,7 +21,7 @@ namespace vibe } /// - cv::Vec VIBE::getRndNeighbor(int i, int j) + cv::Vec2i VIBE::getRndNeighbor(int i, int j) { int neighbor_count = (m_pixelNeighbor * 2 + 1) * (m_pixelNeighbor * 2 + 1); int rnd = m_rng[m_rngIdx = (m_rngIdx + 1) % RANDOM_BUFFER_SIZE] % neighbor_count; diff --git a/src/Detector/vibe_src/vibe.hpp b/src/Detector/vibe_src/vibe.hpp index 00b36ed5d..46b7b109f 100644 --- a/src/Detector/vibe_src/vibe.hpp +++ b/src/Detector/vibe_src/vibe.hpp @@ -37,7 +37,7 @@ class VIBE unsigned int m_rng[RANDOM_BUFFER_SIZE]; int m_rngIdx = 0; - cv::Vec getRndNeighbor(int i, int j); + cv::Vec2i getRndNeighbor(int i, int j); void init(const cv::Mat& img); }; }