Пример #1
0
def do_gaussien_cylinder(exp, size, nsigma=None, width=None,
                         center_offset=0, angle=None):
    res = imgutils.gaussian_cylinder(size, nsigma=nsigma,
                                     width=width, center_offset=center_offset,
                                     angle=angle)
    print (res * 1000).astype(np.int)
    print exp
    return np.equal(exp, (res * 1000).astype(np.int)).all()
Пример #2
0
def do_gaussien_cylinder(exp,
                         size,
                         nsigma=None,
                         width=None,
                         center_offset=0,
                         angle=None):
    res = imgutils.gaussian_cylinder(size,
                                     nsigma=nsigma,
                                     width=width,
                                     center_offset=center_offset,
                                     angle=angle)
    print(res * 1000).astype(np.int)
    print exp
    return np.equal(exp, (res * 1000).astype(np.int)).all()
Пример #3
0
def test_gaussien_cylinder_no_arg():
    try:
        imgutils.gaussian_cylinder(100)
        assert False
    except ValueError:
        pass
Пример #4
0
def test_gaussien_cylinder_no_arg():
    try:
        imgutils.gaussian_cylinder(100)
        assert False
    except ValueError:
        pass