Imshow Images of Glob Function


I am trying to read all PNG images from a directory and posteriorly imshow one only to see if it is working, nevertheless, it is opening a empty window. I am in Windows, Visual Studio 2019 C++.

std::vector<cv::String> fn;
glob("C:/Users/Home/OneDrive/Desktop/video_make/O5/*.png", fn, false);
std::vector<Mat> images;
size_t count = fn.size(); 
for (size_t i = 0; i < count; i++) {
imshow("a", images[1]);

add a waitKey(0)after imshow

1 Like

Thank you! I forgot some how.