examples/OpenCV/siftDetector/hess/imgfeatures.h File Reference#include "cxcore.h"
Go to the source code of this file.
|
Classes |
struct | feature |
Defines |
#define | FEATURE_OXFD_COLOR CV_RGB(255,255,0) |
#define | FEATURE_LOWE_COLOR CV_RGB(255,0,255) |
#define | FEATURE_MAX_D 128 |
Enumerations |
enum | feature_type { FEATURE_OXFD,
FEATURE_LOWE
} |
enum | feature_match_type { FEATURE_FWD_MATCH,
FEATURE_BCK_MATCH,
FEATURE_MDL_MATCH
} |
Functions |
int | import_features (char *filename, int type, struct feature **feat) |
int | export_features (char *filename, struct feature *feat, int n) |
void | draw_features (IplImage *img, struct feature *feat, int n) |
double | descr_dist_sq (struct feature *f1, struct feature *f2) |
Detailed Description
Functions and structures for dealing with image features.
Copyright (C) 2006-2007 Rob Hess <hess@eecs.oregonstate.edu>
- Version:
- 1.1.1-20070913
Definition in file imgfeatures.h.
Define Documentation
#define FEATURE_MAX_D 128 |
Enumeration Type Documentation
FEATURE_FWD_MATCH
FEATURE_BCK_MATCH
FEATURE_MDL_MATCH - Enumerator:
-
FEATURE_FWD_MATCH |
|
FEATURE_BCK_MATCH |
|
FEATURE_MDL_MATCH |
|
Definition at line 22 of file imgfeatures.h.
FEATURE_OXFD
FEATURE_LOWE - Enumerator:
-
FEATURE_OXFD |
|
FEATURE_LOWE |
|
Definition at line 15 of file imgfeatures.h.
Function Documentation
Calculates the squared Euclidian distance between two feature descriptors.
- Parameters:
-
- Returns:
- Returns the squared Euclidian distance between the descriptors of f1 and f2.
Definition at line 157 of file imgfeatures.cpp.
void draw_features |
( |
IplImage * |
img, |
|
|
struct feature * |
feat, |
|
|
int |
n | |
|
) |
| | |
Displays a set of features on an image
- Parameters:
-
| img | image on which to display features |
| feat | array of Oxford-type features |
| n | number of features |
Definition at line 120 of file imgfeatures.cpp.
int export_features |
( |
char * |
filename, |
|
|
struct feature * |
feat, |
|
|
int |
n | |
|
) |
| | |
Exports a feature set to a file formatted depending on the type of features, as specified in the feature struct's type field.
- Parameters:
-
| filename | name of file to which to export features |
| feat | feature array |
| n | number of features |
- Returns:
- Returns 0 on success or 1 on error
Definition at line 81 of file imgfeatures.cpp.
int import_features |
( |
char * |
filename, |
|
|
int |
type, |
|
|
struct feature ** |
feat | |
|
) |
| | |
Reads image features from file. The file should be formatted either as from the code provided by the Visual Geometry Group at Oxford or from the code provided by David Lowe.
- Parameters:
-
- Returns:
- Returns the number of features imported from filename or -1 on error
Definition at line 45 of file imgfeatures.cpp.
|