Exemplo n.º 1
0
    def __call__(self, image):
        dbls = oofimage.grayify(image)
        temp = imageops.gaussSmooth(dbls, self.stdDev)

        scaled = imageops.scaleArray2(temp, 0.0, 1.0)

        imageops.setFromArray(image, scaled)
Exemplo n.º 2
0
    def __call__(self, image):
        dbls = oofimage.grayify(image)
        temp = imageops.gaussSmooth(dbls,self.stdDev)  
           
        scaled = imageops.scaleArray2(temp, 0.0, 1.0)

        imageops.setFromArray(image,scaled)
Exemplo n.º 3
0
    def __call__(self, image):
        dbls = oofimage.grayify(image)
        temp1 = imageops.sobel(dbls, 0)
        temp2 = imageops.sobel(dbls, 2)
        combined = imageops.combineVals(temp1, temp2)

        scaled = imageops.scaleArray2(combined, 0.0, 1.0)

        imageops.setFromArray(image, scaled)
Exemplo n.º 4
0
    def __call__(self, image):
        dbls = oofimage.grayify(image)
        temp1=imageops.sobel(dbls,0)
        temp2=imageops.sobel(dbls,2)
        combined=imageops.combineVals(temp1,temp2)  
           
        scaled = imageops.scaleArray2(combined, 0.0, 1.0)

        imageops.setFromArray(image,scaled)
Exemplo n.º 5
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     for i in range(self.numAngles):
         phi = i * 180. / self.numAngles
         current = imageops.modGabor(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)
Exemplo n.º 6
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     for i in range(self.numAngles):
         phi = i*180./self.numAngles
         current = imageops.modGabor(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)        
Exemplo n.º 7
0
    def __call__(self, image):
        dbls = oofimage.grayify(image)
        largest = imageops.canny(dbls, self.stdDev)
        ##       smoothed = imageops.gaussSmooth(dbls,self.stdDev)

        ##        for i in range(4):
        ##            temp=imageops.sobel(smoothed,i)
        ##            if i!=0:
        ##                largest=imageops.findLargerVals(largest,temp)
        ##            else:
        ##                largest=temp

        scaled = imageops.scaleArray2(largest, 0.0, 1.0)

        imageops.setFromArray(image, scaled)
Exemplo n.º 8
0
    def __call__(self, image):
        dbls = oofimage.grayify(image)
        largest=imageops.canny(dbls,self.stdDev)
 ##       smoothed = imageops.gaussSmooth(dbls,self.stdDev)
        
##        for i in range(4):
##            temp=imageops.sobel(smoothed,i)
##            if i!=0:
##                largest=imageops.findLargerVals(largest,temp)
##            else:
##                largest=temp 
           
        scaled = imageops.scaleArray2(largest, 0.0, 1.0)

        imageops.setFromArray(image,scaled)
Exemplo n.º 9
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     temp = imageops.laplacian(dbls)
     scaled = imageops.scaleArray2(temp, 0.0, 1.0)
     imageops.setFromArray(image, scaled)
Exemplo n.º 10
0
 def __call__(self, image):
     dbls = oofimage.grayify(image)
     temp = imageops.laplacian(dbls)  
     scaled = imageops.scaleArray2(temp, 0.0, 1.0)
     imageops.setFromArray(image,scaled)