generalized_hough.h File Reference
#include <cv.h>
#include <highgui.h>
#include <vector>
#include "outlet_pose_estimation/detail/features.h"
#include "outlet_pose_estimation/detail/affine_transform.h"
#include "outlet_pose_estimation/detail/outlet_model.h"
Go to the source code of this file.
Functions |
CvSparseMat * | buildHoughHist (std::vector< feature_t > &input, const std::vector< feature_t > &train_features, int *hist_size, float **ranges) |
void | calcExactLocation (std::vector< feature_t > &features, const std::vector< feature_t > &train_features, std::vector< feature_t > &src_outlet, std::vector< feature_t > &dst_outlet, float &reprojectionError, int accuracy=10, bool useSecondAttraction=true) |
void | calcOutletPosition (const std::vector< feature_t > &train_features, float *affine_transform, std::vector< feature_t > &features) |
void | convertFeaturesToOutlet (const std::vector< feature_t > &res_features, const std::vector< bool > &is_detected, std::vector< outlet_t > &holes) |
void | convertFeaturesToOutlet (const std::vector< feature_t > &res_features, std::vector< outlet_t > &holes, IplImage *resImage=0) |
float | generalizedHoughTransform (std::vector< feature_t > &hole_candidates, const std::vector< feature_t > &train_features, int *hist_size, float **ranges, std::vector< outlet_t > &holes, IplImage *ghtImage=NULL, IplImage *resImage=NULL, char *output_path=0, char *base_filename=0) |
int | getMaxHistValues (const CvSparseMat *hist, int *hist_size, float **ranges, float **&maxs, int &count) |
void | getMaxHistValues (const CvSparseMat *hist, int *hist_size, float **ranges, float **&maxs, int &count, int MIN_VOTES) |
Function Documentation
CvSparseMat* buildHoughHist |
( |
std::vector< feature_t > & |
input, |
|
|
const std::vector< feature_t > & |
train_features, |
|
|
int * |
hist_size, |
|
|
float ** |
ranges | |
|
) |
| | |
void calcExactLocation |
( |
std::vector< feature_t > & |
features, |
|
|
const std::vector< feature_t > & |
train_features, |
|
|
std::vector< feature_t > & |
src_outlet, |
|
|
std::vector< feature_t > & |
dst_outlet, |
|
|
float & |
reprojectionError, |
|
|
int |
accuracy = 10 , |
|
|
bool |
useSecondAttraction = true | |
|
) |
| | |
void calcOutletPosition |
( |
const std::vector< feature_t > & |
train_features, |
|
|
float * |
affine_transform, |
|
|
std::vector< feature_t > & |
features | |
|
) |
| | |
void convertFeaturesToOutlet |
( |
const std::vector< feature_t > & |
res_features, |
|
|
const std::vector< bool > & |
is_detected, |
|
|
std::vector< outlet_t > & |
holes | |
|
) |
| | |
void convertFeaturesToOutlet |
( |
const std::vector< feature_t > & |
res_features, |
|
|
std::vector< outlet_t > & |
holes, |
|
|
IplImage * |
resImage = 0 | |
|
) |
| | |
float generalizedHoughTransform |
( |
std::vector< feature_t > & |
hole_candidates, |
|
|
const std::vector< feature_t > & |
train_features, |
|
|
int * |
hist_size, |
|
|
float ** |
ranges, |
|
|
std::vector< outlet_t > & |
holes, |
|
|
IplImage * |
ghtImage = NULL , |
|
|
IplImage * |
resImage = NULL , |
|
|
char * |
output_path = 0 , |
|
|
char * |
base_filename = 0 | |
|
) |
| | |
int getMaxHistValues |
( |
const CvSparseMat * |
hist, |
|
|
int * |
hist_size, |
|
|
float ** |
ranges, |
|
|
float **& |
maxs, |
|
|
int & |
count | |
|
) |
| | |
void getMaxHistValues |
( |
const CvSparseMat * |
hist, |
|
|
int * |
hist_size, |
|
|
float ** |
ranges, |
|
|
float **& |
maxs, |
|
|
int & |
count, |
|
|
int |
MIN_VOTES | |
|
) |
| | |