Kevin Moerman 🔓🦿<p>So how do you turn contours (see previous post) into surface geometry? Well you can create a "levelset image", it is a bit like a heat propagating positively outward and negatively inward from the contours. Instead of heat though you can use the distance to the contour. Next you can draw the isosurface at the level 0 to retrieve the surface. </p><p>If one segments stuff using voxel labels it can be hard to retrieve a smooth result. Here however the contours are smoothly interpolated curves and the isosurface is smoothly interpolated as well. Hence there is naturally less of a stepped-Lego issue :). </p><p>In the video below the image on the right is the wobbly STL that comes with the Visible Human project. I tried to do better based on the contours-level set approach. I can also control the surface mesh density as you can see in the middle image. </p><p><a href="https://fediscience.org/tags/opensource" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>opensource</span></a> <a href="https://fediscience.org/tags/Julialang" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>Julialang</span></a> <a href="https://fediscience.org/tags/biomedicalengineering" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>biomedicalengineering</span></a> <a href="https://fediscience.org/tags/finiteelementanalysis" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>finiteelementanalysis</span></a> <a href="https://fediscience.org/tags/biomechanics" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>biomechanics</span></a> <a href="https://fediscience.org/tags/segmentation" class="mention hashtag" rel="nofollow noopener noreferrer" target="_blank">#<span>segmentation</span></a></p><p>Open source projects used here: </p><p><a href="https://github.com/COMODO-research/Imago.jl" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/COMODO-research/Ima</span><span class="invisible">go.jl</span></a></p><p><a href="https://github.com/COMODO-research/Comodo.jl" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/COMODO-research/Com</span><span class="invisible">odo.jl</span></a></p><p><a href="https://github.com/COMODO-research/Geogram.jl" rel="nofollow noopener noreferrer" translate="no" target="_blank"><span class="invisible">https://</span><span class="ellipsis">github.com/COMODO-research/Geo</span><span class="invisible">gram.jl</span></a></p>