JuliaGeometry / VoronoiDelaunay.jl

Fast and robust Voronoi & Delaunay tessellation creation with Julia
Other
123 stars 26 forks source link

ENH add from_image method #4

Closed hayd closed 9 years ago

hayd commented 9 years ago

Adds a from_image method, and cleans up the example code (to generate the readme image) to use it.

(I haven't tested this... if I add this part travis is sulking, because the file isn't referenced wrt the file,hmmm https://travis-ci.org/hayd/VoronoiDelaunay.jl/jobs/39213137)

coveralls commented 9 years ago

Coverage Status

Coverage remained the same when pulling d9e65bcfcbc31b701930f30c1ee9caae00dfa83a on hayd:from_image into 24052d8a8dcad046565e6e8559838d2fe63ec37c on skariel:master.

skariel commented 9 years ago

Thanks, I'll merge this now and I'll make a few modifications later: 1) like you said, the .c.b thing needs to be configurable 2) npoints is not really the number of poits, just the number of trys. The actual number of points will depend on the actual image gray areas. I'll change this to actually mean the number of points 3) The 0.5 and 0.01 thesholds can be configurable too 4) Testing, once with a generated image (e.g. just white/black blocks or lines)