How to use the aotools.image_processing.encircled_energy function in aotools

To help you get started, we’ve selected a few aotools examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github AOtools / aotools / test / test_image_processing.py View on Github external
def test_encircled_energy():
    data = numpy.random.rand(32, 32)
    ee50d = image_processing.encircled_energy(data)
    print(ee50d)
    assert type(ee50d) == float
github AOtools / aotools / test / test_image_processing.py View on Github external
def test_encircledEnergy_func():
    data = numpy.random.rand(32, 32)
    x, y = image_processing.encircled_energy(data, eeDiameter=False)
    print(y.min(), y.max())
    assert len(x) == len(y)
    assert numpy.max(y) <= 1
    assert numpy.min(y) >= 0
github AOtools / aotools / test / test_image_processing.py View on Github external
def test_encircledEnergy():
    data = numpy.random.rand(32, 32)
    ee50d = image_processing.encircled_energy(data)
    print(ee50d)
    assert type(ee50d) == float