#include "las.h"
int c_recalc_pixel_size
( double *pixel_y, double *pixel_x, double upleft_y, double loleft_y, double loright_y, double upleft_x, double loleft_x, double loright_x, int nl, int ns )
Pixel size in the y direction.
Pixel size in the x direction.
Upper left corner of image in y direction.
Lower left corner of image in y direction.
Lower right corner of image in y direction.
Upper left corner of image in x direction.
Lower left corner of image in x direction.
Lower right corner of image in x direction.
Total number of lines in the image.
Total number of samples in the image.
The c_recalc_pixel_size() call first double checks the number of lines and number of samples. If either the lines or samples are less than or equal to 1, then E_FAIL is returned. To calculate the pixel size the rotated angles of the projected image are calculated first. The projection on the y axis and x axis are figured next. Finally, the pixel sizes are calculated for the y and x direction.
E_SUCC (0) --> successful completion E_FAIL (-1) --> operation failed
c_recalc_pixel_size requires that the image has more than one line and sample.