I made a little piece of code which causes a segmentation error but I do not understand why. Hope you guys can clarify.
Code:
for(unsigned int i = 0; i < Objects.size(); i++)
{
if (Objects[i].size() > 10)
Objects2[i] = Objects[i];
}
Objects is declared as vector > because of the opencv function findContour().
Gr!