Reputation: 219
The Lane departure system in MATLAB 2011 demos for Computer Vision toolbox has the following function.
hShapeIns1 = vision.ShapeInserter( ...
'Shape', 'Polygons', ...
'Fill', true, ...
'FillColor', 'Custom', ...
'CustomFillColor', [1 0 0], ...
'Antialiasing', false, ...
'Opacity', 1);
The hShapIns1 object is used to draw a polygon within the Hough lines and captures the road area. If you see the matlab product help for vision.ShapeInserter function, the shapes that can be inserted are polygons, rectangles and lines.
My problem is that I want to insert a line parallel to the Hough lines, using the above code. But when I replace 'Polygons' with 'Lines' it doesn't work. How can I achieve this?
Upvotes: 2
Views: 2138
Reputation: 4477
By "it doesn't work", I assume that you are not seeing any visible effects on the video. This is because there is another ShapeInserter object hShapeIns2 in that demo which is drawing the same lines on top of this in different color. If you remove that object you will be able to see dark lines over the lane markers.
Upvotes: 1