Ask Your Question

bob_oi's profile - activity

2020-03-02 02:04:23 -0600 received badge  Famous Question (source)
2018-12-23 23:06:31 -0600 received badge  Notable Question (source)
2018-02-27 03:51:02 -0600 received badge  Popular Question (source)
2016-06-16 09:16:13 -0600 received badge  Editor (source)
2016-06-16 00:37:56 -0600 asked a question 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 Image size 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

2016-06-16 00:37:55 -0600 asked a question Use full retina resolution on OSX

Hello

Working in Xcode, Mac OS X 10.11.5, OpenCV 2.4.13

When openCV shows an image on my MacBook Pro with retina display:

namedWindow( wndName, CV_WINDOW_NORMAL );    
imshow( wndName, img );

it seems to assume screen resolution that is half the actual resolution: image size of the screen is shown twice as big, whereas image half the screen pixel size fits the screen perfectly.

Is there a way to use the real display resolution?

Thanks

2016-06-16 00:37:55 -0600 asked a question Mac freezes when setting full screen

Hello

Xcode 7.3.1, Mac OS X 10.11.5, OpenCV 2.4.13, MacBook Pro

When attempting to show an image in full screen the program stops running (lines after the one below don't seem to run), and the screen goes black. The mouse cursor is still moving but the machine won't respond to keyboard - can't switch windows, force quit, or do anything else except of hard-resetting. The line that does all this mess is:

setWindowProperty(wndName, CV_WND_PROP_FULLSCREEN, CV_WINDOW_FULLSCREEN);

Will appreciate any ideas...

Thanks