于仕琪老师《OpenCV入门教程》中某一程序在我电脑VS2008,opencv2.3.1上运行错误,“未使用调试信息生成二进制文件”,留待解决,

来源:互联网 发布:java stream map 编辑:程序博客网 时间:2024/04/29 17:49

// test.cpp : 定义控制台应用程序的入口点。//#include "stdafx.h"#include<iostream>#include"opencv2/opencv.hpp"#include <opencv2\highgui\highgui.hpp>#include<stdio.h>using namespace std;using namespace cv;int main(int argc,char *argv[]){     Mat grayim(600,800,CV_8UC1);  Mat colorim(600,800,CV_8UC3);  Mat im=imread("lena.jpg",CV_LOAD_IMAGE_UNCHANGED);   int i,j;  for(i=0;i<grayim.rows;++i)  for(j=0;j<grayim.cols;++j)         grayim.at<uchar>(i,j)=(i+j)%255;  for(i=0;i<colorim.rows;++i)  for(j=0;j<colorim.cols;++j)  {  Vec3b pixel;        pixel[0]=i%255;pixel[1]=j%255;pixel[2]=0;colorim.at<Vec3b>(i,j)=pixel;    }  imshow("grayim",grayim);  imshow("colorim",colorim);   imshow("lena",im);  system("pause");  return 0;}





程序如上,编译无问题,调试时问题如下:

“test.exe”: 已加载“C:\Users\admin\Documents\Visual Studio 2008\Projects\test\Debug\test.exe”,已加载符号。“test.exe”: 已加载“C:\Windows\System32\ntdll.dll”“test.exe”: 已加载“C:\Windows\System32\kernel32.dll”“test.exe”: 已加载“C:\Windows\System32\KernelBase.dll”“test.exe”: 已加载“D:\Program Files\OpenCV2.3.1\opencv\build\x86\vc9\bin\opencv_core231d.dll”“test.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcp90d.dll”,已加载符号。“test.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.vc90.debugcrt_1fc8b3b9a1e18e3b_9.0.21022.8_none_96748342450f6aa2\msvcr90d.dll”,已加载符号。“test.exe”: 已加载“D:\Program Files\OpenCV2.3.1\opencv\build\x86\vc9\bin\opencv_highgui231d.dll”“test.exe”: 已加载“C:\Windows\System32\user32.dll”“test.exe”: 已加载“C:\Windows\System32\gdi32.dll”“test.exe”: 已加载“C:\Windows\System32\lpk.dll”“test.exe”: 已加载“C:\Windows\System32\usp10.dll”“test.exe”: 已加载“C:\Windows\System32\msvcrt.dll”“test.exe”: 已加载“C:\Windows\System32\ole32.dll”“test.exe”: 已加载“C:\Windows\System32\rpcrt4.dll”“test.exe”: 已加载“C:\Windows\System32\oleaut32.dll”“test.exe”: 已加载“C:\Windows\System32\advapi32.dll”“test.exe”: 已加载“C:\Windows\System32\sechost.dll”“test.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.windows.common-controls_6595b64144ccf1df_5.82.7600.16661_none_ebfb56996c72aefc\comctl32.dll”“test.exe”: 已加载“C:\Windows\System32\avifil32.dll”“test.exe”: 已加载“C:\Windows\System32\winmm.dll”“test.exe”: 已加载“C:\Windows\System32\msacm32.dll”“test.exe”: 已加载“C:\Windows\System32\msvfw32.dll”“test.exe”: 已加载“C:\Windows\System32\shell32.dll”“test.exe”: 已加载“C:\Windows\System32\shlwapi.dll”“test.exe”: 已加载“C:\Windows\System32\avicap32.dll”“test.exe”: 已加载“C:\Windows\System32\version.dll”“test.exe”: 已加载“C:\Windows\System32\imm32.dll”“test.exe”: 已加载“C:\Windows\System32\msctf.dll”“test.exe”: 已加载“C:\Windows\System32\cryptbase.dll”“test.exe”: 已加载“C:\Windows\System32\uxtheme.dll”“test.exe”: 已加载“C:\Windows\System32\apphelp.dll”“test.exe”: 已加载“C:\Windows\System32\baiducn.ime”“test.exe”: 已加载“C:\Windows\System32\profapi.dll”“test.exe”: 已加载“C:\Windows\System32\sspicli.dll”“test.exe”: 已加载“C:\Windows\System32\dwmapi.dll”“test.exe”: 已加载“D:\Program Files\Baidu\BaiduPinyin\2.14.2.46\uipfull.dll”“test.exe”: 已加载“C:\Windows\System32\oleacc.dll”“test.exe”: 已加载“C:\Windows\System32\msimg32.dll”“test.exe”: 已加载“C:\Windows\winsxs\x86_microsoft.windows.gdiplus_6595b64144ccf1df_1.1.7600.17007_none_72f44f3186198a88\GdiPlus.dll”“test.exe”: 已加载“D:\Program Files\Baidu\BaiduPinyin\2.14.2.46\imefreetype.dll”,未使用调试信息生成二进制文件。“test.exe”: 已加载“D:\Program Files\Baidu\BaiduPinyin\2.14.2.46\imepng.dll”,未使用调试信息生成二进制文件。“test.exe”: 已加载“D:\Program Files\Baidu\BaiduPinyin\2.14.2.46\imezlib.dll”,未使用调试信息生成二进制文件。“test.exe”: 已加载“C:\Windows\System32\ntmarta.dll”“test.exe”: 已加载“C:\Windows\System32\Wldap32.dll”线程 'Win32 线程' (0x10f8) 已退出,返回值为 0 (0x0)。程序“[712] test.exe: 本机”已退出,返回值为 0 (0x0)。

0 0
原创粉丝点击