mirror of
https://github.com/wassname/scikit-image.git
synced 2026-08-07 11:28:14 +08:00
Remove unnecessary if-block.
This looks like it was a copy-paste error.
This commit is contained in:
@@ -189,8 +189,5 @@ def greyscale_black_top_hat(image, selem, out=None):
|
||||
raise NotImplementedError("Cannot perform white top hat in place.")
|
||||
dilated = greyscale_dilate(image, selem)
|
||||
out = greyscale_erode(dilated, selem, out=out)
|
||||
|
||||
out = out - image
|
||||
if image is out:
|
||||
raise NotImplementedError("Cannot perform black top hat in place.")
|
||||
return out
|
||||
|
||||
Reference in New Issue
Block a user