随笔分类 -  C++

摘要:Canny边缘检测算法经典的Canny边缘检测算法通常都是从高斯模糊开始,到基于双阈值实现边缘连接结束。但是在实际工程应用中,考虑到输入图像都是彩色图像,最终边缘连接之后的图像要二值化输出显示,所以完整的Canny边缘检测算法实现步骤如下:1.彩色图像转换为灰度图像2.对图像进行高斯模糊3.计算图像... 阅读全文
posted @ 2015-07-07 10:02 lwn6 阅读(2693) 评论(0) 推荐(0)
摘要:http://pan.baidu.com/s/1qWIDphU (工程文件在vs2008中编写)1、使用到的技术GDAL:读取矢量数据GDI: 绘制矢量数据2、详细解释GDI绘图:void CDisplayShpDialogDlg::initialCDC(void){ m_slider_r.... 阅读全文
posted @ 2015-07-02 10:29 lwn6 阅读(2122) 评论(1) 推荐(0)
摘要:1.下载地址 http://trac.osgeo.org/gdal/wiki/DownloadSource 下面是两个版本: http://pan.baidu.com/s/1bntuXER (1.10.0 - April 2013) http://pan.baidu.com/s/1i35ZY2x ( 阅读全文
posted @ 2015-06-29 19:11 lwn6 阅读(2908) 评论(0) 推荐(0)
摘要:PCL 阅读全文
posted @ 2015-06-06 18:53 lwn6 阅读(1334) 评论(0) 推荐(0)
摘要:#includeusing namespace std;template T mass(T *a, int num){ int *b=new int[num]; for(int kp=0;kp>a;} 阅读全文
posted @ 2015-06-05 18:52 lwn6 阅读(180) 评论(0) 推荐(0)
摘要:基于excel9.h的excel处理;#include "excel9.h"#include using namespace std;class excel_lwn{ public: excel_lwn() { CoInitialize(NULL); i... 阅读全文
posted @ 2015-05-16 16:41 lwn6 阅读(469) 评论(0) 推荐(0)
摘要:合并排序,将两个已经排序的数组合并成一个数组,此示例仅能合并由小到大排序的数组.1/合并生成一个新的数组;#include #include using namespace std;void mergeArray(int *a,int aLen,int *b,int bLen,int *c){ ... 阅读全文
posted @ 2015-05-09 21:29 lwn6 阅读(190) 评论(0) 推荐(0)
摘要:1.需要下载的文件 http://pan.baidu.com/s/1c06NpzM2.执行文件shell的编译3.在c++中如何使用#include #include static int _sql_callback(void *notused, int argc, char **argv, c... 阅读全文
posted @ 2015-05-04 18:05 lwn6 阅读(579) 评论(0) 推荐(0)
摘要:#define _CRTDBG_MAP_ALLOC #include #include int main(int argc , char* args[]) { // 这里运行程序,并在下面的函数调用之前delete掉所有new的东西 _CrtDumpMemoryLeaks();... 阅读全文
posted @ 2015-05-04 15:07 lwn6 阅读(128) 评论(0) 推荐(0)
摘要:1:开发需要的文件下载地址:http://www.geo.tuwien.ac.at/opals/html/index.html注意只能在release下才能通过.我自己整理好的(64位的),以备开发使用. http://pan.baidu.com/s/1pJsTAiB 阅读全文
posted @ 2015-05-03 10:48 lwn6 阅读(250) 评论(0) 推荐(0)
摘要:文件加入到工程目录下即可:CSpreadSheet.h文件在vs的mfc工程下运行.// Class to read and write to Excel and text delimited spreadsheet//// Created by Yap Chun Wei// December 20... 阅读全文
posted @ 2015-05-02 17:22 lwn6 阅读(1158) 评论(0) 推荐(0)
摘要:cmd /c "g++ -o $(CURRENT_DIRECTORY)\$(NAME_PART).exe $(FULL_CURRENT_PATH)" 出现控制台. NppExec_041_dll_Unicode http://www.softpedia.com/get/Office-tools/... 阅读全文
posted @ 2015-04-19 18:29 lwn6 阅读(217) 评论(0) 推荐(0)
摘要:2015-04-03 阅读全文
posted @ 2015-04-03 16:28 lwn6 阅读(142) 评论(0) 推荐(0)
摘要:1、新建MFC ActiveX2、添加方法3.找到add函数编写代码4、在test.idl中找到最后一个uuid5、编译工程,会自动注册控件6、html中的代码 ActiveX 如果对应的控件没有安装,上面语句中codebse可以指定这个文件的下载地址。7、结果 阅读全文
posted @ 2015-04-01 13:21 lwn6 阅读(1513) 评论(0) 推荐(0)
摘要:#include #include // the rest of the code goes here如果你的代码是库的一部分,可以被他人使用,需要为你自己的MyPointType类型进行显示实例化。实例下面的代码段创建了包含XYZ数据的新point类型,连同一个的test的浮点型数据,这样满足存储... 阅读全文
posted @ 2015-03-24 22:04 lwn6 阅读(3508) 评论(0) 推荐(0)
摘要:一、写一个函数找一个字符串中出现频率最高的字符(若最高的相同,取先出现的)char finchar(const char *str){ if (!str||!*str) { return -1; } char ch = str[0]; int m... 阅读全文
posted @ 2015-03-22 20:01 lwn6 阅读(213) 评论(0) 推荐(0)
摘要: 阅读全文
posted @ 2015-03-21 20:44 lwn6 阅读(135) 评论(0) 推荐(0)
摘要:1.本算法使用了PCL点云库,因此运行此代码需要安装PCL (http://pointclouds.org/)其中平面区域的简化效率时70%,其它区域的简化效率时30%.//downSample#include #include #include #include #include #include... 阅读全文
posted @ 2015-03-04 11:08 lwn6 阅读(3266) 评论(2) 推荐(1)
摘要:#include #include //多线程相关操作头文件,可移植众多平台using namespace std;struct mypara{ int para1; //参数1 char *para2; //... 阅读全文
posted @ 2015-02-08 17:24 lwn6 阅读(6315) 评论(0) 推荐(0)
摘要:1、代码//thread.cpp#include #include //多线程相关操作头文件,可移植众多平台using namespace std;#define NUM_THREADS 5 //线程数void* say_hello( void* args ){ cout << "hello... 阅读全文
posted @ 2015-02-07 12:57 lwn6 阅读(224) 评论(0) 推荐(0)

什么是幸福?天天在做自己想做的事情,家人、同事、朋友、客户、网友都和和睦睦,身体健康、钱包鼓鼓、女朋友天天开心、生活无忧无虑就是最大的幸福