I have two rectangle vectors
std::vector<cv::Rect>faces;
std::vector<cv::Rect>windows;
I need to concatenate windows with faces...for that I wrote the code as
 int fsize=faces.size();
    for(int i=0;i<windows.size();i++)
    {
        faces[fsize]=windows[i];
        fsize++;
    }
But I thk this code is creating segmentation faults...anybody know anything betr..or any built in functions??
 
     
    