能在MATLAB里面CALL C的数据采集程序吗?# CS - 计算机科学
k*r
1 楼
for eg, I have a C function that grab video frame buf from
camera for me, whenver a buffer is ready, the function
returns data. I hope in Matlab, I can access these info.
char buf[MAX_BUF];
int getVideoBuf(buf, x, y, w, h)
{
memcpy(buf, VBUF, w*h*sizeof(char));
}
camera for me, whenver a buffer is ready, the function
returns data. I hope in Matlab, I can access these info.
char buf[MAX_BUF];
int getVideoBuf(buf, x, y, w, h)
{
memcpy(buf, VBUF, w*h*sizeof(char));
}