Live data from Hacker News

Pointer Pointer

pointerpointer.com

1–10 of 33 posts

Re: Pointer Pointer

#4
Haha, this thing is hilarious. Great job. I wonder if the author manually went through images locating the finger or there was some automated way of doing it. I did notice that if you move the pointer is certain ~20x20 areas the same picture appears. I'm guessing the set of images is small enough to just manually do it.

Re: Pointer Pointer

#5
Does anyone know how this was implemented? It's a great example of a case where, as a computer programmer, there are still problem domains which I have absolutely no idea how to approach!

Re: Pointer Pointer

#6

Does anyone know how this was implemented? It's a great example of a case where, as a computer programmer, there are still problem domains which I have absolutely no idea how to approach!

I would imagine that there is a catalogue of images, and the location pointed to stored for each image. You could manually tag 100 photographs quite quickly I'd imagine.

For a small number of photos (up to a few thousand), a linear search (i.e. check against each one) would be quick enough. You could compare the distance of the pointed spot to the cursor (using Euclidean distance), pick the best one, maybe add in a random factor.

EDIT: Somehow the author is putting Voronoi diagrams into use. Take a look at the source.

Re: Pointer Pointer

#7

Does anyone know how this was implemented? It's a great example of a case where, as a computer programmer, there are still problem domains which I have absolutely no idea how to approach!

My guess is someone manually entered all the coordinates and directions, and the algorithm finds the best match of direction and distance.

Re: Pointer Pointer

#8

Does anyone know how this was implemented? It's a great example of a case where, as a computer programmer, there are still problem domains which I have absolutely no idea how to approach!

It uses a Voronoi diagram.

http://en.wikipedia.org/wiki/Voronoi_diagram

https://github.com/gorhill/Javascript-Voronoi

Post reply on HN