Returns the expected data layout of a frame.


int mira_GetInputDataLayout(mrkernelpmr);


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:

  1. printf("Expected geometry: width=%d bands=%d lines=%d dataType=%d dataLayout=%d\n",
  2.       mira_GetInputWidth(pmr),
  3.       mira_GetInputBands(pmr),
  4.       mira_GetInputHeight(pmr),
  5.       mira_GetInputDataType(pmr),
  6.       mira_GetInputDataLayout(pmr));


Output:

Expected geometry: width=1024 bands=301 lines=1 dataType=1 dataLayout=2