mirror of
https://github.com/wassname/scikit-image.git
synced 2026-10-04 13:00:57 +08:00
Add ndim argument in utility method
This commit is contained in:
1 parent
ded8fa30b9
commit
2db19c624d
1 file changed
+1
-1
@@ -125,7 +125,7 @@ def plot_matches(ax, image1, image2, keypoints1, keypoints2, matches,
|
||||
|
||||
def _prepare_grayscale_input_2D(image):
|
||||
image = np.squeeze(image)
|
||||
assert_nD(image)
|
||||
assert_nD(image, 2)
|
||||
return img_as_float(image)
|
||||
|
||||
|
||||
|
||||
Reference in new issue
Block a user