%COMP 256 Assignment 2
%Adrian Ilie

function [p1,p2,num]=loadpointdata(pointfile)

%load
pointdata=load(pointfile);
%number of lines/points
num=size(pointdata);
num=num(1);

%change to homogeneous coordinates
p1=pointdata(:,1:2);
p1=[p1 ones(num,1)]';
p2=pointdata(:,3:4);
p2=[p2 ones(num,1)]';

