Image Component Library (ICL)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Classes | Typedefs | Functions | Variables
icl::cv::opensurf Namespace Reference

Classes

class  Kmeans
 Kmeans clustering. More...
class  ResponseLayer
 Response Layer class. More...
class  Surf
 Surf Feation class. More...

Typedefs

typedef SurfFeature Ipoint
typedef std::vector< SurfFeatureIpVec
typedef std::vector< SurfMatchIpPairVec

Functions

ICLCV_API void getMatches (IpVec &ipts1, IpVec &ipts2, IpPairVec &matches)
ICLCV_API int translateCorners (IpPairVec &matches, const CvPoint src_corners[4], CvPoint dst_corners[4])
ICLCV_API IplImage * Integral (IplImage *img)
 Computes the integral image of image img. Assumes source image to be a.
ICLCV_API float BoxIntegral (IplImage *img, int row, int col, int rows, int cols)
 Computes the sum of pixels within the rectangle.
ICLCV_API void surfDetDes (IplImage *img, std::vector< Ipoint > &ipts, bool upright=false, int octaves=OCTAVES, int intervals=INTERVALS, int init_sample=INIT_SAMPLE, float thres=THRES)
 Library function builds vector of described interest points.
ICLCV_API void surfDet (IplImage *img, std::vector< Ipoint > &ipts, int octaves=OCTAVES, int intervals=INTERVALS, int init_sample=INIT_SAMPLE, float thres=THRES)
 Library function builds vector of interest points.
ICLCV_API void surfDes (IplImage *img, std::vector< Ipoint > &ipts, bool upright=false)
 Library function describes interest points in vector.
ICLCV_API void error (const char *msg)
 Display error message and terminate program.
ICLCV_API void showImage (const IplImage *img)
 Show the provided image and wait for keypress.
ICLCV_API void showImage (char *title, const IplImage *img)
 Show the provided image in titled window and wait for keypress.
ICLCV_API IplImage * getGray (const IplImage *img)
ICLCV_API void drawIpoint (IplImage *img, Ipoint &ipt, int tailSize=0)
 Draw a single feature on the image.
ICLCV_API void drawIpoints (IplImage *img, std::vector< Ipoint > &ipts, int tailSize=0)
 Draw all the Ipoints in the provided vector.
ICLCV_API void drawWindows (IplImage *img, std::vector< Ipoint > &ipts)
 Draw descriptor windows around Ipoints in the provided vector.
ICLCV_API void drawFPS (IplImage *img)
ICLCV_API void drawPoint (IplImage *img, Ipoint &ipt)
 Draw a Point at feature location.
ICLCV_API void drawPoints (IplImage *img, std::vector< Ipoint > &ipts)
 Draw a Point at all features.
ICLCV_API void saveSurf (char *filename, std::vector< Ipoint > &ipts)
 Save the SURF features to file.
ICLCV_API void loadSurf (char *filename, std::vector< Ipoint > &ipts)
 Load the SURF features from file.
int fRound (float flt)
 Round float to nearest integer.

Variables

static const int OCTAVES = 5
static const int INTERVALS = 4
static const float THRES = 0.0004f
static const int INIT_SAMPLE = 2

Typedef Documentation

typedef std::vector<SurfFeature> icl::cv::opensurf::IpVec

Function Documentation

ICLCV_API float icl::cv::opensurf::BoxIntegral ( IplImage *  img,
int  row,
int  col,
int  rows,
int  cols 
)

Computes the sum of pixels within the rectangle.

specified by the top-left start co-ordinate and size

ICLCV_API void icl::cv::opensurf::drawFPS ( IplImage *  img)
ICLCV_API void icl::cv::opensurf::drawIpoint ( IplImage *  img,
Ipoint &  ipt,
int  tailSize = 0 
)

Draw a single feature on the image.

ICLCV_API void icl::cv::opensurf::drawIpoints ( IplImage *  img,
std::vector< Ipoint > &  ipts,
int  tailSize = 0 
)

Draw all the Ipoints in the provided vector.

ICLCV_API void icl::cv::opensurf::drawPoint ( IplImage *  img,
Ipoint &  ipt 
)

Draw a Point at feature location.

ICLCV_API void icl::cv::opensurf::drawPoints ( IplImage *  img,
std::vector< Ipoint > &  ipts 
)

Draw a Point at all features.

ICLCV_API void icl::cv::opensurf::drawWindows ( IplImage *  img,
std::vector< Ipoint > &  ipts 
)

Draw descriptor windows around Ipoints in the provided vector.

ICLCV_API void icl::cv::opensurf::error ( const char *  msg)

Display error message and terminate program.

int icl::cv::opensurf::fRound ( float  flt) [inline]

Round float to nearest integer.

ICLCV_API IplImage* icl::cv::opensurf::getGray ( const IplImage *  img)
ICLCV_API void icl::cv::opensurf::getMatches ( IpVec &  ipts1,
IpVec &  ipts2,
IpPairVec &  matches 
)
ICLCV_API IplImage* icl::cv::opensurf::Integral ( IplImage *  img)

Computes the integral image of image img. Assumes source image to be a.

32-bit floating point. Returns IplImage in 32-bit float form.

ICLCV_API void icl::cv::opensurf::loadSurf ( char *  filename,
std::vector< Ipoint > &  ipts 
)

Load the SURF features from file.

ICLCV_API void icl::cv::opensurf::saveSurf ( char *  filename,
std::vector< Ipoint > &  ipts 
)

Save the SURF features to file.

ICLCV_API void icl::cv::opensurf::showImage ( const IplImage *  img)

Show the provided image and wait for keypress.

ICLCV_API void icl::cv::opensurf::showImage ( char *  title,
const IplImage *  img 
)

Show the provided image in titled window and wait for keypress.

ICLCV_API void icl::cv::opensurf::surfDes ( IplImage *  img,
std::vector< Ipoint > &  ipts,
bool  upright = false 
)

Library function describes interest points in vector.

ICLCV_API void icl::cv::opensurf::surfDet ( IplImage *  img,
std::vector< Ipoint > &  ipts,
int  octaves = OCTAVES,
int  intervals = INTERVALS,
int  init_sample = INIT_SAMPLE,
float  thres = THRES 
)

Library function builds vector of interest points.

ICLCV_API void icl::cv::opensurf::surfDetDes ( IplImage *  img,
std::vector< Ipoint > &  ipts,
bool  upright = false,
int  octaves = OCTAVES,
int  intervals = INTERVALS,
int  init_sample = INIT_SAMPLE,
float  thres = THRES 
)

Library function builds vector of described interest points.

ICLCV_API int icl::cv::opensurf::translateCorners ( IpPairVec &  matches,
const CvPoint  src_corners[4],
CvPoint  dst_corners[4] 
)

Variable Documentation

const int icl::cv::opensurf::INIT_SAMPLE = 2 [static]
const int icl::cv::opensurf::INTERVALS = 4 [static]
const int icl::cv::opensurf::OCTAVES = 5 [static]
const float icl::cv::opensurf::THRES = 0.0004f [static]
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines