久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

使用發布庫時,OpenCV imread(filename) 在調試模式下

OpenCV imread(filename) fails in debug mode when using release libraries(使用發布庫時,OpenCV imread(filename) 在調試模式下失敗)
本文介紹了使用發布庫時,OpenCV imread(filename) 在調試模式下失敗的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

問題描述

我有一些 C++ 代碼,除了 imread(file) 函數外,OpenCV 一切正常.它正確地找到了文件并加載了名稱,但沒有加載任何數據.

I have some C++ code and everything was working fine with OpenCV except the function imread(file). It was finding correctly the file and loading the name, but it wasn't loading any data.

Mat pattImage = imread(fileName, 0);

在網絡上進行一些研究后,我意識到我處于調試模式,但使用的是 OpenCV 發布庫,而不是調試庫.

After some reaserch on the web I realized that I was in debug mode but with the release OpenCV libraries, instead of the debug ones.

debug library:    opencv_core231d.lib
release library:  opencv_core231.lib

雖然這是典型的愚蠢錯誤,我認為這不應該有任何關系,調試庫應該允許 OpenCV 代碼調試,而發布庫允許更快地執行代碼,但是我不明白為什么 imread 失敗了.

Though it is the tipical stupid error I thought this shouldn't have anything to do, the debug libraries are supposed to allow OpenCV code debugging while the release libraries allow faster execution of the code, but I don't understand why imread was failing.

誰能解釋一下OpenCV調試發布庫之間的區別,以及為什么會出現這個錯誤?

Can anybody explain me the differences between debug and release libraries in OpenCV and why this error occurs?

這是一個 OpenCV 錯誤嗎?

推薦答案

我永遠不會厭倦告訴人們Windows 的 C++ OpenCV 接口有最奇怪的錯誤.

I'll never get tired of telling people that the C++ OpenCV interface for Windows has the wierdest bugs.

使用 C 接口編寫一個小測試來檢查它是否有效(cvLoadImage() 等).

Write a small test using the C interface to check if it works or not (cvLoadImage(), etc).

更新:既然您知道 C 接口工作正常,您可以轉到郵件列表并在那里報告此錯誤,或者自己深入研究代碼以找出失敗的原因.

Update: now that you know that the C interface works properly, you can either go to the mailing list and report this bug there or dig into the code yourself to find why it fails.

這篇關于使用發布庫時,OpenCV imread(filename) 在調試模式下失敗的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

【網站聲明】本站部分內容來源于互聯網,旨在幫助大家更快的解決問題,如果有圖片或者內容侵犯了您的權益,請聯系我們刪除處理,感謝您的支持!

相關文檔推薦

Assertion failed (size.widthgt;0 amp;amp; size.heightgt;0)(斷言失敗(size.width0 amp;amp; size.height0))
Rotate an image in C++ without using OpenCV functions(在 C++ 中旋轉圖像而不使用 OpenCV 函數)
OpenCV: process every frame(OpenCV:處理每一幀)
Why can#39;t I open avi video in openCV?(為什么我不能在 openCV 中打開 avi 視頻?)
OpenCV unable to set up SVM Parameters(OpenCV 無法設置 SVM 參數)
Convert a single color with cvtColor(使用 cvtColor 轉換單一顏色)
主站蜘蛛池模板: 99视频在线免费观看 | 三级在线观看 | 国产精品夜夜夜一区二区三区尤 | 国产福利视频在线观看 | 九九久久久 | 在线播放中文字幕 | 一级欧美视频 | 日韩a视频 | 国产欧美一区二区三区在线播放 | 欧美美女一区二区 | 狠狠色综合网站久久久久久久 | 日本小电影在线 | 国产高清美女一级a毛片久久w | 国产98色在线 | 欧美在线播放一区 | 91av视频| 黑人性hd| 国产一级在线观看 | 欧美日韩在线一区二区三区 | 日本一区二区电影 | 日本成人免费观看 | 亚洲美女av网站 | 国产成视频在线观看 | 欧美日韩国产不卡 | 日韩三区在线观看 | 色.com| 欧美在线a | 一级a性色生活片久久毛片 一级特黄a大片 | 熟女毛片 | av免费看在线| 一区二区福利视频 | www.97国产| 红桃视频一区二区三区免费 | 色网在线观看 | 91色网站| 99精品一区| 亚洲精品888| 高清亚洲 | 久草综合在线 | 国产精品久久久久久久久久久久冷 | 久久亚洲精品久久国产一区二区 |