Tue 02 Aug 2011 02:45:06 AM UTC, original submission:
he output of the indices (F) of the voronoi diagrams is messed up:
[C,F] = voronoin(xy);
Specifically, an element of F should be the indices of those vertices
in C that form a facet (or cell called by matlab) surrounding the
correponding point in xy, i.e., the elements in F and the input points
in xy should have a one-to-one correspondence in the same order
(first element of F corresponds to first element of xy, second element
of F corresponds to second element of xy, etc.). The order is messed up,
and I can't for the life of me figure out how the elements in F are
organized. Since the main purpose of voronoin is to compute the area
surrounding each point in xy, the incorrect order makes the function
almost useless.
The problem can be checked using the following code.
|