def getConvolvedImage(self, kern, rep, bias): ''' Return a simple cv compatiable 8bit greyscaled image that has had the specified kernel applied rep times with bias supplied''' conv = ds.convolveColourMap(kern, rep, bias) iE = Image(conv.transpose()) return iE.invert()