lane/threshold.py
def combine_grad_hls(grad, hls):
    """ 
    #---------------------
    # This function combines gradient and hls images into one.
    # For binary gradient image, if pixel is bright, set that pixel value in reulting image to 255
    # For binary hls image, if pixel is bright, set that pixel value in resulting image to 255 
    # Edit: Assign different values to distinguish them
    # 
    """
    result = np.zeros_like(hls).astype(np.uint8)
    #result[((grad > 1) | (hls > 1))] = 255
    result[(grad > 1)] = 100
    result[(hls > 1)] = 255

    return result
 
    #---------------------
    # This function combines gradient and hls images into one.
    # For binary gradient image, if pixel is bright, set that pixel value in reulting image to 255
    # For binary hls image, if pixel is bright, set that pixel value in resulting image to 255 
    # Edit: Assign different values to distinguish them
    # 
    
This function combines gradient and hls images into one.
For binary gradient image, if pixel is bright, set that pixel value in reulting image to 255
For binary hls image, if pixel is bright, set that pixel value in resulting image to 255
Edit: Assign different values to distinguish them
This function combines gradient and hls images into one . For binary gradient image if pixel is bright set that pixel value in reulting image to 255 For binary hls image if pixel is bright set that pixel value in resulting image to 255 Edit : Assign different values to distinguish them
def combine_grad_hls(grad, hls):
    result = np.zeros_like(hls).astype(np.uint8)
    result[(grad > 1)] = 100
    result[(hls > 1)] = 255
    return result
def combine_grad_hls ( grad , hls ) : result = np . zeros_like ( hls ) . astype ( np . uint8 ) result [ ( grad > 1 ) ] = 100 result [ ( hls > 1 ) ] = 255 return result
This function combines gradient and hls images into one.
This function combines gradient and hls images into one .
""" 
    #---------------------
    # This function combines gradient and hls images into one.
    # For binary gradient image, if pixel is bright, set that pixel value in reulting image to 255
    # For binary hls image, if pixel is bright, set that pixel value in resulting image to 255 
    # Edit: Assign different values to distinguish them
    # 
    """ #result[((grad > 1) | (hls > 1))] = 255
grad
hls