mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-12 06:37:35 +08:00
unwrap: 3d tested ok
This commit is contained in:
committed by
Jostein Bø Fløystad
parent
96c293ca85
commit
2cbdef4bb2
@@ -25,7 +25,7 @@ def test_unwrap2D():
|
||||
phi_w_ma/(np.pi*2), phi_ma/(np.pi*2),)
|
||||
|
||||
def test_unwrap3D():
|
||||
x, y, z = np.ogrid[:8, :8, :4]
|
||||
x, y, z = np.ogrid[:8, :12, :4]
|
||||
|
||||
phi = 2*np.pi*(x*0.2 + y*0.1 + z*0.05)
|
||||
phi_wrapped = np.angle(np.exp(1j*phi))
|
||||
|
||||
@@ -11,7 +11,7 @@ def _unwrap3D(float[:,:,::1] array,
|
||||
unwrap3D(&array[0,0,0],
|
||||
&unwrapped_array[0,0,0],
|
||||
&mask[0,0,0],
|
||||
array.shape[0], array.shape[1], array.shape[2], #TODO: check!!!
|
||||
array.shape[2], array.shape[1], array.shape[0], #TODO: check!!!
|
||||
wrap_around_x, wrap_around_y, wrap_around_z,
|
||||
)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user