Processes a single frame from a line-scan camera.


int mira_ProcessFrame(mrkernelpmr, void* pData);


Parameters:

  • pmr: A pointer to the runtime kernel returned by mira_Init.
  • pData: A pointer to the frame data.


Return value:

MIRA_OK (0) or an error code.


Description:

mira_ProcessFrame will process a single frame from a line-scan camera, it requires that acquisition has been started previously using mira_StartAcquisition. The frame needs to match the input geometry, which can be queried with mira_GetInputWidth, mira_GetInputHeight, mira_GetInputBands, mira_GetInputDataType, and mira_GetInputDataLayout. After a frame is processed, mira_GetFrameDecisions can be used to get the per-pixel decisions, mira_GetFrameRegOutputVar can be used to get per-pixel regression values, and mira_GetObjCount can be used to check if any objects were detected.