image thumbnail

image connectivity graph - SfM

by

 

This code developed to compute and visualize the connectivity between images in SfM

H=connectivityplot(W,Tre)

function H=connectivityplot(W,Tre)

DG = sparse(Tre(:,1),Tre(:,2),true,size(W,1),size(W,1));size(DG)
for i=1:size(W,1)
    id(i,:)={'Image',num2str(W(i))};
end
ids = strcat(id(:,1),id(:,2));
 
h1= view(biograph(DG, ids,'LayoutType','radial'  )); 
set(h1.Nodes,'Color',[.5 .7 1])
set(h1.Edges,'LineColor',[0 0 0])
set(h1.Nodes,'FontSize',10)
set(h1.Nodes,'TextColor',[1 0.1 0.1])

H=h1.Nodes;
 

Contact us