Filling image area that is bound by a Delaunay triangle

4 ビュー (過去 30 日間)
Abbas Cheddad
Abbas Cheddad 2016 年 5 月 11 日
Hello,
Let's say that we are treating dot patterns obeying some sort of arrangement on a given image. When calling Matlab's delaunay, the output, DT beneath, will be a Nx3 matrix. Then we can use triplot to plot the triangles,
DT = delaunay(x,y);
triplot(DT,y,x);
Is there any way one can fill a triangle (say the first entry of DT) in the existing image (not a plot/patch)?
Below is an image I borrowed from Matlab's documentation to illustrate the issue I am after:
The solid black triangle.
Thanks!

回答 (0 件)

カテゴリ

Help Center および File ExchangeDelaunay Triangulation についてさらに検索

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by