Tag Info

New answers tagged

3

I enjoy representing colour images with tilings, preferably non-periodic ones. Alternatively, one can use overlapping tiles to give a slight 3D effect. Here is some example code. TranslateObject[p_, {x_, y_}] := Map[{x, y} + # &, p, {2}] HouseHexPolygon[s_, 0] := Polygon[s*{{1/2,-1}, {3/2,0}, {3/2,1}, {-1/2,1}, {-3/2,0}, {-3/2,-1}}] ...


2

It was stated in the comments to Vitaliy's answer that it would be tedious to rewrite it so that the colors of the regions correspond to the colors in the original image. For that reason I would like to supply a different way of "vectorizing" with a Voronoi diagram, which is quite straightforward. For a set of sample points pts: ...


10

Sorry for bumping a two-year-old question, but I asked about it and people said it was okay! Since, as the question states, "true" vectorization of the whole image is a tough problem, how about we break up the image into little blocks and vectorize those? I'll take one of the Kodak test images: img = ...



Top 50 recent answers are included