O'Reilly logo

Rapid BeagleBoard Prototyping with MATLAB and Simulink by Dr.Fei Qin, Dr. Xuewu Dai

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Implementation algorithm in Simulink

So far, we have explored the basic idea of a motion detection algorithm. In this section, we show how to detail and implement this algorithm in Simulink, and deploy it to the BeagleBoard step by step.

Grayscale image

The first issue is regarding the color space. Since a frame with RGB color space contains redundant information in three colors, we implement the motion detector algorithm in monochrome to save computation cost. We first convert the frame data from RGB color space into the grayscale format with the Color Space Conversion block, which can be found in the Computer Vision System toolbox. Let's drag this Color Space Conversion block into our minimum system, and double-click on the icon to configure the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required