Esempio n. 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()
Esempio n. 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()
Esempio n. 3
0
def test_gaussien_cylinder_no_arg():
    try:
        imgutils.gaussian_cylinder(100)
        assert False
    except ValueError:
        pass
Esempio n. 4
0
def test_gaussien_cylinder_no_arg():
    try:
        imgutils.gaussian_cylinder(100)
        assert False
    except ValueError:
        pass