Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)
Exemplo n.º 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)      
Exemplo n.º 5
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = oofimage.threshold(dbls, self.T)
     oofimage.setFromBool(image, bools)
Exemplo n.º 6
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = imageops.hysteresisThresh(dbls, self.T1, self.T2)
     oofimage.setFromBool(image, bools)
Exemplo n.º 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)
Exemplo n.º 8
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = oofimage.threshold(dbls,self.T)
     oofimage.setFromBool(image,bools)
Exemplo n.º 9
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     bools = imageops.hysteresisThresh(dbls,self.T1,self.T2)
     oofimage.setFromBool(image,bools)
Exemplo n.º 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)