def __call__(self, image): dbls = oofimage.grayify(image) for i in range(self.numAngles): phi = i * 180. / self.numAngles current = imageops.realGabor(dbls, self.a, self.b, phi) if i != 0: old = imageops.findLargerVals(current, old) else: old = current scaled = imageops.scaleArray2(old, 0.0, 1.0) imageops.setFromArray(image, scaled)
def __call__(self, image): dbls = oofimage.grayify(image) for i in range(self.numAngles): phi = i*180./self.numAngles current = imageops.realGabor(dbls,self.a,self.b,phi) if i!=0: old=imageops.findLargerVals(current,old) else: old=current scaled = imageops.scaleArray2(old, 0.0, 1.0) imageops.setFromArray(image,scaled)
def __call__(self, image): dbls = oofimage.grayify(image) for i in range(self.numAngles): phi = i * 180. / self.numAngles current = imageops.realGabor(dbls, self.a, self.b, phi) if i != 0: old = imageops.findLargerVals(current, old) else: old = current scaled = imageops.scaleArray(old, 0.0, 1.0, self.Line_color) bools = imageops.connect(scaled, self.Threshold, self.t, self.d, self.n, self.B, self.trimYN) oofimage.setFromBool(image, bools)
def __call__(self, image): dbls=oofimage.grayify(image) for i in range(self.numAngles): phi = i*180./self.numAngles current = imageops.realGabor(dbls,self.a,self.b,phi) if i!=0: old=imageops.findLargerVals(current,old) else: old=current scaled = imageops.scaleArray(old, 0.0, 1.0,self.Line_color) bools=imageops.connect(scaled,self.Threshold,self.t,self.d,self.n, self.B,self.trimYN) oofimage.setFromBool(image,bools)