Skip to content

Commit

Permalink
Merge pull request #461 from Nuzhny007/master
Browse files Browse the repository at this point in the history
Fixed build on Macbook M1
  • Loading branch information
Nuzhny007 authored Jan 17, 2025
2 parents c5682e1 + 1b9c6f4 commit 6eeddc9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/Detector/vibe_src/vibe.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ namespace vibe
}

///
cv::Vec<size_t, 2> 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;
Expand Down
2 changes: 1 addition & 1 deletion src/Detector/vibe_src/vibe.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class VIBE
unsigned int m_rng[RANDOM_BUFFER_SIZE];
int m_rngIdx = 0;

cv::Vec<size_t, 2> getRndNeighbor(int i, int j);
cv::Vec2i getRndNeighbor(int i, int j);
void init(const cv::Mat& img);
};
}
Expand Down

0 comments on commit 6eeddc9

Please sign in to comment.