utilityfun.py
def compare_images(img_org, img_undist, titles=None):
    """Display an image comparison in a subplot."""
    if titles is None:
        titles = ('Image Before', 'Image After')

    plt.subplots(1, 2, figsize=(10, 5), dpi=80)
    plt.subplot(1, 2, 1)
    plot_image(img_org, titles[0])
    plt.subplot(1, 2, 2)
    plot_image(img_undist, titles[1])
Display an image comparison in a subplot.
Display an image comparison in a subplot.
Display an image comparison in a subplot .
def compare_images(img_org, img_undist, titles=None):
    if titles is None:
        titles = ('Image Before', 'Image After')
    plt.subplots(1, 2, figsize=(10, 5), dpi=80)
    plt.subplot(1, 2, 1)
    plot_image(img_org, titles[0])
    plt.subplot(1, 2, 2)
    plot_image(img_undist, titles[1])
def compare_images ( img_org , img_undist , titles = None ) : if titles is None : titles = ( 'Image Before' , 'Image After' ) plt . subplots ( 1 , 2 , figsize = ( 10 , 5 ) , dpi = 80 ) plt . subplot ( 1 , 2 , 1 ) plot_image ( img_org , titles [ 0 ] ) plt . subplot ( 1 , 2 , 2 ) plot_image ( img_undist , titles [ 1 ] )
Display an image comparison in a subplot.
Display an image comparison in a subplot .
"""Display an image comparison in a subplot."""
img_org
img_undist
titles