image processing - Delaunay triangulation : Matlab -
i trying write code using delaunay triangulation method , got plot bunch of triangles. how can verify whether plotted correct or not? or whether triangles desired points or not?
= bwmorph(i,'skel',inf); [i1,j1] = ind2sub(size(i),find(bwmorph(bwmorph(i,'thin',inf),'branchpoint') == 1)); tri1 = delaunaytriangulation(i1,j1) figure triplot(tri1)
this part of code dt implemented.
input
dt
to have visual check can overlay result of delaunay triangulation onto points hold on
. instance:
figure hold on scatter(i1,j1, 'r'); triplot(tri1)
best,
Comments
Post a Comment