|
| map_t * | map_convert (dmat *A) |
| | Convert a dmat in place to map object. Ensure that the type is properly initialized.
|
| rmap_t * | rmap_convert (dmat *A) |
| | Convert a dmat in place to rmap object. Ensure that the type is properly initialized.
|
| map_t * | mapnew (long nx, long ny, real dx, real dy) |
| map_t * | mapnew2 (map_t *A) |
|
map_t * | mapref (const map_t *A) |
|
map_t * | mapdup (const map_t *A) |
| void | mapcircle (map_t *map, real r, real val) |
| void | map_d_din (map_t *map, real *d, real *din) |
| void | create_metapupil (map_t **map, long *nx, long *ny, dmat *dirs, real D, real ht, real dx, real dy, real offset, real guard, long ninx, long niny, int pad, int square) |
| void | map_make_keywords (cell *map) |
| void | map_parse_keywords (map_t *in) |
| void | rmap_make_keywords (cell *map) |
| void | rmap_parse_keywords (rmap_t *in) |
| void | map_blend (map_t *atm1, map_t *atm2, long overx, long overy) |
This file defines functions relates to map_t, etc.
| void create_metapupil |
( |
map_t ** | mapout, |
|
|
long * | nxout, |
|
|
long * | nyout, |
|
|
dmat * | dirs, |
|
|
real | D, |
|
|
real | ht0, |
|
|
real | dx, |
|
|
real | dy, |
|
|
real | offset, |
|
|
real | guard, |
|
|
long | ninx, |
|
|
long | niny, |
|
|
int | pad, |
|
|
int | square ) |
create a metapupil map, with size nx*ny, origin at (ox,oy), sampling of dx, dy, height of ht, that can cover all the directions specified in dirs
offset: distance in pixel from the point closest to the origin to origin (right side). 0: there is a point on the origin. 1/2: the closest point to origin is 1/2 pixel.
pad!=0: round nx, ny to power of 2.
- Parameters
-
| [out] | mapout | map |
| [out] | nxout | nx |
| [out] | nyout | ny |
| [in] | dirs | All Directions to cover (thetax, thetay, hs, hc) |
| [in] | D | Diameter (meter) |
| [in] | ht0 | Conjugation Height (meter) |
| [in] | dx | Sampling along x (meter) |
| [in] | dy | Sampling along y (meter) |
| [in] | offset | Fractional offset of point closet from origin. between [0, 1) |
| [in] | guard | Width of guard area, in meter |
| [in] | ninx | Suggested size along x |
| [in] | niny | Suggested size along y |
| [in] | pad | Increase nx, ny to power of 2 |
| [in] | square | 1: Full square/rectangular grid, 2: circular, 0: minimal |