[vtkusers] A Simple Question on vtkContourFilter

Hayden Smith s_hayden_28 at yahoo.com
Wed Jul 3 16:14:35 EDT 2013


Hello,
     Thanks for the reply. But I need a little  bit clarification. When I use 'skinExtractor SetValue 0 255', it generates one iso-surface. Does it threshold the image into a binary image?

Thanks again.

Hayden.





________________________________
 From: Bill Lorensen <bill.lorensen at gmail.com>
To: Hayden Smith <s_hayden_28 at yahoo.com> 
Cc: "vtkusers at vtk.org" <vtkusers at vtk.org> 
Sent: Tuesday, July 2, 2013 3:45 PM
Subject: Re: [vtkusers] A Simple Question on vtkContourFilter
 


skinExtractor GenerateValues 4 0 255 will extract 4 isosurfaces 
     Value 0: 0
      Value 1: 85
      Value 2: 170
      Value 3: 255

where
skinExtractor SetValue 0 255
will extract 1 isosurface with value
255






On Tue, Jul 2, 2013 at 4:17 PM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:

Hello,
>         I have a simple question on vtkContourFilter. What is the difference between  the following two pieces of code:
>
>
>        vtkContourFilter skinExtractor
>                                    skinExtractor SetInput [v16
 GetOutput]
>                                    eval skinExtractor GenerateValues 4 0 255
>                                    skinExtractor Update
>
>
>
>
>       vtkContourFilter skinExtractor
>                                   skinExtractor SetInput [v16 GetOutput]
>                                   skinExtractor SetValue 0 255
>                                   skinExtractor Update
>
>
>
>
>If I use  'eval skinExtractor GenerateValues 4 0 255' in vtkContourFilter, the reconstructed output is noisy whereas if I use 'skinExtractor SetValue 0 255', the output is better and much clear. Could any one clarify me how these two commands are making the difference in output? 
>
>Thanks in advance.
>
>
>
>Hayden
>
>_______________________________________________
>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
>
>


-- 
Unpaid intern in BillsBasement at noware dot com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20130703/147c81ea/attachment.htm>


More information about the vtkusers mailing list