mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-05 13:10:48 +08:00
Fix wrong factor in pyramid_expand
This commit is contained in:
1 parent
eaed3dff1e
commit
c42b3d656d
1 file changed
+2
-2
@@ -121,8 +121,8 @@ def pyramid_expand(image, factor=2, sigma=None, order=1,
|
||||
|
||||
rows = image.shape[0]
|
||||
cols = image.shape[1]
|
||||
out_rows = 2 * rows
|
||||
out_cols = 2 * cols
|
||||
out_rows = math.ceil(factor * rows)
|
||||
out_cols = math.ceil(factor * cols)
|
||||
|
||||
if sigma is None:
|
||||
# automatically determine sigma which covers > 99% of distribution
|
||||
|
||||
Reference in new issue
Block a user