function displayVectors( fid, img, dem_struct, vectors, color )
gsd = dem_struct.gsd;
bounds = dem_struct.bounds;

if(isempty(img))
    figure(fid);
else
    figure(fid);
    colormap gray;
    imagesc(flipud(img));
    axis equal;
end

nvectors = numel(vectors);
for v=1:nvectors
    xi = ((vectors(v).X+vectors(v).offsets(1))-bounds(1))/gsd+1;
    yi = (bounds(4)-(vectors(v).Y+vectors(v).offsets(2)))/gsd+1;
    hold on;
    plot(xi,yi,color);
    plot(xi,yi,[color,'*']);
    hold off;
end

end

