CNTK/GeneralizedHoughTransform/generalized_ht.py
def gradient_orientation(image):
    '''
    Calculate the gradient orientation for edge point in the image
    '''
    dx = sobel(image, axis=0, mode='constant')
    dy = sobel(image, axis=1, mode='constant')
    gradient = np.arctan2(dy,dx) * 180 / np.pi

    return gradient

    Calculate the gradient orientation for edge point in the image
    
Calculate the gradient orientation for edge point in the image
Calculate the gradient orientation for edge point in the image
def gradient_orientation(image):
    dx = sobel(image, axis=0, mode='constant')
    dy = sobel(image, axis=1, mode='constant')
    gradient = np.arctan2(dy,dx) * 180 / np.pi
    return gradient
def gradient_orientation ( image ) : dx = sobel ( image , axis = 0 , mode = 'constant' ) dy = sobel ( image , axis = 1 , mode = 'constant' ) gradient = np . arctan2 ( dy , dx ) * 180 / np . pi return gradient
Calculate the gradient orientation for edge point in the image
Calculate the gradient orientation for edge point in the image
'''
    Calculate the gradient orientation for edge point in the image
    '''
image