mira_GetInputDataLayout
Returns the expected data layout of a frame.
int mira_GetInputDataLayout(mrkernel* pmr);
Parameters:
- pmr: A pointer to the runtime kernel returned by mira_Init.
Return value:
One of the following integers defining the expected data type of a frame if the value (>= 0) or an error code (< 0):
- MIRA_DATALAYOUT_UNKNOWN (0)
- MIRA_DATALAYOUT_BIP (1)
- MIRA_DATALAYOUT_BIL (2)
- MIRA_DATALAYOUT_BSQ (3)
Description:
mira_GetInputDataLayout will get the expected data layout of a frame, the input data layout can be modified using mira_SetInputDataLayout. It requires that a model has been loaded using mira_LoadModel.
Example:
- printf("Expected geometry: width=%d bands=%d lines=%d dataType=%d dataLayout=%d\n",
- mira_GetInputWidth(pmr),
- mira_GetInputBands(pmr),
- mira_GetInputHeight(pmr),
- mira_GetInputDataType(pmr),
- mira_GetInputDataLayout(pmr));
Output:
Expected geometry: width=1024 bands=301 lines=1 dataType=1 dataLayout=2