I want to open an image file (simple via Image Load) and use ImageInterploate to explore the effect of Voronoi tessellations. I need to make the image wave into a triplet wave, but I can't find out how to do this. I presume I then need to convert the tessellated wave back into an image. Is this a sensible thing to try and if so, how should I go about it? DN
June 22, 2016 at 09:19 am - Permalink
Your code is indeed straightforward. I can't think of an obvious way of using MatrixOP here (there are *only* about 170 MatrixOP functions)...
Here is another variation that does not use explicit loops:
I would like to point out to the OP that they have to be careful in trying to use the Voronoi interpolation on data sampled on a rectangular grid. The problem is that the first step of the interpolation is the triangulation of the sampled data which is assumed to be sampled at random XY positions. As is obvious, the triangulation of samples on a rectangular grid is non-unique. This presents difficulties in the triangulation stage. IGOR attempts to introduce some perturbation to the XY locations in order to break the degeneracies.
Another consideration is that the triangulation step is performed in O(N^2) steps which is rarely justified when your data are already on a rectangular grid. So the bottom line is that you would have to have a very compelling reason to take this approach in the first place.
A.G.
WaveMetrics, Inc.
June 22, 2016 at 10:03 am - Permalink
June 22, 2016 at 06:07 pm - Permalink