Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

silent bia-bob suggestions in case the non-prototype pyclesperanto is installed. #342

Merged
merged 2 commits into from
Sep 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion pyclesperanto_prototype/_bia_bob_plugins.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@

def list_bia_bob_plugins():
"""List of function hints for bia_bob"""
return """ * Set only surface pixels to 1 in destination binary image

# do not recommend anything if pyclesperanto (non-prototype) is installed
try:
import pyclesperanto
return ""
except:
pass


return """
* Set only surface pixels to 1 in destination binary image
cle.binary_edge_detection(source: ndarray, destination: ndarray = None) -> ndarray

* Create a binary image by inverting pixel values in an input image, where all non-zero pixels become 0 and zeros become 1
Expand Down
Loading