随笔分类 -  OpenCv

摘要:转自:http://blog.csdn.net/xuefengdage/article/details/49447897 采用freetype库,写小字会失真,网上找到这个,利用HDC直接写,效果很好,做个摘抄。 1 <span style="font-size:18px;">void GetStr 阅读全文
posted @ 2017-12-15 17:14 Henry2017 阅读(938) 评论(0) 推荐(0)
摘要:http://blog.sina.com.cn/s/blog_6a2844750101at8y.html 阅读全文
posted @ 2017-12-15 10:19 Henry2017 阅读(1291) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/wx7788250/article/details/70261615 阅读全文
posted @ 2017-12-13 13:53 Henry2017 阅读(10383) 评论(0) 推荐(0)
摘要:http://blog.csdn.net/corcplusplusorjava/article/details/20536251 阅读全文
posted @ 2017-07-15 18:56 Henry2017 阅读(647) 评论(0) 推荐(0)
摘要:opencv_contrib246d.libopencv_core246d.libopencv_features2d246d.libopencv_flann246d.libopencv_gpu246d.libopencv_highgui246d.libopencv_imgproc246d.libop 阅读全文
posted @ 2017-05-25 12:49 Henry2017 阅读(84) 评论(0) 推荐(0)
摘要:Mat转IplImage * 一、 如此,Img就拥有了与mat一样的数据,在需要IplImage*类型的数据时,使用img 二、 转自http://hi.baidu.com/belial/item/1b7460d7a4605fe2795daadc 阅读全文
posted @ 2017-05-24 12:58 Henry2017 阅读(507) 评论(0) 推荐(0)
摘要:opencv.hpp的头文件包含了opencv库里的所有头文件。 阅读全文
posted @ 2017-04-18 19:13 Henry2017 阅读(132) 评论(0) 推荐(0)
摘要:Hai 使用 cvMinAreaRect2画外接矩形是基本步骤是这样的: CvBox2D rect=cvMinAreaRect2(contourSeq,storage4maxcontour); CvPoint2D32f rect_pts0[4]; cvBoxPoints(rect, rect_pts 阅读全文
posted @ 2016-09-06 17:14 Henry2017 阅读(8332) 评论(0) 推荐(0)
摘要:Hai 阅读全文
posted @ 2016-09-05 15:22 Henry2017 阅读(1904) 评论(0) 推荐(0)
摘要:1 #include <opencv2/highgui/highgui.hpp> 2 #include <opencv2/core/core.hpp> 3 #include <vector> 4 #include <iostream> 5 #include <opencv2/imgproc/imgp 阅读全文
posted @ 2016-08-19 20:02 Henry2017 阅读(429) 评论(0) 推荐(0)
摘要:/* * 代码功能:手动选定初始边缘,使用cvSnakeImage算法迭代寻优 * 修改:jink2005 2009-11-18 * 论坛:http://www.aiseminar.cn/bbs */ #include "cv.h" #include "highgui.h" #include <io 阅读全文
posted @ 2016-08-19 19:59 Henry2017 阅读(899) 评论(0) 推荐(0)
摘要:基于OpenCv 2.4.6 1 #include "highgui.h" 2 3 //#include "features2d/features2d.hpp"// 4 #include <opencv2/nonfree/features2d.hpp> 5 #include<opencv2/lega 阅读全文
posted @ 2016-08-19 10:41 Henry2017 阅读(839) 评论(0) 推荐(0)
摘要:VS2010 error RC2170: bitmap file res\xxx.png is not in 3.00 format 编译的时候出现这条错误,打开rc文件发现, IDR_XXX BITMAP "res\\XXX.png" 把BITMAP修改回PNG后,问题解决。 阅读全文
posted @ 2016-08-17 13:41 Henry2017 阅读(400) 评论(0) 推荐(0)
摘要:Via 雪后DE阳光 图像大小变换void cvResize( const CvArr* src, CvArr* dst, intinterpolation=CV_INTER_LINEAR );src 输入图像. dst 输出图像. interpolation 差值方法: • CV_INTER_NN 阅读全文
posted @ 2016-08-12 11:07 Henry2017 阅读(905) 评论(0) 推荐(0)
摘要:vector<Point>是point数据类型的集合,简单讲就是很多point。vector<vector<Point>>就是包含很多vector<Point>的集合。 http://blog.csdn.net/sunny2038/article/details/12889059 阅读全文
posted @ 2016-08-08 16:22 Henry2017 阅读(1141) 评论(0) 推荐(0)
摘要:Hai 1 IplImage* printrect(IplImage *contourim) 2 { 3 4 IplImage *rectim=cvCreateImage(cvGetSize(contourim), IPL_DEPTH_8U, 3); 5 int flag=1; 6 vector<P 阅读全文
posted @ 2016-08-06 14:35 Henry2017 阅读(10474) 评论(0) 推荐(0)
摘要:Hai cvFindContours(binaryim, contourStorage, &contourSeq, sizeof(CvContour),CV_RETR_CCOMP, CV_CHAIN_APPROX_SIMPLE, cvPoint(0, 0)); &contourSeq是用于储存轮廓的 阅读全文
posted @ 2016-08-04 14:24 Henry2017 阅读(6794) 评论(0) 推荐(0)
摘要:1 #include 2 #include 3 #include 4 5 using namespace cv; 6 using namespace std; 7 8 int main() 9 { 10 Mat srcImage(Size(600, 600), CV_8UC3, Scalar(0)); 11 12 RNG &... 阅读全文
posted @ 2016-08-01 14:50 Henry2017 阅读(495) 评论(0) 推荐(0)
摘要:整理摘录 skyseraph 代码所得 出处:http://www.cnblogs.com/skyseraph/ 复制The All 可直接运行 1 #include <windows.h> 2 #include "cv.h" 3 #include "highgui.h" 4 #include <s 阅读全文
posted @ 2016-07-30 14:20 Henry2017 阅读(913) 评论(0) 推荐(0)