Functions | Variables
outlet_tuple.cpp File Reference
#include <limits.h>
#include <math.h>
#include <stdio.h>
#include <vector>
#include <algorithm>
#include "outlet_pose_estimation/detail/outlet_tuple.h"
#include <highgui.h>
#include <cvwimage.h>
#include "outlet_pose_estimation/detail/one_way_descriptor.h"
Include dependency graph for outlet_tuple.cpp:

Go to the source code of this file.

Functions

void calc_bounding_rect (int count, const CvRect *rects, CvRect &bounding_rect)
void calc_camera_outlet_pose (CvMat *intrinsic_mat, CvMat *distortion_coeffs, const outlet_template_t &outlet_template, const CvPoint2D32f *image_points, CvMat *rotation_vector, CvMat *translation_vector)
void calc_camera_pose (CvMat *intrinsic_mat, CvMat *distortion_coeffs, int point_count, const CvPoint3D32f *object_points, const CvPoint2D32f *image_points, CvMat *rotation_vector, CvMat *translation_vector)
void calc_camera_pose_2x1 (CvMat *intrinsic_mat, CvMat *distortion_coeffs, const CvPoint2D32f *centers, CvMat *rotation_vector, CvMat *translation_vector)
void calc_camera_pose_2x2 (CvMat *intrinsic_mat, CvMat *distortion_coeffs, const CvPoint2D32f *centers, CvMat *rotation_vector, CvMat *translation_vector)
CvPoint2D32f calc_center (CvSeq *seq)
CvPoint2D32f calc_center (const vector< CvPoint2D32f > &points)
int calc_image_homography (IplImage *src, CvMat *map_matrix, CvSize *dst_size, CvPoint2D32f *hor_dir, CvPoint3D32f *origin, CvPoint2D32f *scale, const char *output_path, const char *filename, CvPoint2D32f *_centers)
void calc_origin_scale (const CvPoint2D32f *centers, CvMat *map_matrix, CvPoint3D32f *origin, CvPoint2D32f *scale)
void calc_outlet_homography (const CvPoint2D32f *centers, CvMat *map_matrix, const outlet_template_t &templ, CvMat *inverse_map_matrix)
void calc_outlet_homography (const CvPoint2D32f *centers, CvSize src_size, CvMat *map_matrix, CvSize *dst_size)
CvSeq * close_seq (CvSeq *seq, CvMemStorage *storage, int closure_dist, IplImage *workspace)
int find_dir (const CvPoint2D32f *dir, int xsign, int ysign)
int find_outlet_centroids (IplImage *img, outlet_tuple_t &outlet_tuple, const char *output_path, const char *filename)
int find_start_idx (const vector< outlet_elem_t > &helper_vec)
int find_start_idx2 (const vector< outlet_elem_t > &helper_vec)
int find_start_idx3 (const vector< outlet_elem_t > &helper_vec)
IplImage * find_templates (IplImage *img, IplImage *templ)
int find_tuple (vector< outlet_elem_t > &candidates, CvPoint2D32f *centers)
void generate_object_points_2x1 (CvPoint3D32f *points)
void generate_object_points_2x1 (CvPoint2D32f *points)
bool helper_pred_greater (outlet_elem_t h1, outlet_elem_t h2)
void map_image_corners (CvSize src_size, CvMat *map_matrix, CvMat *corners, CvMat *dst)
void map_point_homography (CvPoint2D32f point, CvMat *homography, CvPoint2D32f &result)
void map_vector_homography (const vector< CvPoint2D32f > &points, CvMat *homography, vector< CvPoint2D32f > &result)
int order_tuple (CvPoint2D32f *centers)
int order_tuple2 (vector< outlet_elem_t > &tuple)
void readCvPointByName (CvFileStorage *fs, CvFileNode *parent, const char *name, CvPoint &pt)
void readTrainingBase (const char *config_filename, char *outlet_filename, char *nonoutlet_filename, vector< feature_t > &train_features)
void writeCvPoint (CvFileStorage *fs, const char *name, CvPoint pt)

Variables

const int outlet_height = 25
const int outlet_width = 50
const float outlet_xsize = 12.37
const float outlet_ysize = 11.5
const float pi = 3.1415926f
static const char template_filename [] = "outlet_template.yml"
const float xsize = 46.1f
const float ysize = 38.7f

Function Documentation

void calc_bounding_rect ( int  count,
const CvRect *  rects,
CvRect &  bounding_rect 
)

Definition at line 519 of file outlet_tuple.cpp.

void calc_camera_outlet_pose ( CvMat *  intrinsic_mat,
CvMat *  distortion_coeffs,
const outlet_template_t outlet_template,
const CvPoint2D32f *  image_points,
CvMat *  rotation_vector,
CvMat *  translation_vector 
)

Definition at line 847 of file outlet_tuple.cpp.

void calc_camera_pose ( CvMat *  intrinsic_mat,
CvMat *  distortion_coeffs,
int  point_count,
const CvPoint3D32f *  object_points,
const CvPoint2D32f *  image_points,
CvMat *  rotation_vector,
CvMat *  translation_vector 
)

Definition at line 907 of file outlet_tuple.cpp.

void calc_camera_pose_2x1 ( CvMat *  intrinsic_mat,
CvMat *  distortion_coeffs,
const CvPoint2D32f *  centers,
CvMat *  rotation_vector,
CvMat *  translation_vector 
)

Definition at line 885 of file outlet_tuple.cpp.

void calc_camera_pose_2x2 ( CvMat *  intrinsic_mat,
CvMat *  distortion_coeffs,
const CvPoint2D32f *  centers,
CvMat *  rotation_vector,
CvMat *  translation_vector 
)

Definition at line 894 of file outlet_tuple.cpp.

CvPoint2D32f calc_center ( CvSeq *  seq)

Definition at line 32 of file outlet_tuple.cpp.

CvPoint2D32f calc_center ( const vector< CvPoint2D32f > &  points)

Definition at line 46 of file outlet_tuple.cpp.

int calc_image_homography ( IplImage *  src,
CvMat *  map_matrix,
CvSize *  dst_size,
CvPoint2D32f *  hor_dir,
CvPoint3D32f *  origin,
CvPoint2D32f *  scale,
const char *  output_path,
const char *  filename,
CvPoint2D32f *  _centers 
)

Definition at line 742 of file outlet_tuple.cpp.

void calc_origin_scale ( const CvPoint2D32f *  centers,
CvMat *  map_matrix,
CvPoint3D32f *  origin,
CvPoint2D32f *  scale 
)

Definition at line 772 of file outlet_tuple.cpp.

void calc_outlet_homography ( const CvPoint2D32f *  centers,
CvMat *  map_matrix,
const outlet_template_t templ,
CvMat *  inverse_map_matrix 
)

Definition at line 592 of file outlet_tuple.cpp.

void calc_outlet_homography ( const CvPoint2D32f *  centers,
CvSize  src_size,
CvMat *  map_matrix,
CvSize *  dst_size 
)

!!!! This is an ugly hack. The real way to do it is to offset homography transform

Definition at line 669 of file outlet_tuple.cpp.

CvSeq* close_seq ( CvSeq *  seq,
CvMemStorage *  storage,
int  closure_dist,
IplImage *  workspace 
)

Definition at line 506 of file outlet_tuple.cpp.

int find_dir ( const CvPoint2D32f *  dir,
int  xsign,
int  ysign 
)

Definition at line 61 of file outlet_tuple.cpp.

int find_outlet_centroids ( IplImage *  img,
outlet_tuple_t outlet_tuple,
const char *  output_path,
const char *  filename 
)

Definition at line 271 of file outlet_tuple.cpp.

int find_start_idx ( const vector< outlet_elem_t > &  helper_vec)

Definition at line 148 of file outlet_tuple.cpp.

int find_start_idx2 ( const vector< outlet_elem_t > &  helper_vec)

Definition at line 167 of file outlet_tuple.cpp.

int find_start_idx3 ( const vector< outlet_elem_t > &  helper_vec)

Definition at line 196 of file outlet_tuple.cpp.

IplImage* find_templates ( IplImage *  img,
IplImage *  templ 
)

Definition at line 810 of file outlet_tuple.cpp.

int find_tuple ( vector< outlet_elem_t > &  candidates,
CvPoint2D32f *  centers 
)

Definition at line 537 of file outlet_tuple.cpp.

void generate_object_points_2x1 ( CvPoint3D32f *  points)

Definition at line 861 of file outlet_tuple.cpp.

void generate_object_points_2x1 ( CvPoint2D32f *  points)

Definition at line 873 of file outlet_tuple.cpp.

Definition at line 143 of file outlet_tuple.cpp.

void map_image_corners ( CvSize  src_size,
CvMat *  map_matrix,
CvMat *  corners,
CvMat *  dst 
)

Definition at line 655 of file outlet_tuple.cpp.

void map_point_homography ( CvPoint2D32f  point,
CvMat *  homography,
CvPoint2D32f &  result 
)

Definition at line 614 of file outlet_tuple.cpp.

void map_vector_homography ( const vector< CvPoint2D32f > &  points,
CvMat *  homography,
vector< CvPoint2D32f > &  result 
)

Definition at line 631 of file outlet_tuple.cpp.

int order_tuple ( CvPoint2D32f *  centers)

Definition at line 73 of file outlet_tuple.cpp.

int order_tuple2 ( vector< outlet_elem_t > &  tuple)

Definition at line 226 of file outlet_tuple.cpp.

void readCvPointByName ( CvFileStorage *  fs,
CvFileNode *  parent,
const char *  name,
CvPoint &  pt 
)

Definition at line 1160 of file outlet_tuple.cpp.

void readTrainingBase ( const char *  config_filename,
char *  outlet_filename,
char *  nonoutlet_filename,
vector< feature_t > &  train_features 
)

Definition at line 1178 of file outlet_tuple.cpp.

void writeCvPoint ( CvFileStorage *  fs,
const char *  name,
CvPoint  pt 
)

Definition at line 1153 of file outlet_tuple.cpp.


Variable Documentation

const int outlet_height = 25

Definition at line 585 of file outlet_tuple.cpp.

const int outlet_width = 50

Definition at line 584 of file outlet_tuple.cpp.

const float outlet_xsize = 12.37

Definition at line 589 of file outlet_tuple.cpp.

const float outlet_ysize = 11.5

Definition at line 590 of file outlet_tuple.cpp.

const float pi = 3.1415926f

Definition at line 28 of file outlet_tuple.cpp.

const char template_filename[] = "outlet_template.yml" [static]

Definition at line 29 of file outlet_tuple.cpp.

const float xsize = 46.1f

Definition at line 587 of file outlet_tuple.cpp.

const float ysize = 38.7f

Definition at line 588 of file outlet_tuple.cpp.



outlet_pose_estimation
Author(s): Patrick Mihelich
autogenerated on Thu Nov 28 2013 11:46:23