how can i extract video frames through simulink
    3 次查看(过去 30 天)
  
       显示 更早的评论
    
any idea how can i deal with video frames using matlab simulink..
actually, i tried to make some work arround and use function block and write a function that do the job but there is a problem when it comes to dealing with objects and properties within simulink.. here is my trial
video="abc.avi";
readerobj = mmreader(video);
    numFrames = get(readerobj, 'numberOfFrames') - offset_frame;
        %for k = 1 : numFrames 
        k = 1;
        mov(k).cdata = vidFrames(:,:,:,k);
        mov(k).colormap = [];
        % end
        Lmov=mov;%readerobj;%aviread(video);
        MIm=frame2im(Lmov(k));
        MIm=rgb2gray(MIm);
this is working properly within workspace but not within simulink..
any idea about how to do so within simulink...
0 个评论
回答(1 个)
  Jason Ghidella
    
 2013-3-21
        Have you looked at the Computer Vision System Toolbox? It works with both MATLAB and Simulink.
Here is an overview video for the product: http://www.mathworks.com/videos/computer-vision-system-toolbox-overview-61219.html
And a Simulink Example of road tracking application:  http://www.mathworks.com/help/vision/examples/color-based-road-tracking.html
0 个评论
另请参阅
类别
				在 Help Center 和 File Exchange 中查找有关 Computer Vision with Simulink 的更多信息
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

