src/libs/src/gauss_dist.c
void find_angle(int width, int height, int x2, int y2 ,\
        double* biggear, double *smallgear)
{
    double phi_by_pixel = 63.72f/width;

    double theta_by_pixel = 143.40f/height;


    int h1 = width/2 - x2;

    int h2 = height/2 - y2;

    *biggear = h1*phi_by_pixel;
    *smallgear = h2*theta_by_pixel;
}
//x1 y 1 center coord of image
//x2 y 2 center coord of second frame
//dist = real life dist : deduced from pixel length in a set array
//fpl : you already know.....
x1 y 1 center coord of image
x2 y 2 center coord of second frame
dist = real life dist : deduced from pixel length in a set array
fpl : you already know
x1 y 1 center coord of image x2 y 2 center coord of second frame dist = real life dist : deduced from pixel length in a set array fpl : you already know
void find_angle(int width, int height, int x2, int y2 ,\
        double* biggear, double *smallgear)
{
    double phi_by_pixel = 63.72f/width;
    double theta_by_pixel = 143.40f/height;
    int h1 = width/2 - x2;
    int h2 = height/2 - y2;
    *biggear = h1*phi_by_pixel;
    *smallgear = h2*theta_by_pixel;
}
void find_angle ( int width , int height , int x2 , int y2 , double * biggear , double * smallgear ) { double phi_by_pixel = 63.72f / width ; double theta_by_pixel = 143.40f / height ; int h1 = width / 2 - x2 ; int h2 = height / 2 - y2 ; * biggear = h1 * phi_by_pixel ; * smallgear = h2 * theta_by_pixel ; }
x1 y 1 center coord of image
x2 y 2 center coord of second frame
dist = real life dist : deduced from pixel length in a set array
fpl : you already know.....
x1 y 1 center coord of image x2 y 2 center coord of second frame dist = real life dist : deduced from pixel length in a set array fpl : you already know .....