上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页
摘要: #include "stdafx.h"#include "opencv2\opencv.hpp"using namespace cv;IplImage* g_image=NULL;IplImage* g_gray=NULL;int g_thresh=120;CvMemStorage* g_storage=NULL;void on_trackbar(int){ if(g_storage==NULL) { g_gray=cvCreateImage(cvGetSize(g_image),8,1); g_storage=cvCreateMemStorage(0) 阅读全文
posted @ 2013-12-29 15:57 nanyangzp 阅读(1451) 评论(0) 推荐(0)
摘要: #include "stdafx.h"#include #include #include #include#include using namespace std;using namespace cv;int _tmain(int argc, _TCHAR* argv[]){ IplImage *src = cvLoadImage("lena.jpg"); IplImage *dst = 0; /* the first command line parameter must be image file name */ if (src != 0) ... 阅读全文
posted @ 2013-12-29 15:54 nanyangzp 阅读(590) 评论(0) 推荐(0)
摘要: #include "stdafx.h"#include#include#include #include using namespace std; using namespace cv;int _tmain(int argc, _TCHAR* argv[]){ IplImage *src=cvLoadImage("lena.jpg",-1);//读入图像 IplImage *dst; CvRect ROI_rect_src; CvRect ROI_rect_dst; cvNamedWindow("src",CV_WINDOW_AUTO 阅读全文
posted @ 2013-12-29 15:46 nanyangzp 阅读(3120) 评论(0) 推荐(0)
摘要: #include "stdafx.h"#include #include #include using namespace cv;using namespace std;CvCapture* capture=NULL;int g_slider_position=0;void onTrackbarSlide(int pos){ cvSetCaptureProperty(capture,CV_CAP_PROP_POS_FRAMES,pos);}int _tmain(int argc, _TCHAR* argv[]){ cvNamedWindow( "Example2& 阅读全文
posted @ 2013-12-29 15:41 nanyangzp 阅读(492) 评论(0) 推荐(0)
摘要: #include #include #include using namespace cv;using namespace std;int main(){ Mat M(7,7,CV_32FC2,Scalar(1,3)); IplImage* img=cvLoadImage("opencv.jpg"); cvNamedWindow("Window1",CV_WINDOW_AUTOSIZE); //cvRectangle(img,cvPoint(10,10),cvPoint(250,250),cvScalar(0,255,0),5); cvShowImage 阅读全文
posted @ 2013-12-29 15:37 nanyangzp 阅读(598) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2013-12-29 13:08 nanyangzp 阅读(24) 评论(0) 推荐(0)
摘要: 又折腾了一上午,昨天用优化大师和超级兔子整理了电脑,今天来到实验室,vs打开后报错,提示"找不到CL.exe,"(具体提示忘记了,就是找不到CL.exe),打开word2010也是打不开,提示“无法创建工作文件,请检查临时环境变量”。 在网上找了好久的资料,最终确定问题是由于用了超级兔子,因为超级兔子加速会创建一个加速盘,更改了系统的环境变量。不管是vs2010还是office2010,都要通过IE 的temp加载才可以。大部分的建议是重装系统。。。更改注册表等方法,但都没有解决问题。 解决方法:打开ie->工具-》-》internet选项-》浏览历史记录->设 阅读全文
posted @ 2013-11-26 10:40 nanyangzp 阅读(467) 评论(0) 推荐(0)
摘要: C/C++是最主要的编程语言。这里列出了50名优秀网站和网页清单,这些网站提供c/c++源代码。这份清单提供了源代码的链接以及它们的小说明。我已尽力包括最佳的C/C++源代码的网站。这不是一个完整的清单,您有建议可以联系我,我将欢迎您的建议,以进一步加强这方面的清单。1、http://snippets.dzone.com/tag/c/--数以千计的有用的C语言源代码片段2、http://www.hotscripts.com/category/c-cpp/scripts-programs/ Hotscripts --提供数以百计的C和C++脚本和程序。所有程序都分为不同的类别。3、http:// 阅读全文
posted @ 2013-11-18 09:58 nanyangzp 阅读(1441) 评论(0) 推荐(0)
摘要: 一:创建C++ DLL类库,名称:Dll11.Dll.h_declspec(dllimport) int add(int a, int b); 2.Dll.cpp// Dll.cpp : 定义 DLL 应用程序的导出函数。//#include "stdafx.h"#include//#include"Dll.h"using namespace std;extern "C" _declspec(dllexport) int add(int a, int b){ return (a+b);} 二:C++启动项目win32项目,名称:Dyn 阅读全文
posted @ 2013-11-17 22:32 nanyangzp 阅读(563) 评论(0) 推荐(0)
摘要: 一:创建C++ DLL类库,名称:Dll11.Dll1.h/*#ifndef Dll_API#else#define Dll_API _declspec(dllimport)#endif*/#include "stdafx.h"class _declspec(dllexport) Point{public: int output(int x,int y);}; 2.Dll1.cpp// Dll1.cpp : 定义 DLL 应用程序的导出函数。//#include "stdafx.h"#include"Dll1.h"#include & 阅读全文
posted @ 2013-11-17 22:07 nanyangzp 阅读(573) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 11 12 13 ··· 16 下一页