diff --git a/src/package_bgs/ViBe/vibe-background-sequential.cpp b/src/package_bgs/ViBe/vibe-background-sequential.cpp index 78c8fe3672f21864021bc38cd1dd44feab1ecf31..6210733f646cc393ebb08e26f6ce9576839d3955 100644 --- a/src/package_bgs/ViBe/vibe-background-sequential.cpp +++ b/src/package_bgs/ViBe/vibe-background-sequential.cpp @@ -736,7 +736,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;