Interesting features, give a look at examples!
def sobelEdgeDetect(im=DImage, p=Position):
wX = outerproduct([1,2,1],[-1,0,1])
wY = transpose(wX)
Gx = convolve(wX,im,p)
Gy = convolve(wY,im,p)
return sqrt(Gx**2 + Gy**2)
def sobelEdgeDetect(im=DImage, p=Position):
wX = outerproduct([1,2,1],[-1,0,1])
wY = transpose(wX)
Gx = convolve(wX,im,p)
Gy = convolve(wY,im,p)
return sqrt(Gx**2 + Gy**2)
Nessun commento:
Posta un commento