[英]Imshow() size restrictions
I have image 6750x6450 px and trying to display it with imshow() function from OpenCv. 我有图像6750x6450 px,并尝试使用OpenCv的imshow()函数显示它。 When I display one image it's shown badly(some wired output), when I try to display two images get seqfault.
当我显示一幅图像时,显示不好(某些有线输出),当我尝试显示两幅图像时,会出现seqfault。 Saving those images on hdd gives good results, images are saved, and they are correct, when I resize both they are also shown correctly.
将这些图像保存在hdd上可获得良好的效果,图像被保存并且正确,当我调整大小时,它们也都可以正确显示。 Has imshow() function some size restrictions?
imshow()是否具有一些大小限制?
code: 码:
Mat bigImage1 = imread(...);
Mat bigImage2 = imread(...);
namedWindow("first",CV_WINDOW_FULLSCREEN);
namedWindow("second",CV_WINDOW_FULLSCREEN);
imshow("first",bigImage1);
imshow("second",bigImage2);
I'm working on desktop computer Windows 7 64bit 我正在使用台式机Windows 7 64bit
The images are probably larger than your current screen resolution. 图像可能比您当前的屏幕分辨率大。 The problem seems to be that they are simply too big for OpenCV to handle them in a window.
问题似乎是它们太大了,OpenCV无法在窗口中处理它们。
To be certain, I would try your code on Mac or Linux since OpenCV is cross-platform and there are specific window management implementations for every OS. 可以肯定的是,我将在Mac或Linux上尝试您的代码,因为OpenCV是跨平台的,并且每个OS都有特定的窗口管理实现。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.