已回答假定已回答

BF592_LC_ADAS工程问题???

caijun_2010@126.com 在 2014-1-3 詢問的問題
最後回覆由Daniel.Wang於2014-1-14提供

你好!

   非常感谢你们支持

     在“BF592_LC_ADAS工程”void  SetCameraParam(void)函数

/********************************************************************************************/

static float               Camera_tanr0 = 13.3;       /* 1538*/                                        /*100*/

 

static float                    Camera_sinr0 = 0;

static float                    Camera_cosr0 = 0;

static Int32               Camera_Height = 127;                    /* 127*/                                        /* cm*/

static Int32                    Camera_Const1 = 868;                    /*1200*/                                        /* f*H/h'*/

static Int32                    Camera_Const2 = 976;                    /*1350*/                                        /* f*W/w'*/

static Int32                    Img_Width = COLUMNS;

static Int32                    Img_Height = ROWS;

/*********************************************************************************************/

/*****建模见附件图片*******/

void  SetCameraParam(void)

{

    float pitch_angle = 4.3; 

    int height = 126, width_scale = 868, height_scale = 976;

    Camera_tanr0 = (float)tan(3.14159 * (90 - pitch_angle) / 180);

    Camera_sinr0 = (float)sin(3.14159 * (90 - pitch_angle) / 180);

    Camera_cosr0 = (float)cos(3.14159 * (90 - pitch_angle) / 180);

    Camera_Height = height;

  Camera_Const1 = height_scale; /*width_scale;*/ 

    Camera_Const2 = width_scale;  /*height_scale;*/ 请问这两个参数是指图像镜像前缩放比例因子吗????

    Img_Width = COLUMNS;

    Img_Height = ROWS;

}

2,还有附件的建模与此函数有关联性吗??????

3,所有参数都是在此建模中得到吗?????

附件

結果