上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页
摘要: __fastcall TForm1::TForm1(TComponent* Owner) : TForm(Owner){ //加载图标到Imagelist Graphics::TBitmap *bmpPicture = NULL; bmpPicture = new Graph... 阅读全文
posted @ 2015-12-23 23:02 一样菜 阅读(1093) 评论(0) 推荐(0) 编辑
摘要: 首先在C#工程下面安装第三方插件包 安装方法:Tools --> Library Package Manager --> Package Manager Console Install-Package UnmanagedExports 并添加:using System.Runtime.I... 阅读全文
posted @ 2015-12-23 18:48 一样菜 阅读(521) 评论(0) 推荐(0) 编辑
摘要: 并发在单核和多核都可存在,就是同一时间有多个可以执行的进程。但是在单核中同一时刻只有一个进程获得CPU,虽然宏观上你认为多个进程都在进行。并行是指同一时间多个进程在微观上都在真正的执行,这就只有在多核的情况下了。 阅读全文
posted @ 2015-12-23 18:37 一样菜 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 注意:opencv-2.4.10#include "stdio.h"#include "string.h"#include "iostream"#include "opencv/cv.h"#include "opencv/cxcore.h"#include "opencv/highgui.h"#in... 阅读全文
posted @ 2015-12-23 15:54 一样菜 阅读(6321) 评论(0) 推荐(0) 编辑
摘要: 1.TOpenDialog:Title属性:用于获取或设置对话框标题,如果么偶有给该属性赋值,则系统将使用默认值标题:“打开” 。InitialDir属性:用于获取或设置文件对话框显示的初始目录。如果没有设置或设置的目录不存在,该属性值为当前工作目录。Files属性:用于获取或设置当前文件名筛选器字 阅读全文
posted @ 2015-12-21 22:53 一样菜 阅读(2391) 评论(0) 推荐(0) 编辑
摘要: DLL动态链接库的生成:首先打开VS2012,新建——项目——Win32控制台应用程序(项目名称:ConsoleApplication1)——空项目新建一个源文件source.cpp先用控制台exe配置类型自己定义函数,并通过主函数调试然后可以通过项目——属性——配置属性——常规——项目默认值——配... 阅读全文
posted @ 2015-12-19 23:25 一样菜 阅读(14495) 评论(0) 推荐(0) 编辑
摘要: Mat img;int color[111111];int main(){ VideoCapture video(0); if (!video.isOpened()) { return -1; } Mat img; Mat img1, img2, i... 阅读全文
posted @ 2015-12-17 15:31 一样菜 阅读(1462) 评论(0) 推荐(0) 编辑
摘要: #include "cv.h"#include "highgui.h"#include using namespace std;using namespace cv;int main(int argc, char* argv[]){ Mat src = imread("misaka.j... 阅读全文
posted @ 2015-12-17 14:58 一样菜 阅读(845) 评论(0) 推荐(0) 编辑
摘要: 一.进程(Process)是计算机中的程序关于某数据集合上的一次运行活动,是系统进行资源分配和调度的基本单位,是操作系统结构的基础C++监听进程状态:首先加载#include "tlhelp32.h"头文件主要函数:CreateToolhelp32Snapshot( DWORD d... 阅读全文
posted @ 2015-12-12 17:55 一样菜 阅读(1321) 评论(0) 推荐(0) 编辑
摘要: 服务器程序:(以C++Builder为例)void __fastcall ServerThread::Execute(){ wchar_t *pipeName = L"\\\\.\\pipe\\testpipe"; pipe_handle = CreateNamedPipe(pipeNa... 阅读全文
posted @ 2015-12-11 00:26 一样菜 阅读(1205) 评论(0) 推荐(1) 编辑
摘要: 1、界面窗口如何不显示标题栏? 在Form属性栏里面把BorderStyle的值设为None2.wchar_twchar_t是C/C++的字符类型,是一种扩展的存储方式,wchar_t类型主要用在国际化程序的实现中定义方式:wchar_t *str = "Hello World!!";3.C++如... 阅读全文
posted @ 2015-12-05 00:53 一样菜 阅读(559) 评论(0) 推荐(0) 编辑
摘要: void SkinRGB(IplImage* rgb, IplImage* _dst){ assert(rgb->nChannels == 3 && _dst->nChannels == 3); static const int R = 2; static const int G ... 阅读全文
posted @ 2015-12-04 18:35 一样菜 阅读(611) 评论(0) 推荐(0) 编辑
摘要: Mat input_image;Mat output_mask;Mat output_image;void main(){ VideoCapture cam(0); if (!cam.isOpened()) return; namedWindow("input ima... 阅读全文
posted @ 2015-12-04 18:32 一样菜 阅读(1329) 评论(0) 推荐(0) 编辑
摘要: HSV皮肤检测// 进行肤色检测 void SkinDetect(IplImage* src, IplImage* dst){ // 创建图像头 IplImage* hsv = cvCreateImage(cvGetSize(src), IPL_DEPTH_8U, 3);//用... 阅读全文
posted @ 2015-12-04 18:31 一样菜 阅读(1134) 评论(0) 推荐(0) 编辑
摘要: int main(int argc, char** argv) { //std::string videoFile = "E:\\C_VC_code\\Text_Photo\\dingdang.avi"; //cv::VideoCapture capture; /... 阅读全文
posted @ 2015-11-29 21:34 一样菜 阅读(925) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"void myShowHist(IplImage* image1,IplImage* image2);IplImage* cvShowHist(IplImage* src);int main(){ //对彩色图像进行均衡化 IplImage * image=... 阅读全文
posted @ 2015-11-29 17:19 一样菜 阅读(1935) 评论(0) 推荐(0) 编辑
摘要: #include "stdafx.h"#define max_corners 20int main(){ int cornerNum = max_corners; vectorcorner; double qualityLevel = 0.05; double minDist... 阅读全文
posted @ 2015-11-28 22:24 一样菜 阅读(1088) 评论(0) 推荐(0) 编辑
摘要: //-------------------------------------人头检测-------------------------------------int main(){ //VideoCapture video("E:\\C_VC_code\\Text_Photo\\feini.flv... 阅读全文
posted @ 2015-11-28 20:51 一样菜 阅读(5941) 评论(0) 推荐(0) 编辑
摘要: #include "opencv2/highgui/highgui.hpp" #include "opencv/cv.hpp" #include "string.h"//画直方图用 int HistogramBins = 256;float HistogramRange1[2] = { 0, ... 阅读全文
posted @ 2015-11-27 18:51 一样菜 阅读(462) 评论(0) 推荐(0) 编辑
摘要: #include "iostream"#include "queue"#include "Windows.h"#include #include "opencv2/opencv.hpp"#include "Windows.h"#include "opencv2/core/core.hpp"#incl... 阅读全文
posted @ 2015-11-27 18:49 一样菜 阅读(492) 评论(0) 推荐(0) 编辑
上一页 1 ··· 4 5 6 7 8 9 10 11 12 ··· 20 下一页