上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: #include "cv.h"#include "highgui.h"#include "cxcore.h"#include #include #define N 5//载入数字图片个数char *testPic[] = {"test1.jpg"};int thres = 115; //二值化... 阅读全文
posted @ 2015-08-10 18:50 QQ76211822 阅读(1888) 评论(0) 推荐(0) 编辑
摘要: // PipeServer.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include #include using namespace std;#pragma wa... 阅读全文
posted @ 2015-08-06 21:01 QQ76211822 阅读(412) 评论(0) 推荐(0) 编辑
摘要: //序列没有标签 CvMemStorage *mem = cvCreateMemStorage(0); CvFileStorage *file = cvOpenFileStorage("e:\\123.yml", mem, CV_STORAGE_READ | CV_STORAGE_WRITE); c... 阅读全文
posted @ 2015-08-06 20:59 QQ76211822 阅读(382) 评论(0) 推荐(0) 编辑
摘要: 1.CvMemStorage定义动态内存存储器 内存存储器是一个用来存储诸如序列、轮廓、图形和子划分等动态增长数据结构的底层结构2.示例CvMemStorage *mems = cvCreateMemStorage(100);CvMemStoragePos mempos;cvSaveMemStor... 阅读全文
posted @ 2015-08-05 19:43 QQ76211822 阅读(375) 评论(0) 推荐(0) 编辑
摘要: // ConsoleApplication11.cpp : Defines the entry point for the console application.//#include "stdafx.h"#include #include using namespace cv;using nam... 阅读全文
posted @ 2015-08-05 19:42 QQ76211822 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 图像深度是指存储每个像素所用的位数,也用于量度图像的色彩分辨率.图像深度确定彩色图像的每个像素可能有的颜色数,或者确定灰度图像的每个像素可能有的灰度级数.它决定了彩色图像中可出现的最多颜色数,或灰度图像中的最大灰度等级.比如一幅单色图像,若每个象素有8位,则最大灰度数目为2的8次方,即256.一幅彩... 阅读全文
posted @ 2015-08-04 16:03 QQ76211822 阅读(18167) 评论(0) 推荐(1) 编辑
摘要: 为使得OpenCV的整个库便于管理和扩充,将整个库分成若干子库,CxCore是最重要的一个子库,从“core"名字可以看出,该库提供了所有OpenCV运行时的一些最基本的数据结构,包括矩阵,数组的基本运算,包括出错处理的一些基本函数。具体分为下面若干部分。基础结构:CvPoint二维坐标系下的点,类... 阅读全文
posted @ 2015-08-04 15:58 QQ76211822 阅读(684) 评论(0) 推荐(0) 编辑
摘要: IplImage *pl = cvLoadImage("e:\\3.bmp", 1); cvNamedWindow("123", 1); cvShowImage("123", pl); waitKey(1000); cvDestroyWindow("123"); cvReleaseImage(&pl... 阅读全文
posted @ 2015-08-03 22:07 QQ76211822 阅读(452) 评论(0) 推荐(0) 编辑
摘要: //类型定义CvPoint point(2, 3);CvPoint2D32f point1(2, 3);CvPoint3D32f point2(2, 3);CvSize size(2, 3);CvSize2D32f size1(2, 3);CvRect rect(0, 0, 50, 50);//m... 阅读全文
posted @ 2015-08-03 22:06 QQ76211822 阅读(603) 评论(0) 推荐(0) 编辑
摘要: 1.auto_ptr 不可以使用指针惯用的赋值初始化方式,只能直接初始化。示例:char *p = 'A';//errorauto_ptrptr = new char;//error,被当作普通指针对待了auto_ptrptr4 = auto_ptr(new char);//okauto_ptrp... 阅读全文
posted @ 2015-08-03 22:05 QQ76211822 阅读(170) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页