I have a scenario, where I have to display number of images in a for loop. Please look at the code.
I want to analyse all the hough-detected lines separately. So I am trying to extract each detected line in the image. So I would get as many images as the number of detected lines.
for ( int i = 0;i<lines.size();i++)
{
Vec4i draw = lines[i];
line(vMat[i],Point(draw[0],draw[1]),Point(draw[2],draw[3]),Scalar(0,0,255),1,CV_AA);
imshow("Lines",vMat[i]);
}
I get only the last detected line image because of the comme name "Lines".
Is there any possibility to add the iterator information in imshow?
I tried using a string array. But concatenating the integer (index of the vector) with the string is for me seems to be difficult (adding 'boost' libraries and so on).
Is there any simple alternative for my problem ?
Thanks, Karthik