iCub-main
spherical_projection.h
Go to the documentation of this file.
1 // -*- mode:C++; tab-width:4; c-basic-offset:4; indent-tabs-mode:nil -*-
2 
3 /*
4  * Copyright (C) 2007 Alex Bernardino, ISR-IST
5  * Permission is granted to copy, distribute, and/or modify this program
6  * under the terms of the GNU General Public License, version 2 or any
7  * later version published by the Free Software Foundation.
8  *
9  * A copy of the license can be found at
10  * http://www.robotcub.org/icub/license/gpl.txt
11  *
12  * This program is distributed in the hope that it will be useful, but
13  * WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
15  * Public License for more details
16 */
17 
18 #include <math.h>
19 
20 
21 void compute_sp_params(int input_lines, int input_cols,
22  int output_lines, int output_cols,
23  double fx, double fy,
24  double cx, double cy,
25  double k1, double k2,
26  double p1, double p2,
27  double *fa, double *fe,
28  double *ca, double *ce);
29 
30 bool check_sp_params(int input_lines, int input_cols,
31  int output_lines, int output_cols,
32  double fx, double fy,
33  double cx, double cy,
34  double k1, double k2,
35  double p1, double p2,
36  float *mapx, float *mapy);
37 
38 bool compute_sp_map(int input_lines, int input_cols,
39  int output_lines, int output_cols,
40  double fx, double fy,
41  double cx, double cy,
42  double k1, double k2,
43  double p1, double p2,
44  float *mapx, float *mapy);
45 
46 bool compute_egosp_map( int input_lines, int input_cols,
47  int output_lines, int output_cols,
48  double fa, double fe,
49  double ca, double ce,
50  double *R, //world to camera rotation
51  float *mapx, float *mapy);
52 
53 bool compute_icub_egosp_map( int input_lines, int input_cols,
54  int output_lines, int output_cols,
55  double fx, double fy,
56  double cx, double cy,
57  double *R, //world to camera rotation
58  float *mapx, float *mapy);
bool compute_sp_map(int input_lines, int input_cols, int output_lines, int output_cols, double fx, double fy, double cx, double cy, double k1, double k2, double p1, double p2, float *mapx, float *mapy)
bool compute_egosp_map(int input_lines, int input_cols, int output_lines, int output_cols, double fa, double fe, double ca, double ce, double *R, float *mapx, float *mapy)
bool compute_icub_egosp_map(int input_lines, int input_cols, int output_lines, int output_cols, double fx, double fy, double cx, double cy, double *R, float *mapx, float *mapy)
void compute_sp_params(int input_lines, int input_cols, int output_lines, int output_cols, double fx, double fy, double cx, double cy, double k1, double k2, double p1, double p2, double *fa, double *fe, double *ca, double *ce)
bool check_sp_params(int input_lines, int input_cols, int output_lines, int output_cols, double fx, double fy, double cx, double cy, double k1, double k2, double p1, double p2, float *mapx, float *mapy)