MISR Toolkit
1.5.1
|
Go to the source code of this file.
Functions | |
MTKt_status | MtkGenericMapInfo (double Min_x, double Min_y, double Resolution_x, double Resolution_y, int Number_pixel_x, int Number_pixel_y, MTKt_OriginCode Origin_code, MTKt_PixRegCode Pix_reg_code, MTKt_GenericMapInfo *Map_info) |
Initialize a MTKt_GenericMapInfo structure. More... | |
MTKt_status MtkGenericMapInfo | ( | double | Min_x, |
double | Min_y, | ||
double | Resolution_x, | ||
double | Resolution_y, | ||
int | Number_pixel_x, | ||
int | Number_pixel_y, | ||
MTKt_OriginCode | Origin_code, | ||
MTKt_PixRegCode | Pix_reg_code, | ||
MTKt_GenericMapInfo * | Map_info | ||
) |
Initialize a MTKt_GenericMapInfo structure.
Min_x and Min_y contains the minimum x,y coordinates at the edge of the map.
Resolution_x is the size of a pixel along the X-axis. Resolution_y is the size of a pixel along the Y-axis.
Number_pixel_x and number_pixel_y specifies the size of the map in pixels along the respective axes.
Origin_code defines the corner of the map at which pixel 0,0 is located. Possible values are: MTKe_ORIGIN_UL - Upper Left (min X, max Y) MTKe_ORIGIN_UR - Upper Right (max X, max Y) MTKe_ORIGIN_LL - Lower Left (min X, min Y) MTKe_ORIGIN_LR - Lower Right (max X, min Y)
Pix_reg_code defines whether a pixel value is related to the corner or center of the corresponding area of that pixel on the map. If the corner is used, then it is always the corner corresponding to the corner of the origin. Possible values are: MTKe_PIX_REG_CENTER - Center MTKe_PIX_REG_CORNER - Corner
[in] | Min_x | Minimum X value in map units |
[in] | Min_y | Minimum Y value in map units |
[in] | Resolution_x | Size of a pixel along X-axis, in map units |
[in] | Resolution_y | Size of a pixel along Y-axis, in map units |
[in] | Number_pixel_x | Number of pixels along X-axis. |
[in] | Number_pixel_y | Number of pixels along Y-axis. |
[in] | Origin_code | Corner of the map at which pixel 0,0 is located. |
[in] | Pix_reg_code | Flag indicating if pixel values correspond to the center or corner of the area of the pixel on the map. |
[out] | Map_info | Map information. |
Definition at line 58 of file MtkGenericMapInfo.c.