Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)
PIL_usm.usm(im, [radius, percent, threshold])

        def unsharp_mask(im, radius=None, percent=None, threshold=None):
    """ PIL_usm.usm(im, [radius, percent, threshold])"""

    if radius is None:
        radius = 5.0
    if percent is None:
        percent = 150
    if threshold is None:
        threshold = 3

    im.load()

    return im.im.unsharp_mask(radius, percent, threshold)
        


src/p/i/Pillow-2.4.0/Tests/test_imageops_usm.py   Pillow(Download)
    # i.save("blur.bmp")
 
    i = ImageOps.usm(im, 2.0, 125, 8)
    assert_equal(i.mode, "RGB")
    assert_equal(i.size, (128, 128))

src/p/i/Pillow-HEAD/Tests/test_imageops_usm.py   Pillow(Download)
    # i.save("blur.bmp")
 
    i = ImageOps.usm(im, 2.0, 125, 8)
    assert_equal(i.mode, "RGB")
    assert_equal(i.size, (128, 128))