while 1
nextline = fgetl(fid_test_groundtruth); %read a line
if ~ischar(nextline)
break;
else
line_number = line_number + 1;
end
end
nextline = fgetl(fid_test_groundtruth); %read a line
if ~ischar(nextline)
break;
else
line_number = line_number + 1;
end
end