Returns the data layout of a frame.


int miraacq_GetFrameDataLayout(makernelpma);


Parameters:

  • pma: A pointer to the acquisition kernel returned by miraacq_Init.


Return value:

One of the following integers defining the data layout of a frame if the value (>= 1) or an error code (< 0):

  • ACQ_DATALAYOUT_BIP (1)
  • ACQ_DATALAYOUT_BIL (2)
  • ACQ_DATALAYOUT_BSQ (3)


Description:

miraacq_GetFrameDataLayout will get the data layout of a frame, which is typically ACQ_DATALAYOUT_BIL (2) for line-scan cameras and ACQ_DATALAYOUT_BSQ (3) for snapshot cameras. It requires that acquisition has been initialized using miraacq_InitializeAcquisition.


Example:

  1. printf("Geometry: width=%d bands=%d lines=%d dataType=%d dataLayout=%d frameSize=%d\n",
  2.       miraacq_GetFrameWidth(pma),
  3.       miraacq_GetFrameBands(pma),
  4.       miraacq_GetFrameHeight(pma),
  5.       miraacq_GetFrameDataType(pma),
  6.       miraacq_GetFrameDataLayout(pma),
  7.       miraacq_GetFrameSize(pma));


Output:

Geometry: width=1024 bands=301 lines=1 dataType=1 dataLayout=2 frameSize=616448