<span style="line-height: 15px; white-space: pre-wrap;"></span><div><div class="gmail_quote">On Sat, Aug 8, 2009 at 5:25 PM, Luis Ibanez <span dir="ltr"><<a href="mailto:luis.ibanez@kitware.com" target="_blank">luis.ibanez@kitware.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<br>Hi David,<br><br>I would think that it all depends on what you are going to do next<br>with this data.<br><br>The image 2D storage will be more compact and will be convenient<br>for performing processing that relies on neighborhoods. However its<br>
notions of Origin, Spacing and Direction will be useless, and even <br>worse, actually misleading.<br><br>The storage as a Mesh seems to be a better option... but then we have<br>less Mesh-based filters than Image-based filters.<br>
<br>Again, it all depends on what kind of operations or algorithms are you<br>planning to apply to your LiDAR data.<br><br> Please let use know about them,<br><br><br> Thanks<br><br><br> Luis</blockquote>
<div><br>I thing both types of operations can be necessary. Here is a small list:<br><br>1) <span style="line-height: 15px; white-space: pre-wrap;">Ray-mesh intersections - an itkMesh would be the way to go here (are there efficient intersection methods available? I saw that there is an octree class (</span><a href="http://www.itk.org/Doxygen/html/classitk_1_1Octree.html">http://www.itk.org/Doxygen/html/classitk_1_1Octree.html</a> ) but I grepped for "octree" in the examples and came up with nothing. In VTK, the <a href="http://www.vtk.org/doc/release/4.0/html/classvtkOBBTree.html">http://www.vtk.org/doc/release/4.0/html/classvtkOBBTree.html</a> class has a SetDataSet(PolyData) method that you can stick a whole mesh into the octree and then call Ocree->IntersectWithLine(P0, P1), is something like this available in ITK? (Luis - this would be the main conversion necessary to bring the synthetic LiDAR scanner to ITK...)<br>
<span style="line-height: 15px; white-space: pre-wrap;"><br>2) "all points in a 3d radius" lookup</span><span style="line-height: 15px; white-space: pre-wrap;"> - itkMesh should be used - as with the octree, I didn't see anything about how to put a mesh into a kdtree for these nearest-neighbor type lookups?<br>
<br>3) 4-neighborhood connected neighbors for "quick" normal estimation or simple depth discontinuity detection - an itk Vector Image would be well suited here.<br><br>4) Traversing a scan a "strip" (i.e. column) at a time - seems like an itkImage would be good here<br>
<br>5) Region growing on the mesh - i.e. finding parts of the mesh that are similar according to some metric (probably involving the normals) - an itkImage is crucial here.<br><br>It looks like both types of functionality are required sometimes, so maybe I just need to write functions to load the data into both data structures and use the appropriate one when necessary? Or maybe derive a class from itkMesh that is called itkGridMesh that stores the connectivity information and has "getUpperNeighbor", "getRightNeighbor" etc type functions. I'm not sure this is generalizable to N-d though...<br clear="all">
</span><span style="line-height: 15px; white-space: pre-wrap;"><br></span>Thanks,<br><br>David <br></div></div></div>