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