def testForestIntermediate(im, N=50000, size=25, noise=0.4):
    '''
    Verifies the intermediate passes in the painterly function.
    This works on the same forest image as before.
    '''
    print 'TEST 3: painterly on forest (outputting intermediate passes)'
    npr.painterly(im, bigBrush, N, size, noise, debug=True, imname="Forest")
def testCatalinaIntermediate(im, N=50000, size=50, noise=0.2):
    '''
    Verifies the intermediate passes in the painterly function.
    This works on the same Catalina image as before in #4.
    '''
    print 'TEST 5: painterly on Catalina wallpaper (outputting intermediate passes)'
    npr.painterly(im, brush1, N, size, noise, debug=True, imname="Catalina")
def testPainterly(im, texture, outputName, N=10000, size=50, noise=0.3):
    '''
    Using extra debug flags, outputs both the first and second
    passes ONLY of the painterly function. Similar to the handout.
    '''
    print 'TEST 1: painterly on provided VPD image'
    # uses debug flags as extensions to painterly
    npr.painterly(im, texture, N, size, noise, debug=True, imname=outputName)
def testPainterly(im, texture, outputName, N=10000, size=50, noise=0.3):
    io.imwrite(npr.painterly(im, texture, N, size, noise),
               str(outputName + "Painterly" + ".png"))
def testPainterly(im, texture, outputName, N=10000, size=50, noise=0.3):
    io.imwrite(npr.painterly(im, texture, N, size, noise), str(outputName+"Painterly"+".png"))