15 #include <mrpt/otherlibs/do_opencv_includes.h>
39 #define FEATURE_OXFD_COLOR CV_RGB(255,255,0)
40 #define FEATURE_LOWE_COLOR CV_RGB(255,0,255)
43 #define FEATURE_MAX_D 128
GLuint GLuint GLsizei GLenum type
int import_features(char *filename, int type, struct feature **feat)
Reads image features from file.
feature_match_type
FEATURE_FWD_MATCH FEATURE_BCK_MATCH FEATURE_MDL_MATCH.
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 feat...
void draw_features(IplImage *img, struct feature *feat, int n)
Displays a set of features on an image.
feature_type
FEATURE_OXFD FEATURE_LOWE.
double descr_dist_sq(struct feature *f1, struct feature *f2)
Calculates the squared Euclidian distance between two feature descriptors.
#define FEATURE_MAX_D
max feature descriptor length
Structure to represent an affine invariant image feature.
double a
Oxford-type affine region parameter.
int type
feature type, OXFD or LOWE
int category
all-purpose feature category
double ori
orientation of a Lowe-style feature
double c
Oxford-type affine region parameter.
void * feature_data
user-definable data
struct feature * bck_match
matching feature from backmward image
struct feature * fwd_match
matching feature from forward image
CvPoint2D64f img_pt
location in image
double descr[FEATURE_MAX_D]
descriptor
double scl
scale of a Lowe-style feature
struct feature * mdl_match
matching feature from model
CvPoint2D64f mdl_pt
location in model
double b
Oxford-type affine region parameter.