'**SUMMARY**
Apply a look up table to the signal.
**PARAMETERS**
* *lut* an array of of length 256, the array elements are the values
that are replaced via the lut
**RETURNS**
A LineScan object with the LUT applied to the values.
**EXAMPLE**
>>>> ls = img.getLineScan(x=10)
>>>> lut = ls.createEmptyLUT()
>>>> ls2 = ls.applyLUT(lut)
>>>> plt.plot(ls)
>>>> plt.plot(ls2)'

def applyLUT(self, lut):

    out = []
    for pt in self:
        out.append(lut[pt])
    retVal = LineScan(out, image=self.image, pointLoc=self.pointLoc, pt1=self.pt1, pt2=self.pt2)
    retVal._update(self)
    return retVal
