function [ panoEdgeC ] = paintParameterLine(parameterLine, width, height, img, c ) %PAINTPARAMETERLINE Paint parameterized line % Detailed explanation goes here lines = parameterLine; if nargin<=3 panoEdgeC = zeros(height, width); else img = im2double(img); panoEdgeC = imresize(img, [height width]); %if size(img,3)==3 % panoEdgeC = 0.5*rgb2gray(panoEdgeC); %end end % valid = true(size(lines,1),1); % uv_vp = xyz2vp([vp;-vp]); % vpm = min(floor( (uv_vp(:,1)-(-pi)) /(2*pi)*width)+1, width); % vpn = min(floor( ((pi/2)-uv_vp(:,2))/(pi)*height )+1, height); % valid = lines(:,4)==1; % lines = lines(~valid,:); %horizontal % lines = lines(valid,:); %vertical num_sample = max(height,width); for i = 1:size(lines,1) % fprintf('%d\n',i); n = lines(i,1:3); sid = lines(i,5)*2*pi; eid = lines(i,6)*2*pi; if eid