[vtk-developers] Discrete contouring classes

Bill Lorensen bill.lorensen at gmail.com
Sat Dec 23 08:41:21 EST 2017


Here are VTKExamples for discrete and cubes model generation:
https://lorensen.github.io/VTKExamples/site/Cxx/Medical/GenerateModelsFromLabels/
https://lorensen.github.io/VTKExamples/site/Cxx/Medical/GenerateCubesFromLabels/

On Sat, Dec 23, 2017 at 8:35 AM, Will Schroeder
<will.schroeder at kitware.com> wrote:
> FYI here is an example of discrete marching cubes at work. From Bill:
>
>> Here is the SPLBrainAtlas;
>> https://github.com/lorensen/SPLBrainAtlas/wiki/Atlas-Summary
>>
>> The two-paned images show Discrete on left, Cube's Model (also
>> undersold) on right. STL files created using discrete followed by
>> non-manifold joint smoothing.
>
>
> On Sat, Dec 23, 2017 at 8:30 AM, Will Schroeder <will.schroeder at kitware.com>
> wrote:
>>
>> FYI- Back in the day (2004) Jim Miller and Bill Lorensen added the
>> vtkDiscreteMarchingCubes class. This is used to generate contours for label
>> masks (as you would find in segmentation). The key here is that the labels
>> are non-continuous (i.e., scalar field is not smooth) so the regular edge
>> interpolation of something like marching cubes doesn't work. Long story
>> short, this class interpolates on the mid-edge point between regions, and it
>> generates different regions (i.e., meshes) for each label.
>>
>> This class and approach is woefully underappreciated and underused.
>>
>> I am just adding flying edges versions (2D and 3D) of this functionality
>> (MR 3739). These are of course much faster and scalable across multiple
>> cores. They also produce slightly different results. Principally they do not
>> merge coincident points belonging to different regions (since flying edges
>> does not use a point locator) -- this is both good and bad depending on the
>> application. Also normals are generated by the flying edges algorithm, not
>> by vtkDiscreteMarchingCubes.
>>
>> See the docs for more info.
>>
>> Best,
>> W
>>
>> --
>> William J. Schroeder, PhD
>> Kitware, Inc. - Building the World's Technical Computing Software
>> 28 Corporate Drive
>> Clifton Park, NY 12065
>> will.schroeder at kitware.com
>> http://www.kitware.com
>> (518) 881-4902
>
>
>
>
> --
> William J. Schroeder, PhD
> Kitware, Inc. - Building the World's Technical Computing Software
> 28 Corporate Drive
> Clifton Park, NY 12065
> will.schroeder at kitware.com
> http://www.kitware.com
> (518) 881-4902
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Search the list archives at: http://markmail.org/search/?q=vtk-developers
>
> Follow this link to subscribe/unsubscribe:
> https://vtk.org/mailman/listinfo/vtk-developers
>
>



-- 
Unpaid intern in BillsBasement at noware dot com


More information about the vtk-developers mailing list