Public Member Functions | Private Types | Private Member Functions | Static Private Member Functions | Private Attributes | Friends
ServerSiftGPU Class Reference

#include <ServerSiftGPU.h>

Inheritance diagram for ServerSiftGPU:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual int _CreateContextGL ()
virtual int _VerifyContextGL ()
virtual int AllocatePyramid (int width, int height)
int CreateContextGL ()
virtual int GetFeatureNum ()
virtual void GetFeatureVector (SiftGPU::SiftKeypoint *keys, float *descriptors)
virtual int GetGuidedSiftMatch (int max_match, int match_buffer[][2], float H[3][3], float F[3][3], float distmax, float ratiomax, float hdistmax, float fdistmax, int mutual_best_match)
int GetImageCount ()
virtual int GetSiftMatch (int max_match, int match_buffer[][2], float distmax, float ratiomax, int mutual_best_match)
int IsFullSupported ()
virtual void ParseParam (int argc, char **argv)
virtual int RunSIFT (const char *imgpath)
virtual int RunSIFT ()
virtual int RunSIFT (int width, int height, const void *data, unsigned int gl_format, unsigned int gl_type)
virtual int RunSIFT (int num, const SiftGPU::SiftKeypoint *keys, int keys_have_orientation=1)
int RunSIFT (int index)
virtual void SaveSIFT (const char *szFileName)
SIFTGPU_EXPORT ServerSiftGPU (int port=DEFAULT_PORT, char *remote_server=NULL)
virtual void SetDescriptors (int index, int num, const float *descriptors, int id=-1)
virtual void SetDescriptors (int index, int num, const unsigned char *descriptors, int id=-1)
virtual void SetDeviceParam (int argc, char **argv)
virtual void SetFeautreLocation (int index, const float *locations, int gap)
 Guided matching is not supported here, not hard to implement yourself.
void SetImageList (int nimage, const char **filelist)
virtual void SetKeypointList (int num, const SiftGPU::SiftKeypoint *keys, int keys_have_orientation=1)
virtual void SetLanguage (int gpu_language)
virtual void SetMaxDimension (int sz)
virtual void SetMaxSift (int max_sift)
virtual void SetTightPyramid (int tight=1)
void SetVerbose ()
virtual int VerifyContextGL ()
virtual ~ServerSiftGPU ()

Private Types

enum  {
  COMMAND_NONE = 0, COMMAND_EXIT = 1, COMMAND_DISCONNECT, COMMAND_INITIALIZE,
  COMMAND_ALLOCATE_PYRAMID, COMMAND_RUNSIFT, COMMAND_RUNSIFT_FILE, COMMAND_RUNSIFT_KEY,
  COMMAND_RUNSIFT_DATA, COMMAND_SAVE_SIFT, COMMAND_SET_MAX_DIMENSION, COMMAND_SET_KEYPOINT,
  COMMAND_GET_FEATURE_COUNT, COMMAND_SET_TIGHTPYRAMID, COMMAND_GET_KEY_VECTOR, COMMAND_GET_DES_VECTOR,
  COMMAND_PARSE_PARAM, COMMAND_MATCH_INITIALIZE, COMMAND_MATCH_SET_LANGUAGE, COMMAND_MATCH_SET_DES_FLOAT,
  COMMAND_MATCH_SET_DES_BYTE, COMMAND_MATCH_SET_MAXSIFT, COMMAND_MATCH_GET_MATCH, DEFAULT_PORT = 7777
}

Private Member Functions

int ConnectServer (const char *server_name, int port)
void Disconnect ()
int InitializeConnection (int argc, char **argv)
void SetParamSiftGPU (int argc, char **argv)
int StartServerProcess (int argc, char **argv)

Static Private Member Functions

static int GetPixelSizeGL (unsigned int gl_format, unsigned int gl_type)
static int InitSocket ()
static void ServerLoop (int port, int argc, char **argv)

Private Attributes

int _connected
int _port
char _server_name [1024]
int _socketfd

Friends

void RunServerLoop (int port, int argc, char **argv)

Detailed Description

Definition at line 45 of file ServerSiftGPU.h.


Member Enumeration Documentation

anonymous enum [private]
Enumerator:
COMMAND_NONE 
COMMAND_EXIT 
COMMAND_DISCONNECT 
COMMAND_INITIALIZE 
COMMAND_ALLOCATE_PYRAMID 
COMMAND_RUNSIFT 
COMMAND_RUNSIFT_FILE 
COMMAND_RUNSIFT_KEY 
COMMAND_RUNSIFT_DATA 
COMMAND_SAVE_SIFT 
COMMAND_SET_MAX_DIMENSION 
COMMAND_SET_KEYPOINT 
COMMAND_GET_FEATURE_COUNT 
COMMAND_SET_TIGHTPYRAMID 
COMMAND_GET_KEY_VECTOR 
COMMAND_GET_DES_VECTOR 
COMMAND_PARSE_PARAM 
COMMAND_MATCH_INITIALIZE 
COMMAND_MATCH_SET_LANGUAGE 
COMMAND_MATCH_SET_DES_FLOAT 
COMMAND_MATCH_SET_DES_BYTE 
COMMAND_MATCH_SET_MAXSIFT 
COMMAND_MATCH_GET_MATCH 
DEFAULT_PORT 

Definition at line 47 of file ServerSiftGPU.h.


Constructor & Destructor Documentation

SIFTGPU_EXPORT ServerSiftGPU::ServerSiftGPU ( int  port = DEFAULT_PORT,
char *  remote_server = NULL 
)
virtual ServerSiftGPU::~ServerSiftGPU ( ) [virtual]

Member Function Documentation

virtual int ServerSiftGPU::_CreateContextGL ( ) [inline, virtual]

Reimplemented from SiftMatchGPU.

Definition at line 131 of file ServerSiftGPU.h.

virtual int ServerSiftGPU::_VerifyContextGL ( ) [virtual]

Reimplemented from SiftMatchGPU.

virtual int ServerSiftGPU::AllocatePyramid ( int  width,
int  height 
) [virtual]

Reimplemented from SiftGPU.

int ServerSiftGPU::ConnectServer ( const char *  server_name,
int  port 
) [private]
int ServerSiftGPU::CreateContextGL ( ) [inline, virtual]

Reimplemented from SiftGPU.

Definition at line 125 of file ServerSiftGPU.h.

virtual int ServerSiftGPU::GetFeatureNum ( ) [virtual]

Reimplemented from SiftGPU.

virtual void ServerSiftGPU::GetFeatureVector ( SiftGPU::SiftKeypoint keys,
float *  descriptors 
) [virtual]

Reimplemented from SiftGPU.

virtual int ServerSiftGPU::GetGuidedSiftMatch ( int  max_match,
int  match_buffer[][2],
float  H[3][3],
float  F[3][3],
float  distmax,
float  ratiomax,
float  hdistmax,
float  fdistmax,
int  mutual_best_match 
) [inline, virtual]

Reimplemented from SiftMatchGPU.

Definition at line 148 of file ServerSiftGPU.h.

int ServerSiftGPU::GetImageCount ( ) [inline, virtual]

Reimplemented from SiftGPU.

Definition at line 124 of file ServerSiftGPU.h.

static int ServerSiftGPU::GetPixelSizeGL ( unsigned int  gl_format,
unsigned int  gl_type 
) [static, private]
virtual int ServerSiftGPU::GetSiftMatch ( int  max_match,
int  match_buffer[][2],
float  distmax,
float  ratiomax,
int  mutual_best_match 
) [virtual]

Reimplemented from SiftMatchGPU.

int ServerSiftGPU::InitializeConnection ( int  argc,
char **  argv 
) [private]
static int ServerSiftGPU::InitSocket ( ) [static, private]
int ServerSiftGPU::IsFullSupported ( ) [inline, virtual]

Reimplemented from SiftGPU.

Definition at line 126 of file ServerSiftGPU.h.

virtual void ServerSiftGPU::ParseParam ( int  argc,
char **  argv 
) [virtual]

Reimplemented from SiftGPU.

virtual int ServerSiftGPU::RunSIFT ( const char *  imgpath) [virtual]

Reimplemented from SiftGPU.

virtual int ServerSiftGPU::RunSIFT ( ) [virtual]

Reimplemented from SiftGPU.

virtual int ServerSiftGPU::RunSIFT ( int  width,
int  height,
const void data,
unsigned int  gl_format,
unsigned int  gl_type 
) [virtual]

Reimplemented from SiftGPU.

virtual int ServerSiftGPU::RunSIFT ( int  num,
const SiftGPU::SiftKeypoint keys,
int  keys_have_orientation = 1 
) [virtual]

Reimplemented from SiftGPU.

int ServerSiftGPU::RunSIFT ( int  index) [inline, virtual]

Reimplemented from SiftGPU.

Definition at line 127 of file ServerSiftGPU.h.

virtual void ServerSiftGPU::SaveSIFT ( const char *  szFileName) [virtual]

Reimplemented from SiftGPU.

static void ServerSiftGPU::ServerLoop ( int  port,
int  argc,
char **  argv 
) [static, private]
virtual void ServerSiftGPU::SetDescriptors ( int  index,
int  num,
const float *  descriptors,
int  id = -1 
) [virtual]

Reimplemented from SiftMatchGPU.

virtual void ServerSiftGPU::SetDescriptors ( int  index,
int  num,
const unsigned char *  descriptors,
int  id = -1 
) [virtual]

Reimplemented from SiftMatchGPU.

virtual void ServerSiftGPU::SetDeviceParam ( int  argc,
char **  argv 
) [virtual]

Reimplemented from SiftMatchGPU.

virtual void ServerSiftGPU::SetFeautreLocation ( int  index,
const float *  locations,
int  gap 
) [inline, virtual]

Guided matching is not supported here, not hard to implement yourself.

Reimplemented from SiftMatchGPU.

Definition at line 147 of file ServerSiftGPU.h.

void ServerSiftGPU::SetImageList ( int  nimage,
const char **  filelist 
) [inline, virtual]

Reimplemented from SiftGPU.

Definition at line 143 of file ServerSiftGPU.h.

virtual void ServerSiftGPU::SetKeypointList ( int  num,
const SiftGPU::SiftKeypoint keys,
int  keys_have_orientation = 1 
) [virtual]

Reimplemented from SiftGPU.

virtual void ServerSiftGPU::SetLanguage ( int  gpu_language) [virtual]

Reimplemented from SiftMatchGPU.

virtual void ServerSiftGPU::SetMaxDimension ( int  sz) [virtual]

Reimplemented from SiftGPU.

virtual void ServerSiftGPU::SetMaxSift ( int  max_sift) [virtual]

Reimplemented from SiftMatchGPU.

void ServerSiftGPU::SetParamSiftGPU ( int  argc,
char **  argv 
) [private]
virtual void ServerSiftGPU::SetTightPyramid ( int  tight = 1) [virtual]

Reimplemented from SiftGPU.

Definition at line 144 of file ServerSiftGPU.h.

int ServerSiftGPU::StartServerProcess ( int  argc,
char **  argv 
) [private]
virtual int ServerSiftGPU::VerifyContextGL ( ) [virtual]

Reimplemented from SiftGPU.


Friends And Related Function Documentation

void RunServerLoop ( int  port,
int  argc,
char **  argv 
) [friend]

Definition at line 896 of file ServerSiftGPU.cpp.


Member Data Documentation

Definition at line 85 of file ServerSiftGPU.h.

Definition at line 84 of file ServerSiftGPU.h.

char ServerSiftGPU::_server_name[1024] [private]

Definition at line 86 of file ServerSiftGPU.h.

Definition at line 82 of file ServerSiftGPU.h.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


rgbd_registration
Author(s): Ross Kidson
autogenerated on Thu May 23 2013 15:36:57