资源简介
已经添加好依赖库,直接生成依赖库,进行调用!!!!!!!!!!!!!!!!!!
代码片段和文件信息
////////////////////////////////////////////////////////////////////////////
// File: server.cpp
// Author: Changchang Wu
// Description : driver of a SiftGPU Server.
//
// Copyright (c) 2007 University of North Carolina at Chapel Hill
// All Rights Reserved
//
// Permission to use copy modify and distribute this software and its
// documentation for educational research and non-profit purposes without
// fee and without a written agreement is hereby granted provided that the
// above copyright notice and the following paragraph appear in all copies.
//
// The University of North Carolina at Chapel Hill make no representations
// about the suitability of this software for any purpose. It is provided
// ‘as is‘ without express or implied warranty.
//
// Please send BUG REPORTS to ccwu@cs.unc.edu
//
////////////////////////////////////////////////////////////////////////////
#include
#include
#include
using std::cout;
#include “../SiftGPU/SiftGPU.h“
//if you included ServerSiftGPU.h here.
//CreateRemoteSiftGPU can be replaced by new ServerSiftGPU();
int main(int argc char** argv)
{
if(argc >= 2 && strcmp(argv[1] “-server“) == 0)
{
//run siftgpu server
std::cout << “Starting server process...\n“;
int port = 7777;
if(argc >= 3) sscanf(argv[2] “%d“ &port);
//////////////////////////////////////
RunServerLoop(port argc - 3 argv + 3);
}else if(argc >=2 && strcmp(argv[1] “-test“) == 0)
{
//start server on same computer and connect...
//note we are using a SiftGPU pointer..
SiftGPU* siftgpu = CreateRemoteSiftGPU();
siftgpu->ParseParam(argc - 2 argv + 2);
if(siftgpu->VerifyContextGL())
{
//files on the matchines where the server runs
siftgpu->RunSIFT(“../data/800-1.jpg“);
siftgpu->RunSIFT(“../data/800-2.jpg“);
}
delete siftgpu; //this will terminate the server
}else if(argc >=4 && strcmp(argv[1] “-test_remote“) == 0)
{
////test client that connects to remote server...
char server_name[1024]; int port = 7777;
strcpy(server_name argv[2]);
sscanf(argv[3] “%d“ &port);
SiftGPU* siftgpu = CreateRemoteSiftGPU(port server_name);//new ServerSiftGPU(port server_name);
siftgpu->ParseParam(argc - 4 argv + 4);
if(siftgpu->VerifyContextGL())
{
//files on the matchines where the server runs
siftgpu->RunSIFT(“../data/800-1.jpg“);
siftgpu->RunSIFT(“../data/800-2.jpg“);
}
delete siftgpu;
}else if(argc >=2 && strcmp(argv[1] “-test2“) == 0)
{
//test using two siftgpu servers...usage:
//server_siftgpu -test2 [server1_params] [-server2 [server2_params]]
////////////////////////////////////////////
//they need to use different ports.
SiftGPU* siftgpu1 = CreateRemoteSiftGPU(7777);//new ServerSiftGPU(7777);
SiftGPU* siftgpu2 = CreateRemoteSiftGPU(8888);//new ServerSiftGPU(8888);
//split the parameters for th
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2012-09-24 23:55 SiftGPU\
目录 0 2017-11-28 09:28 SiftGPU\bin\
文件 670720 2010-05-24 13:32 SiftGPU\bin\DevIL.dll
文件 2300928 2011-08-22 09:43 SiftGPU\bin\DevIL64.dll
文件 245760 2011-08-22 09:43 SiftGPU\bin\glew32.dll
文件 279552 2011-08-22 09:43 SiftGPU\bin\glew64.dll
文件 38912 2017-11-24 17:51 SiftGPU\bin\MultiThreadSIFT_d.exe
文件 357432 2017-11-24 17:51 SiftGPU\bin\MultiThreadSIFT_d.ilk
文件 515072 2017-11-28 09:28 SiftGPU\bin\server_siftgpu.exe
文件 1300356 2017-11-28 09:28 SiftGPU\bin\server_siftgpu.ilk
文件 2255872 2017-11-28 09:28 SiftGPU\bin\server_siftgpu.pdb
文件 1807872 2012-12-17 23:20 SiftGPU\bin\SiftGPU.dll
文件 433664 2012-10-11 12:48 SiftGPU\bin\SiftGPU64.dll
文件 1147392 2017-11-27 14:07 SiftGPU\bin\SiftGPU_d.dll
文件 3300208 2017-11-27 14:07 SiftGPU\bin\SiftGPU_d.ilk
文件 153600 2012-12-17 23:20 SiftGPU\bin\SimpleSIFT.exe
文件 585728 2017-11-24 10:41 SiftGPU\bin\SimpleSIFT_d.exe
文件 1439560 2017-11-24 10:41 SiftGPU\bin\SimpleSIFT_d.ilk
文件 154112 2012-12-18 10:13 SiftGPU\bin\Speed.exe
文件 561152 2017-11-24 10:41 SiftGPU\bin\Speed_d.exe
文件 1418240 2017-11-24 10:41 SiftGPU\bin\Speed_d.ilk
文件 158720 2012-12-17 23:20 SiftGPU\bin\TestWin.exe
文件 567296 2017-11-24 10:42 SiftGPU\bin\TestWinGlut_d.exe
文件 1496760 2017-11-24 10:42 SiftGPU\bin\TestWinGlut_d.ilk
文件 570368 2017-11-24 10:42 SiftGPU\bin\TestWin_d.exe
文件 1535912 2017-11-24 10:42 SiftGPU\bin\TestWin_d.ilk
目录 0 2017-10-11 13:22 SiftGPU\data\
文件 700121 2012-10-03 22:38 SiftGPU\data\1600.jpg
文件 196370 2011-08-22 09:43 SiftGPU\data\640-1.jpg
文件 99981 2012-10-03 22:42 SiftGPU\data\640-2.jpg
文件 90589 2012-10-03 22:42 SiftGPU\data\640-3.jpg
............此处省略483个文件信息
评论
共有 条评论