- Posts: 2
- Joined: Thu Apr 28, 2016 1:33 pm
- Location: Frankfurt, Germany
Yes, the videoFrame argument represents a single video frame. It contains, among other stuff, the raw image data, which can be retrieved by
- Code: Select all
void* data = NULL;
inputFrame->GetBytes(&data);
1. Using the above, you'll get the raw image data. The data format of course depends on your video format, but you should be able to find that information in the SDK documentation. How to save the frame to disk as an image is what Google is for
2. Well, if you want to do it live, you'll have to setup some kind of shared memory between the C++ process running the DeckLink code and the MATLAB process. If you can do it offline, then it might be easier to just save the video on your hard drive, either frame by frame or as a video, and then load it from there into MATLAB.
Hope it helps,
Markus