libvot  0.1.3
A C++11 multithread library for image retrieval
Public Member Functions | List of all members
tw::SiftData Class Reference

Sift data structure used in libvot. More...

#include <data_types.h>

Public Member Functions

 SiftData ()
 
 SiftData (const SiftData &obj)
 
SiftDataoperator= (const SiftData &rhs)
 
 ~SiftData ()
 
bool ReadSiftFile (std::string const &szFileName)
 ReadSiftFile: read sift file, this function is compatible with the sfm version of sift file. More...
 
bool ReadChar2DTYPE (std::string const &szFileName)
 ConvertChar2Float: Read a char sift file and convert it to DTYPE(float/double) sift. The descriptors are L1 normalized and then square-rooted (RootSift) More...
 
template<typename T , std::size_t N>
bool ReadOpenmvgDesc (std::string const &szFileName)
 ReadOpenmvgDesc: read desc file of openmvg. More...
 
bool SaveSiftFile (std::string const &szFileName)
 
const int getFeatureNum () const
 
void setFeatureNum (int feat_num)
 
const int getLocDim () const
 
void setLocDim (int loc_dim)
 
const int getDesDim () const
 
void setDesDim (int des_dim)
 
const int getVersion () const
 
void setVersion (int version)
 
void clear ()
 
LTYPE *& getLocPointer ()
 
DTYPE *& getDesPointer ()
 

Detailed Description

Sift data structure used in libvot.

Constructor & Destructor Documentation

tw::SiftData::SiftData ( )
inline
tw::SiftData::SiftData ( const SiftData obj)
inline
tw::SiftData::~SiftData ( )
inline

Member Function Documentation

void tw::SiftData::clear ( )
inline
const int tw::SiftData::getDesDim ( ) const
inline
DTYPE* & tw::SiftData::getDesPointer ( )
inline
const int tw::SiftData::getFeatureNum ( ) const
inline
const int tw::SiftData::getLocDim ( ) const
inline
LTYPE* & tw::SiftData::getLocPointer ( )
inline
const int tw::SiftData::getVersion ( ) const
inline
SiftData& tw::SiftData::operator= ( const SiftData rhs)
inline
bool tw::SiftData::ReadChar2DTYPE ( std::string const &  szFileName)
inline

ConvertChar2Float: Read a char sift file and convert it to DTYPE(float/double) sift. The descriptors are L1 normalized and then square-rooted (RootSift)

Parameters
szFileNamethe name of the sift file
Returns
template<typename T , std::size_t N>
bool tw::SiftData::ReadOpenmvgDesc ( std::string const &  szFileName)
inline

ReadOpenmvgDesc: read desc file of openmvg.

Parameters
szFileNamethe name of the sift file
Returns
bool tw::SiftData::ReadSiftFile ( std::string const &  szFileName)
inline

ReadSiftFile: read sift file, this function is compatible with the sfm version of sift file.

Parameters
szFileNamethe name of the sift file
Returns
bool tw::SiftData::SaveSiftFile ( std::string const &  szFileName)
inline
void tw::SiftData::setDesDim ( int  des_dim)
inline
void tw::SiftData::setFeatureNum ( int  feat_num)
inline
void tw::SiftData::setLocDim ( int  loc_dim)
inline
void tw::SiftData::setVersion ( int  version)
inline

The documentation for this class was generated from the following file: