'Set an ImageItem to have its levels and LUT automatically controlled
by this HistogramLUTItem.'

def setImageItem(self, img):

    self.imageItem = weakref.ref(img)
    img.sigImageChanged.connect(self.imageChanged)
    img.setLookupTable(self.getLookupTable)
    self.regionChanged()
    self.imageChanged(autoLevel=True)
