Filtering vtkStructuredPoints
Goodwin Lawlor
goodwin.lawlor at ucd.ie
Wed Feb 23 12:13:25 EST 2000
Straight from ../frog/segmented8.tcl
vtkImageThreshold selectTissue
selectTissue ThresholdBetween $TISSUE $TISSUE
selectTissue SetInValue 255
selectTissue SetOutValue 0
selectTissue SetInput [$lastConnection GetOutput]
$TISSUE is the scalar value of the tissue you want to exclusively select.
You probably should look at the whole frog example...
../vtk/examplesTcl/frog/
Goodwin
----- Original Message -----
From: R. Mercado <redhat at newton.rex.dmu.ac.uk>
To: <vtkusers at public.kitware.com>
Sent: Wednesday, February 23, 2000 3:40 PM
Subject: Filtering vtkStructuredPoints
> Hello vtk users,
>
> I would like to filter a cube of structured points based on
> the scalar values (I would specify a range of values) and set the rest of
> the volume to zeros.
>
> In my application, a scalar tells what the material is at a particular
> location on the volume and I would like to select a volume with one
> specific material only - all other materials removed. Something like a
> band pass filter in one-dimensional signal processing.
>
> I found vtkContourFilter, but that would give me as a result vtkPolyData
> and not the vtkStructuredPoints that I want.
>
> I could not figure out a pipeline to solve this. Is there a pre-built
> filter to allow me to do that?
>
> Thanks for your input.
>
> R. Mercado
>
>
> --------------------------------------------------------------------
> This is the private VTK discussion list. Please keep messages on-topic.
> Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
> To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
> <majordomo at public.kitware.com>. For help, send message body containing
> "info vtkusers" to the same address.
> --------------------------------------------------------------------
--------------------------------------------------------------------
This is the private VTK discussion list. Please keep messages on-topic.
Check the FAQ at: <http://public.kitware.com/cgi-bin/vtkfaq>
To UNSUBSCRIBE, send message body containing "unsubscribe vtkusers" to
<majordomo at public.kitware.com>. For help, send message body containing
"info vtkusers" to the same address.
--------------------------------------------------------------------
More information about the vtkusers
mailing list