Skip to main content

spinImageGetData usage example

Answered

Comments

3 comments

  • Official comment
    Eric Johnstone

    So I followed your suggestion more closely, and it appears to work! The routine "spiImageGetData" appears to return an address. The malloc statement was a misleading usage. Thank you Manuel so very much!

    Eric

  • TDY_Manuel
    Community team
    Expert (Gold)

    Hello Eric, 

    Could you please try this way? 

    err = spinCameraGetNextImage(hCam, &hResultImage);
    unsigned char *data;
    err = spinImageGetData(hResultImage, &data);
    

    Best regards,

    Manuel 

    0
  • Eric Johnstone

    I tried something similar but it failed because the function prototype specifically wants a pointer to a pointer (**).

    0

Please sign in to leave a comment.

Powered by Zendesk