You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
while (boundaryPixels[priority].empty() && (priority < 256))
The conditions order should be inverted: first check that priority is less than 256, next check that boundaryPixels is empty at this index. That is, "while (priority < 256 && boundaryPixels[priority].empty())". Otherwise, the boundaryPixels is accessed beyond its bounds when the priority reaches 256.
The text was updated successfully, but these errors were encountered:
mser/mser.cpp
Line 264 in 7347d00
The conditions order should be inverted: first check that priority is less than 256, next check that boundaryPixels is empty at this index. That is, "while (priority < 256 && boundaryPixels[priority].empty())". Otherwise, the boundaryPixels is accessed beyond its bounds when the priority reaches 256.
The text was updated successfully, but these errors were encountered: