mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-06 05:16:40 +08:00
Fix wrong factor in pyramid_expand
This commit is contained in:
@@ -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