- 博客(22)
- 资源 (2)
- 收藏
- 关注
原创 提示计算机中丢失 opencv_world300d.dll
提示计算机中丢失 opencv_world300d.dll1、将opencv_world300d.dll 拷贝到C:\Windows\System322、如果还提示失败 拷贝到C:\Windows\SysWOW64opencv_world300d.dll 目录在D:\opencvly\build\x64\vc14\bin 或者D:\opencvly\build\x64\vc12\bin根据自己的库目录拷贝这个文件...
2020-11-17 15:39:33
1325
原创 c++ 数据格式转换
欢迎添加const wchar_t*和string 互相转换std::wstring stringToWstringmiddle(const std::string& str)//string 转为const wchar_t*{ LPCSTR pszSrc = str.c_str(); int nLen = MultiByteToWideChar(CP_ACP, 0, pszSrc, -1, NULL, 0); if (nLen == 0) return std::wstr..
2020-07-17 16:39:32
422
原创 VS2015+QT5.11.1下配置Opencv2
参考https://blog.youkuaiyun.com/CholenMine/article/details/85044750工程右键属性,打开窗口1、设置附加包含目录2、链接器-常规-附加库目录 设置lib文件目录33、 输入-附加依赖项 添加lib文件opencv_world310.lib 为release模式opencv_world310d.lib 为debug模式4、cpp文件中添加#include <opencv2\opencv.hp...
2020-05-27 19:18:44
300
转载 VS2015 + Qt开发中无法打开源文件“ui_*.h” 和 error MSB6006: “cmd.exe”已退出,代码为 3之解决办法。
转载请注明出处:http://www.cnblogs.com/liangliu/p/8118149.htmlVS2015中新建的QtGuiApplication项目,总是显示#include "ui_XXXXX.h"出错,找不到源文件"ui_XXXXX.h",在Qt VS Tools选择卡中中选择“Convert Project to QMake Generated Project”,...
2020-02-24 21:29:53
2197
原创 VS2013 以上 GDAL64位 安装步骤 附有库下载链接
对编译完的gdal库,有两个文件夹,Include,lib。第一步:头文件配置在新建的工程中右击->属性->配置属性->c/c++->常规,在右侧找到“附加包含目录”,然后将include文件夹的路径填写完整,然后点击应用第二步:静态库路径配置配置属性->链接器->常规,在右侧的“附加库目录”中将GDAL的lib文件夹的路径填写完整,然后点击...
2019-11-20 15:44:44
503
原创 Qt-在vs2013 -打开文件对话框 读取路径 并显示路径
#include "CloudDetectionGUI.h"#include"GBK.h"#include <QDebug>#include <QFileDialog> CloudDetectionGUI::CloudDetectionGUI(QWidget *parent) : QWidget(parent){ ui.setupUi(this); c...
2019-10-24 15:10:47
1475
转载 GDAL c++ 遥感影像16位转8位
typedef unsigned __int16 uint16_t;typedef unsigned unsigned char uint8_t;int stretch_percent_16to8(const char *inFilename, const char *dstFilename){ GDALAllRegister(); //为了支持中文路径 CPLSetCon...
2019-09-21 15:03:05
1462
转载 C++ GDAL 分波段进行数据运算
int RGBToGRAYGDAL(const char* pszSrcFile, const char* pszDstFile, bool BIT8 = true, const char* pszFormat = "GTiff"){ if (pszSrcFile == NULL || pszDstFile == NULL) return -1; GDALAllRegister();...
2019-09-21 15:00:19
2097
2
原创 未定义标识符ULONG_PTR,BOOL等错误解决方法 vs2013
在vs2013中出现错误:未定义标识符ULONG_PTR,BOOL等添加 #include<windows.h>
2019-09-16 14:10:49
3298
转载 VS2013 下安装 Qt5 一些不能运行的注意事项
1. 下载 Qt5 下载以下软件:(不管你是 32 位还是 64 位,都下载这几个文件) 百度云盘:链接:https://pan.baidu.com/s/1zeRZwKYcPBub3GqnEHtkDA 密码:4cuo (1)Qt开发包qt-opensource-windows-x86-msvc2013-5.6.2.exe (2)...
2019-09-08 14:34:59
715
原创 c++ 关于opencv 的基本操作
读取影像#include <opencv2/opencv.hpp> //头文件using namespace cv; //包含cv命名空间int main(){ // 【1】读入一张图片 Mat img = imread("D://ly_yun//images//GF1a.tif"); // 【2】在窗口中显示载入的图片 imshow("【载入的图片】", img...
2019-09-04 15:47:10
1926
原创 c++ 曲线拟合的最小二乘法 公式 二次多项式和三次多项式
struct Hisnum//直方图结构体 进行多项式拟合{ int gray; int num;};struct Hisnum//直方图结构体 进行多项式拟合{ int gray; int num;};struct xishu{ double A1; double A2; double A3; double A4;};xishu pol...
2019-09-04 15:33:54
15376
3
原创 c++ 多项式拟合 本文部分转载
#include <opencv2\opencv.hpp>#include <iostream>#include <vector>using namespace cv;using namespace std;Mat polyfit(vector<Point>& in_point, int n);int main(){...
2019-09-04 15:24:44
472
转载 文件遍历
_finddata_t 结构体struct _finddata_t 是用来存储文件各种信息的结构体。定义如下:struct _finddata_t{unsigned attrib;time_t time_create;time_t time_access;time_t time_write;_fsize_t size;char name[_MAX_FNAME];}...
2019-09-04 15:11:24
260
转载 Anaconda安装GDAL 可用
Anaconda安装GDAL (转载的自己装成功的)原创 2017年08月09日 17:16:39· 944参考:http://blog.youkuaiyun.com/u010670734/article/details/544263731、双击Anaconda3-4.4.0-Windows-x86_64.exe安装,安装目录D:\ProgramData\Anaconda32、pycharm选...
2018-04-28 23:22:02
5928
转载 python 文件合并
两文件合并 两文件行合并为一行import sys#建立点号 输出序列1,2,3,4……到文件中File=open("E:\\test\\sift\\ID.txt","w")idNum=len(open("E:\\test\\sift\\p1a.txt").readlines())for Index inrange(1,idNum): File.write(str(Index)+"\n")...
2018-04-28 23:15:07
773
原创 Python DEM高程精度计算__新建空的元组,存入
import gdalimport sysimport osimport math controlFile=open("D:\\DEM2\\11.txt","r") lstcon=controlFile.readlines() pNum=0 sum=0 id1= [] for point in ls...
2018-04-28 23:06:18
938
原创 python GDAL的应用
from osgeo import gdalgdal.AllRegister()filePath="D://data3//J47G085041.tif"dataset=gdal.Open(filePath)#if dataset is None:# sys.exit(1)#从一个栅格数据集中取出Geotransform作为一个list,然后读取其中的数据adfGeoTransform=dat...
2018-04-28 22:51:42
535
原创 python 将print输出保存到文本文件中
print输出到文本import sysprint 'HEO=LLO'output=sys.stdoutoutputfile=open("D:\\DEM4\\2.txt","a")sys.stdout=outputfile中文输出添加type = sys.getfilesystemencoding()#python编码转换到系统编码输出...
2018-04-28 22:42:26
48599
5
原创 python在ArcGIS中的应用
读取栅格数据的脚点坐标、影响名、坐标系import arcpyarcpy.env.workspace="C:\Python27"try: descRaster=arcpy.Describe("D:\\data3\\4026.0-540.0.tif") #os.path.join(root,file) ext=descRaster.extent name1=descRaster....
2018-04-28 22:39:47
4011
原创 python_文件遍历、文件读取、文件操作
一、文件遍历import os fileDir="D:" + os.sep + "data2" for root, dirs, files in os.walk(fileDir): for dir in dirs: print(os.path.join(root,dir)) for file in files: print(o...
2018-04-28 14:08:49
15328
vs2013 以上 64位GDAL库 QT中也可使用
2019-11-20
C++ GDAL读取高分1号影像 实现LBP算法(源代码)VS2013
2019-08-20
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人