Monday, 23 February 2009

Photosynth point cloud in c# (beta...)

Further to this post, I've done a bit more work on the C# version of this Python script to process multiple bin files, format the result for MeshLab and save it as a file with .ply extension (thanks to comments on this post).
View the code Program.cs
and the sample output points_0_0.bin.ply

Here's how the example Sydney Harbour synth looks on Photosynth.net


And this is the Meshlab .ply



Obviously I still haven't got the color parsing quite right (and I'm not 100% sure the point-count is correct...) but it's clearly the same set of points, so the C# code must be doing something right :)

2 comments:

  1. You wouldn't happen to have a backup of the Program.cs would you? It appears that the link is broken.

    This would be pretty handy for me, since I'm trying to write ply from c# also.

    ReplyDelete
  2. I think the link is broken due to DNS issues. Hoping they'll be resolved overnight, otherwise I'll post a new link.

    ReplyDelete

Note: only a member of this blog may post a comment.