paramDisp.c
Go to the documentation of this file.
00001 /*******************************************************
00002  *
00003  * Author: Takeshi Mita, Shinsaku Hiura, Hirokazu Kato
00004  *
00005  *         tmita@inolab.sys.es.osaka-u.ac.jp
00006  *         shinsaku@sys.es.osaka-u.ac.jp
00007  *         kato@sys.im.hiroshima-cu.ac.jp
00008  *
00009  * Revision: 4.1
00010  * Date: 01/12/07
00011  *
00012 *******************************************************/
00013 
00014 #include <stdio.h>
00015 #include <stdarg.h>
00016 #include <AR/param.h>
00017 
00018 
00019 int arParamDisp( ARParam *param )
00020 {
00021     int     i, j;
00022 
00023     printf("--------------------------------------\n");
00024     printf("SIZE = %d, %d\n", param->xsize, param->ysize);
00025     printf("Distortion factor = %f %f %f %f\n", param->dist_factor[0],
00026             param->dist_factor[1], param->dist_factor[2], param->dist_factor[3] );
00027     for( j = 0; j < 3; j++ ) {
00028         for( i = 0; i < 4; i++ ) printf("%7.5f ", param->mat[j][i]);
00029         printf("\n");
00030     }
00031     printf("--------------------------------------\n");
00032 
00033     return 0;
00034 }
00035 
00036 int arsParamDisp( ARSParam *sparam )
00037 {
00038     int     i, j;
00039 
00040     printf("--------------------------------------\n");
00041 
00042     printf("SIZE = %d, %d\n", sparam->xsize, sparam->ysize);
00043     printf("-- Left --\n");
00044     printf("Distotion factor = %f %f %f %f\n", sparam->dist_factorL[0],
00045             sparam->dist_factorL[1], sparam->dist_factorL[2], sparam->dist_factorL[3] );
00046     for( j = 0; j < 3; j++ ) {
00047         for( i = 0; i < 4; i++ ) printf("%7.5f ", sparam->matL[j][i]);
00048         printf("\n");
00049     }
00050 
00051     printf("-- Right --\n");
00052     printf("Distotion factor = %f %f %f %f\n", sparam->dist_factorR[0],
00053             sparam->dist_factorR[1], sparam->dist_factorR[2], sparam->dist_factorR[3] );
00054     for( j = 0; j < 3; j++ ) {
00055         for( i = 0; i < 4; i++ ) printf("%7.5f ", sparam->matR[j][i]);
00056         printf("\n");
00057     }
00058 
00059     printf("-- Left => Right --\n");
00060     for( j = 0; j < 3; j++ ) {
00061         for( i = 0; i < 4; i++ ) printf("%7.5f ", sparam->matL2R[j][i]);
00062         printf("\n");
00063     }
00064 
00065     printf("--------------------------------------\n");
00066 
00067     return 0;
00068 }
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Defines


ar_recog
Author(s): Graylin Trevor Jay and Christopher Crick
autogenerated on Fri Jan 25 2013 12:15:00