Fix wrong factor in pyramid_expand

This commit is contained in:
Johannes Schönberger
2012-09-07 18:11:48 +02:00
parent eaed3dff1e
commit c42b3d656d
+2 -2
View File
@@ -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