def hessian(image, scale_range=(1, 10), scale_step=2, beta1=0.5, beta2=15):
 (filtered, lambdas) = _frangi_hessian_common_filter(image, scale_range, scale_step, beta1, beta2)
 filtered[(lambdas < 0)] = 0
 out = np.max(filtered, axis=0)
 out[(out <= 0)] = 1
 return out

def hessian ( image , scale_range = ( 1 , 10 ) , scale_step = 2 , beta1 = 0.5 , beta2 = 15 ) : ( filtered , lambdas ) = _frangi_hessian_common_filter ( image , scale_range , scale_step , beta1 , beta2 ) filtered [ ( lambdas < 0 ) ] = 0 out = np . max ( filtered , axis = 0 ) out [ ( out <= 0 ) ] = 1 return out
filter an image with the hessian filter .