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 enter image description here

dt

enter image description here

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

Popular posts from this blog

android - MPAndroidChart - How to add Annotations or images to the chart -

javascript - Add class to another page attribute using URL id - Jquery -

firefox - Where is 'webgl.osmesalib' parameter? -