how to eliminate errors and find blocks in simulink?

we have using matlab simulink to do our project Real-time Optical Flow-Based Motion Tracking.
our block diagram consists of colour space conversion,optical flow(horn schunck), thersholding,optical flow lines,and bbox(area,centroid),draw lines.
we got error in subsystem of bbox it contains (Set the intensity matrix from the previous subsystem as input port b. Add a “Blob Analysis” block and select “Area” and “BBox” as block outputs Add a “Compare To Constant” block and set the constant to be 3000. The value of this constant determines the minimum boundary box size to be displayed. The value should be adjusted according to the object to be tracked. d. Add a “Submatrix” block and use default bock setting. e. Connect the intensity matrix to BW input port, Area output port to compare to constant block, BBox output to submatrix block. f. Add a “logcial operator” and set the operator to be “AND”. Connect the compare to constant block and submatrix block to AND operator. The output of this AND operator provides the index of boundary box that above the constant we set previously. g. Add a “Variable Selector” and choose “Column” in the select tap. h. Pass the BBOX to In1 of variable selector block, and output of AND operator to idx of variable selector block). errors:1.Error reported by S-Function 'sdspperm2' in 'velocity/BBOX/Variable Selector': The input cannot be a full matrix. 2.Error in port widths or dimensions. Output port 1 of 'velocity/BBOX/Logical Operator1' is a [4x50] matrix.
how to get the optical flow lines block in simulink library?

Answers (0)

Products

Asked:

on 26 Feb 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!