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
%