[vtkusers] Solid Voxelization with VTK

David Gobbi david.gobbi at gmail.com
Mon Sep 24 00:09:36 EDT 2018


Hi Berti,

You don't even have to initialize binaryLabelMap, since you don't use it as
an input for anything until the DeepCopy.  Really the DeepCopy isn't
necessary either, you could call
imageStencilToImage->SetOutput(binaryLabelMap) before calling
imageStencilToImage->Update().

Thanks for the samples, those results are very interesting.  Because of the
way the algorithm works, the Z axis is immune to those bridges in the
result, so you are correct that majority voting or a logical "and" might
clean it up.  For the Eiffel tower, the polygons might be wound the wrong
way (i.e. the shape is inside-out).  You could try applying vtkReverseSense.

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: alienqueen_robust_voxelization.jpg
Type: image/jpeg
Size: 26953 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0002.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: eiffel_tower_small_robust_voxelization.jpg
Type: image/jpeg
Size: 47103 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0003.jpg>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bunny_timings_single.png
Type: image/png
Size: 22038 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0004.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: bunny_timings_multi.png
Type: image/png
Size: 16108 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: armadillo_timings.png
Type: image/png
Size: 21249 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: dragon_timings.png
Type: image/png
Size: 21345 bytes
Desc: not available
URL: <https://public.kitware.com/pipermail/vtkusers/attachments/20180923/7210b8b3/attachment-0007.png>


More information about the vtkusers mailing list