diff --git a/package_bgs/ViBe/vibe-background-sequential.cpp b/package_bgs/ViBe/vibe-background-sequential.cpp index 5bf33a684ecc72e5f4dbe4461d639adde9b9e212..31a7c274dfce32a9bdc0027b72b20e7add651d96 100644 --- a/package_bgs/ViBe/vibe-background-sequential.cpp +++ b/package_bgs/ViBe/vibe-background-sequential.cpp @@ -758,7 +758,7 @@ int32_t libvibeModel_Sequential_Update_8u_C3R( historyImage[index_neighbor + position[shift] * (3 * width) * height] = r; historyImage[index_neighbor + position[shift] * (3 * width) * height + 1] = g; - historyImage[index_neighbor + position[shift] * (3 * width) * height + 2] = r; + historyImage[index_neighbor + position[shift] * (3 * width) * height + 2] = b; } else { int pos = position[shift] - NUMBER_OF_HISTORY_IMAGES;