Dvip demo, Figure 16: basic video processing example, Smt6040 – Sundance SMT6040 User Manual
Page 23: Sundance simulink toolbox

Sundance Multiprocessor Technology Limited
Form : QCF32
SMT6040
“Sundance Simulink Toolbox”
Date : 6 July 2006
The whole Simulink diagram (top view and detail of the root subsystem) is pictured in Figure
15.
It is easy to understand the two simple processing steps applied by the SMT6040 task. The
result of the element-by-element subtraction of the input vectors is sent to output 1. Output 2
is a simple passthrough of input 2. However, the second output of the Simulink task becomes
the first input of the Diamond “demo_pal” DSP task. So the processing has two results: the
second line of the image is copied in place of the first line, while the result of the subtraction
replaces the second line passed to the Simulink task.
This process is executed on each of the three frames loaded by the DVL.
This is better explained by Figure 16, which shows on the left the original image, and on the
right the results of its binarization to black&white and of the processing on the two lines (in
particular, a white line replaces a line in the top half of the image, while a dark line is drawn
in the bottom half of the video).
Figure 16: basic Video processing example
By using a similar procedure, it is possible to add a DSP task created in Simulink to any of the
DVL demos. More complex application can easily be designed thanks to the integration of
SMT6040 and Diamond.
The folder “VideoDemo” includes the Simulink project (represented in Figure 15) that has been
used to generate a DSP task named “T6040_root.tsk”.
The “VideoDemo” folder contains the DVL workspace where this task has been inserted into
Diamond Video Demo “demo2”.
3.3 DVIP
demo
!
Demo: “..\Release_3.0\Applications\_Sundance\DVIP\DVIPDemo”
This demo requires the use of Diamond Video Library (DVL). One of the sample applications
included in the DVL is integrated with the SMT6040 by following the procedures previously
described. The resulting structure of the demo is represented in Figure 17.
In particular, this basic demo performs some DSP operations on two lines of the image to
show how it is possible to use the SMT6040 to process the video acquired by a camera.
SMT6040 - “Sundance Simulink Toolbox”
Last Edited: 08/01/2010 15.42
Page 23 of 53