[vtkusers] I am searching a filter (kind of threshold)
David E DeMarle
dave.demarle at kitware.com
Fri May 7 09:08:18 EDT 2010
Use vtkArrayCalculator's conditional expressions to test and either
replace or leave values unchanged.
David E DeMarle
Kitware, Inc.
R&D Engineer
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x109
On Fri, May 7, 2010 at 8:13 AM, Jérôme <jerome.velut at gmail.com> wrote:
> Hi,
> If you are working with vtkImageData, vtkImageThreshold is what you are looking
> for. However, for polygonal/pointset/...data, I agree with David.
>
> 2010/5/7 David Doria <daviddoria+vtk at gmail.com>:
>> On Fri, May 7, 2010 at 7:18 AM, Lodron, Gerald <Gerald.Lodron at joanneum.at>
>> wrote:
>>>
>>> Hi
>>>
>>> Is there any filter which set all values smaller a threshold to a specific
>>> value (e.g. all values smaller than zero to zero)
>>>
>>> Best regards
>>>
>>
>> I don't think any filters will really change the values. You can use this:
>> http://www.vtk.org/Wiki/VTK/Examples/PolyData/ThresholdingPoints
>> to get the IDs of the points that pass your threshold test and then set to
>> the specific value yourself.
>> Maybe someone has a better answer?
>> Thanks,
>>
>> David
>>
>> _______________________________________________
>> 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
>>
>>
> _______________________________________________
> 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