int lvgbox(
unsigned char *pt_image_data,
unsigned short n_cols,
unsigned short n_rows,
float px_x_w,
float px_y_h,
float px_x_of,
float px_y_of,
unsigned char grey_out,
unsigned char grey_in,
float im_x_w,
float im_y_h,
float im_x_of,
float im_y_of,
float phi,
float psi)
none
none
The CCD cells are supposed square in order to obtain the asked angles, although the active area can be rectangular.
For a parallelepipedic box, the width and heigth sizes of the box are the euclidian distances between the parallel lines.
$RETRO/objects/library/vipl/src/lvgbox.c