CS 5320
Fall Semester 2012

 
Problem 8-2

 
Assigned: 16 October 2012
Due: 1 November 2012
 

Implement Algorithm 15.4 in the following Matlab function specified below.

function [line_img,lines] = CV_ransac_lines(im)
%
% CV_randsac_lines - segment straight lines using Ransac algorithm
%On input:
%     im (mxn array): input image
%On output:
%     line_img (mxn array): each pixel is labeled by its line number
%     lines (px3 array): lines parameters (a,b,c)
%Call:
%    [line_img,lines] = CV_ransac_lines(im1);
%Author:
%  Your name
%  UU
%  Fall 2012
%