[vtkusers] A Simple Question on vtkContourFilter

Bill Lorensen bill.lorensen at gmail.com
Sat Jul 6 08:05:55 EDT 2013


What is the range of your scalar data?



On Fri, Jul 5, 2013 at 6:44 PM, Hayden Smith <s_hayden_28 at yahoo.com> wrote:

> Hello,
>       I have attached two images: the first one using "skinExtractor
> SetValue 0 127.5" and the second one "skinExtractor SetValue 0  255". Both
> showing the very similar output. My question as binarization on image is
> performed, how the threshold has been calculated as both values showing the
> similar output.
>
> Thanks,
>
> 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:* Thursday, July 4, 2013 6:04 AM
>
> *Subject:* Re: [vtkusers] A Simple Question on vtkContourFilter
>
> If your data is 8 bit data, then the effect is similar to thresholding.
> Set the value to 127.5 and you will see an isosurface that has more
> character.
>
>
> On Wed, Jul 3, 2013 at 4:14 PM, Hayden Smith <s_hayden_28 at yahoo.com>wrote:
>
> 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
>
>
>
>
>
> --
> Unpaid intern in BillsBasement at noware dot com
>
>
>


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


More information about the vtkusers mailing list