[vtkusers] Surfacing Multiple Exact Contour Values from Image Data

Bill Lorensen bill.lorensen at gmail.com
Fri May 21 14:16:17 EDT 2010


Since your structures are labelled (and not grayscale) use
vtkDiscreteMarchingCubes. Here is an example:
http://www.vtk.org/Wiki/VTK/Examples/Medical/GenerateModelsFromLabels

You'll need to modify the input part to accommodate your file format.

Bill

On Fri, May 21, 2010 at 12:12 PM,  <jwlee6 at buffalo.edu> wrote:
> To VTK users:
>
>
>
> I currently have labeled 8bit image data, 1 indicating tissue, 2 bone…etc.
>   I use vtkImageReader to read in the image data.   I need to surface this
> data according to its label.  vtkContourFilter and vtkMarchingCubes use
> SetValue(surface#,scalar value).  I go ahead and use it like this:
>
>
>
> Surface->SetValue(0,1);
>
> Surface->SetValue(1,2);
>
> Surface->SetValue(2,3);
>
>
>
>
>
> However the output of the surfaces is not correct.   While (2,3) looks
> correct, (0,1) and (1,2) are wrong.  They include the surfaces of image data
> of which their scalar value was not the specified exact value.
>
>
>
> My question is, is the SetValue in these surfacing filters exact?  If not,
> what can I do to make them exact?  I prefer not to have to threshold into
> separate volumes before feeding into the surface filter for time and space
> reasons.
>
>
>
> I noticed a class called vtkDividingCubes that looks it take in exact value
> but only one value.  VTK 5.0 looks to only have vtkRecursiveDividingCubes
> and this class crashes on me.  I suspect because it is Recursive and I have
> a large image data set.  I would always prefer iterative when working with
> large data.
>
>
>
> Thanks in advance
>
> Joseph Lee
>
>
>
>
>
>
>
>
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>



More information about the vtkusers mailing list