Use vtkThreshold filter.