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

Offsets lost in Labeling Cropper and Connected Component Analysis #510

Open
1 of 4 tasks
imagejan opened this issue Sep 19, 2018 · 0 comments
Open
1 of 4 tasks

Offsets lost in Labeling Cropper and Connected Component Analysis #510

imagejan opened this issue Sep 19, 2018 · 0 comments

Comments

@imagejan
Copy link

The behavior of labeling-related nodes is currently inconsistent:

  • the Labeling Cropper node loses the offsets (in contrast to Image Cropper which keeps them)
  • the Connected Component Analysis loses offsets when run on an image with offsets
  • the Image to Labeling node preserves image offsets (as I would expect)

Also for reading the current offset values, the nodes are inconsistent:

  • the Labeling Properties node doesn't provide any functionality to read offsets from a labeling, whereas the Image Properties node provides a feature "Offsets"

I attached a workflow where I indicated (in red) the places that currently have issues, and added a workaround that restores expected behavior (in green).

image

Labeling Cropper and Offsets.zip


I am aware that I can also use the Segment Cropper node for related tasks, but:

  • when cropping labelings, it creates bitmasks whereas one might simply need cropped labelings
  • when cropping images (with option Background set to Source), the performance is much worse than simply using an Image Cropper with a range derived from the bounding box of the segment.
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

1 participant