def test_find_center_vo_with_downsampling(self): sim = read_file('sinogram.npy') np.pad( sim, ((1000, 1000), (0, 0), (1000, 1000)), mode="constant", constant_values=0) cen = find_center_vo(sim) assert_allclose(cen, 45.28, rtol=0.015)
def test_find_center_vo(self): sim = read_file('sinogram.npy') cen = find_center_vo(sim) assert_allclose(cen, 45.28, rtol=1e-2)
def test_find_center_vo_with_downsampling(self): sim = read_file('sinogram.npy') sim = zoom(sim[:, 0, :], (45, 22), order=3, mode='reflect') sim = np.expand_dims(sim, 1) cen = find_center_vo(sim, smin=-10, smax=10, ncore=2) assert_allclose(cen, 1002.0, rtol=0.25)
def test_find_center_vo(self): sim = read_file('sinogram.npy') cen = find_center_vo(sim, smin=-10, smax=10, ncore=2) assert_allclose(cen, 44.75, rtol=0.25)
def test_find_center_vo(self): sim = read_file('sinogram.npy') cen = find_center_vo(sim) assert_allclose(cen, 45.28, rtol=0.015)