1 | initial version |
Name your imshow window based on the counter in the for loop, such that new window is created for every for loop.
Example:
stringstream ss;
for(int i = 0; i < n; i++) {
Mat InputFrame;
ss << i;
imshow(ss.str(), InputFrame);
ss.str();
waitkey(1);
}
2 | No.2 Revision |
Name your imshow window based on the counter in the for loop, such that new window is created for every for loop.loop instance.
Example:
stringstream ss;
for(int i = 0; i < n; i++) {
Mat InputFrame;
ss << i;
imshow(ss.str(), InputFrame);
ss.str();
waitkey(1);
}
3 | No.3 Revision |
Name your imshow window based on the counter in the for loop, such that new window is created for every loop instance.
Example:
stringstream ss;
char wks;
for(int i = 0; i < n; i++) {
Mat InputFrame;
ss << i;
imshow(ss.str(), InputFrame);
ss.str();
wks = waitkey(1);
if(wks == 27)
break;
}