mirror of
https://github.com/wassname/scikit-image.git
synced 2026-07-27 11:27:08 +08:00
Adapted if statement to grid_shape=None
This commit is contained in:
@@ -87,10 +87,10 @@ def montage2d(arr_in, fill='mean', rescale_intensity=False, grid_shape=None):
|
||||
arr_in[i] = exposure.rescale_intensity(arr_in[i])
|
||||
|
||||
# -- determine alpha
|
||||
if grid_shape == (0, 0):
|
||||
alpha_y = alpha_x = int(np.ceil(np.sqrt(n_images)))
|
||||
else:
|
||||
if grid_shape:
|
||||
alpha_y, alpha_x = grid_shape
|
||||
else:
|
||||
alpha_y = alpha_x = int(np.ceil(np.sqrt(n_images)))
|
||||
|
||||
# -- fill missing patches
|
||||
if fill == 'mean':
|
||||
|
||||
Reference in New Issue
Block a user