ncigt-fil
|
Functions | |
void | gwarp_apply2 (float W[], float hpp[], float vpp[], float *hpixs, float *vpixs, int N_h, int N_v, float mag[]) |
void | gwarp_calc (float *tl, float *tr, float *br, float *bl, int N_h, int N_v, float hpixs[], float vpixs[], float *d, float *u, float W[], float hpp[], float vpp[], char *fname) |
void | gwarp_prep (float tl[], float tr[], float br[], float bl[], int N_h, int N_v, float hpixs[], float vpixs[], float d[], float u[]) |
int | gwarp_read_parms (char *fname, GWARP_PARMS *gwp) |
void gwarp_apply2 | ( | float | W[], |
float | hpp[], | ||
float | vpp[], | ||
float * | hpixs, | ||
float * | vpixs, | ||
int | N_h, | ||
int | N_v, | ||
float | mag[] | ||
) |
W | the weighting factor |
hpp | unwarped location in the horizontal direction |
vpp | unwarped location in the vertical direction |
hpixs | locations along the horizontal axis where pixels are found |
vpixs | locations along the vertical axis where pixels are found |
N_h | Number of pixels in horizontal direction |
N_v | number of pixels in vertical direction |
mag | image data |
void gwarp_calc | ( | float * | tl, |
float * | tr, | ||
float * | br, | ||
float * | bl, | ||
int | N_h, | ||
int | N_v, | ||
float | hpixs[], | ||
float | vpixs[], | ||
float * | d, | ||
float * | u, | ||
float | W[], | ||
float | hpp[], | ||
float | vpp[], | ||
char * | fname | ||
) |
outputs: W, hpp, vpp
tl | (unused) top left coordinate (x,y,z), in cm |
tr | (unused) top right coordinate (x,y,z), in cm |
br | (unused) bottom right coordinate (x,y,z), in cm |
bl | bottom left coordinate (x,y,z), in cm |
N_h | Number of horizontal |
N_v | number of vertical |
hpixs | horizontal pixels (length = N_out) |
vpixs | vertical pixels (length = N_out) |
d | scale factors (length = 2) |
u | unit vector directions (length = 6) |
W | the weighting factor (length = N_h*N_v) |
hpp | unwarped location in the horizontal direction (length = N_h*N_v) |
vpp | unwarped location in the vertical direction (length = N_h*N_v) |
fname | input filename for the gradwarp spherical harmonic correction coefficients. Set to NULL if unavailable. |
void gwarp_prep | ( | float | tl[], |
float | tr[], | ||
float | br[], | ||
float | bl[], | ||
int | N_h, | ||
int | N_v, | ||
float | hpixs[], | ||
float | vpixs[], | ||
float | d[], | ||
float | u[] | ||
) |
compute the 'd' and 'u' vectors, based on the size of the FOV and the number of pixels along each image dimension.
tl | top left coordinate (x,y,z), in cm |
tr | top right coordinate (x,y,z), in cm |
br | bottom left coordinate (x,y,z), in cm |
bl | bottom right coordinate (x,y,z), in cm |
N_h | Number of h |
N_v | Number of v |
hpixs | locations along the horizontal axis where pixels are found |
vpixs | locations along the vertical axis where pixels are found |
int gwarp_read_parms | ( | char * | fname, |
GWARP_PARMS * | gwp | ||
) |
Function to parse the GE gradwarp spherical harmonic correction file.
fname | input filename |
gwp | the destination, structure of gradwarp parameters |