Is it possible to run videoobject on backside like parfeval?
1 次查看(过去 30 天)
显示 更早的评论
I am trying to get images and processing from 2 cameras at different times. But it must be fast. So ı wonder that is it possible to run all capturing and processing operations can be done on worker? Sample code is like that
if triggercomes ==1
parfeval(@process,0,vidobject1,vidobject2)
end
Process function
function process(vidobject)
pause(1) % it waits for exact timing
im1 = getsnapshot(vidobject)
pause(1)
im2 = getsnapshot(vidobject)
end
But vid object is not working on parfeval how to solve this problem?
Thanks
0 个评论
回答(1 个)
Akshat Dalal
2023-11-20
Hi Ahmet,
I understand that you want to work with 2 cameras parallelly and are facing some issues. There is an example by MathWorks which demonstrates how to do this. The example and its explanation are present in the following MATLAB Answer: https://www.mathworks.com/matlabcentral/answers/388286
The solution uses the ‘spmd’ function from the Parallel Computing Toolbox to execute code in parallel on a pool of workers. You could refer the following documentation to learn more: https://www.mathworks.com/help/parallel-computing/spmd.html
I hope this helps.
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Startup and Shutdown 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!