資源簡介
PCA融合算法C++實現代碼,依賴庫為GDAL,需要自行配置。

代碼片段和文件信息
#include?“PcaFusion.h“
#include?
#include?
using?namespace?std;
int?main(?int?argc?char*?argv[]?)
{
????string?multiFilename?=?argv[1];
????string?highRSFilename?=?argv[2];
????string?saveName?=?argv[3];
????bool?res?=?false;
????time_t?startTime?=?time(?NULL?);
????try
????{
????????PcaFusion?*pcaFusion?=?new?PcaFusion(?multiFilename?highRSFilename?saveName?);
????????//?pcaFusion->setFactor(?1000?);??這個用于控制精度
????????res?=?pcaFusion->principalFusion();
????}
????catch?(?...?)
????{
????????cout?<“there‘s?something?wrong...“?<????}
????if?(?res?==?true?)
????{
????????cout?<“Done!“?<????}
????else
????{
????????cout?<“Failed!“?<????}
????time_t?endTime?=?time(?NULL?);
????cout?<“time?use:“?<
// getchar();
????return?1;
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????文件????????3797??2015-09-01?20:12??PcaFusion.h
?????文件?????????880??2017-06-06?15:52??main.cpp
?????文件???????44803??2017-06-06?15:53??PcaFusion.cpp
- 上一篇:基于Linux消息隊列的簡易聊天室(C語言)()
- 下一篇:程序員實用算法源代碼
評論
共有 條評論