Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

imshow() very slow

Xcode, Mac OS X 10.11.5, OpenCV 2.4.13, C++

I am showing images from vector, with the aim to flip through them as fast as possible:

for (int i = 0; i < imgs.size(); i++) {
    imshow( wndName, imgs[i]);
    waitKey(1);
}

The images are 900x900 pixels.

The rate I am achieving this way is 15 frames per second - which is of course very slow. The bottleneck is in imshow(). The rate does increase and approaches 60 fps if I reduce the image size to 100x100 for the sake of experiment.

Is there a way to make imshow() faster? if not - are there alternative ways to show images that are faster on my platform?

Thanks

imshow() very slow

Xcode, Mac OS X 10.11.5, OpenCV 2.4.13, C++

I am showing images from vector, with the aim to flip through them as fast as possible:

for (int i = 0; i < imgs.size(); i++) {
    imshow( wndName, imgs[i]);
    waitKey(1);
}

The images are 900x900 pixels.

The rate I am achieving this way is 15 frames per second - which is of course very slow. The bottleneck is in imshow(). The rate does increase and approaches 60 fps if I reduce the image Image size to 100x100 for the sake of experiment. is reduced significantly (like 1/10)

Is there a way to make imshow() faster? if not - are there alternative ways to show images that are faster on my platform?

Thanks