Remove unnecessary if-block.

This looks like it was a copy-paste error.
This commit is contained in:
Tony S Yu
2011-10-15 02:57:32 -04:00
parent 9adbca13e7
commit b6e470dbd1
-3
View File
@@ -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