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

DefaultDatasetService errors when handling an ImgLabeling #100

Open
gselzer opened this issue Feb 7, 2022 · 1 comment
Open

DefaultDatasetService errors when handling an ImgLabeling #100

gselzer opened this issue Feb 7, 2022 · 1 comment

Comments

@gselzer
Copy link
Contributor

gselzer commented Feb 7, 2022

The error can be reproduced by running the following script (I ran it in the Script Editor):

#@ OpService ops
#@ Img inputData
#@OUTPUT net.imglib2.roi.labeling.ImgLabeling labeling

from net.imglib2.algorithm.labeling.ConnectedComponents import StructuringElement
from net.imglib2.roi.labeling import ImgLabeling;

# otsu threshold and display
thresholded = ops.threshold().otsu(inputData)

# call connected components to label each connected region
labeling = ops.labeling().cca(thresholded, StructuringElement.FOUR_CONNECTED)
@imagejan
Copy link
Member

imagejan commented Feb 8, 2022

Related: #28

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants