00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
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 }