CNTK/GeneralizedHoughTransform/generalized_ht.py
def general_hough_closure(reference_image):
    '''
    Generator function to create a closure with the reference image and origin
    at the center of the reference image

    Returns a function f, which takes a query image and returns the accumulator
    '''
    referencePoint = (reference_image.shape[0]/2, reference_image.shape[1]/2)
    r_table = build_r_table(reference_image, referencePoint)

    def f(query_image):
        return accumulate_gradients(r_table, query_image)

    return f

    Generator function to create a closure with the reference image and origin
    at the center of the reference image

    Returns a function f, which takes a query image and returns the accumulator
    
Generator function to create a closure with the reference image and origin
at the center of the reference image

Returns a function f, which takes a query image and returns the accumulator
Generator function to create a closure with the reference image and origin at the center of the reference image Returns a function f which takes a query image and returns the accumulator
def general_hough_closure(reference_image):
    referencePoint = (reference_image.shape[0]/2, reference_image.shape[1]/2)
    r_table = build_r_table(reference_image, referencePoint)
    def f(query_image):
        return accumulate_gradients(r_table, query_image)
    return f
def general_hough_closure ( reference_image ) : referencePoint = ( reference_image . shape [ 0 ] / 2 , reference_image . shape [ 1 ] / 2 ) r_table = build_r_table ( reference_image , referencePoint ) def f ( query_image ) : return accumulate_gradients ( r_table , query_image ) return f
Generator function to create a closure with the reference image and origin
at the center of the reference image
Generator function to create a closure with the reference image and origin at the center of the reference image
'''
    Generator function to create a closure with the reference image and origin
    at the center of the reference image

    Returns a function f, which takes a query image and returns the accumulator
    '''
reference_image