[vtk-developers] Image filter to remap labels to new values

David Gobbi david.gobbi at gmail.com
Wed Mar 29 13:11:29 EDT 2017


On Wed, Mar 29, 2017 at 11:01 AM, David Thompson <david.thompson at kitware.com
> wrote:

>
> Then I don't see vtkPiecewiseFunction or anything else doing anything you
> need; a vtkDataArray is probably best, although it might be nice to have a
> new vtkDataObject subclass (vtkScalarMap?) that takes the table and sorts
> it so lookups are O(log(N)) instead of O(N). That's not a whole lot of
> code, though, so I can also see just making it part of
> vtkImageMapThroughLUT.


The kind of lookups I'm thinking of are O(1), i.e. output = LUT[input].

 - David
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://public.kitware.com/pipermail/vtk-developers/attachments/20170329/720f5606/attachment.html>


More information about the vtk-developers mailing list