imagej / imagej/imagej-common

DefaultDatasetService errors when handling an ImgLabeling

Open
#100 1 comment 1 reaction 0 assignees View on GitHub
Dominant language
Java
Stars
12
Forks
15
PR merge metrics
No merged PRs in 30d

Description

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

```python
#@ 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)
```

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by running the provided script in the Script Editor to capture the DefaultDatasetService error while handling the ImgLabeling result from ops.labeling().cca. Then trace the DefaultDatasetService path involved in that conversion and verify that the reproduced script completes without the reported error.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, python
Domain
computer-vision
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.