<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Wed, Mar 29, 2017 at 11:01 AM, David Thompson <span dir="ltr"><<a href="mailto:david.thompson@kitware.com" target="_blank">david.thompson@kitware.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class="gmail-"><br>
</span>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.</blockquote><div><br></div><div>The kind of lookups I'm thinking of are O(1), i.e. output = LUT[input].</div><div><br></div><div> - David</div></div></div></div>