Beispiel #1
0
 def __call__(self, image):
     if config.dimension() == 2:
         dbls = oofimage.grayify(image)
         bools = oofimage.threshold(dbls, self.T)
         oofimage.setFromBool(image, bools)
     elif config.dimension() == 3:
         image.threshold(self.T)
Beispiel #2
0
 def __call__(self, image):
     if config.dimension() == 2:
         dbls = oofimage.grayify(image)
         bools = oofimage.threshold(dbls,self.T)
         oofimage.setFromBool(image,bools)
     elif config.dimension() == 3:
         image.threshold(self.T)
Beispiel #3
0
 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)
Beispiel #4
0
 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)      
Beispiel #5
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = oofimage.threshold(dbls, self.T)
     oofimage.setFromBool(image, bools)
Beispiel #6
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = imageops.hysteresisThresh(dbls, self.T1, self.T2)
     oofimage.setFromBool(image, bools)
Beispiel #7
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     #     bools=oofimage.threshold(dbls,.5)
     bools = imageops.connecter(dbls, self.Threshold, self.t, self.d,
                                self.n, self.B, self.trimYN)
     oofimage.setFromBool(image, bools)
Beispiel #8
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = oofimage.threshold(dbls,self.T)
     oofimage.setFromBool(image,bools)
Beispiel #9
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = imageops.hysteresisThresh(dbls,self.T1,self.T2)
     oofimage.setFromBool(image,bools)
Beispiel #10
0
    def __call__(self,image):
        dbls=oofimage.grayify(image)
 #     bools=oofimage.threshold(dbls,.5)
        bools=imageops.connecter(dbls,self.Threshold,self.t,self.d,self.n,
                               self.B,self.trimYN)
        oofimage.setFromBool(image,bools)