We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d97460c commit e6338e0Copy full SHA for e6338e0
VIBE/src/vibe.cpp
@@ -111,7 +111,7 @@ void VIBE::update(const cv::Mat& img)
111
if (flag)
112
{
113
mask_.data[size_.width * i + j] = 0;
114
- if(rng_[ rng_idx_ = ( rng_idx_ + 1 ) % RANDOM_BUFFER_SIZE] % update_factor_)
+ if(0 == rng_[ rng_idx_ = ( rng_idx_ + 1 ) % RANDOM_BUFFER_SIZE] % update_factor_)
115
116
int sample = rng_[ rng_idx_ = ( rng_idx_ + 1 ) % RANDOM_BUFFER_SIZE] % samples_;
117
int model_idx = channels_ * samples_ * size_.width * i + channels_ * samples_ * j + channels_ * sample;
0 commit comments